setting.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. const type = 'GcBorder11'
  2. const name = '边框十一'
  3. const isTitle=true
  4. // 右侧配置项
  5. const setting = [
  6. // 背景色
  7. {
  8. label:'标题区域宽度',
  9. // 设置组件类型, select / input / colorPicker
  10. type: 'inputNumber',
  11. // 字段
  12. field: 'titleWidth',
  13. optionField: 'titleWidth', // 对应options中的字段
  14. // 是否多选
  15. multiple: false,
  16. // 绑定的值
  17. value: 250,
  18. },
  19. {
  20. label:'边框主颜色',
  21. // 设置组件类型, select / input / colorPicker
  22. type: 'colorPicker',
  23. // 字段
  24. field: 'borderMainColor',
  25. optionField: 'borderMainColor', // 对应options中的字段
  26. // 是否多选
  27. multiple: false,
  28. // 绑定的值
  29. value: '',
  30. },
  31. {
  32. label:'边框副颜色',
  33. // 设置组件类型, select / input / colorPicker
  34. type: 'colorPicker',
  35. // 字段
  36. field: 'borderSecondaryColor',
  37. optionField: 'borderSecondaryColor', // 对应options中的字段
  38. // 是否多选
  39. multiple: false,
  40. // 绑定的值
  41. value: '',
  42. },
  43. {
  44. label:'渐变背景色一',
  45. // 设置组件类型, select / input / colorPicker
  46. type: 'colorPicker',
  47. // 字段
  48. field: 'gradientColor0',
  49. optionField: 'gradientColor0', // 对应options中的字段
  50. // 是否多选
  51. multiple: false,
  52. // 绑定的值
  53. value: '',
  54. },
  55. {
  56. label:'渐变背景色二',
  57. // 设置组件类型, select / input / colorPicker
  58. type: 'colorPicker',
  59. // 字段
  60. field: 'gradientColor1',
  61. optionField: 'gradientColor1', // 对应options中的字段
  62. // 是否多选
  63. multiple: false,
  64. // 绑定的值
  65. value: '',
  66. },
  67. {
  68. label: '渐变色方向',
  69. // 设置组件类型
  70. type: 'select',
  71. // 字段
  72. field: 'gradientDirection',
  73. // 对应options中的字段
  74. optionField: 'gradientDirection',
  75. // 是否多选
  76. multiple: false,
  77. value: '',
  78. options: [
  79. {
  80. label: '从左到右',
  81. value: 'to right'
  82. },
  83. {
  84. label: '从右到左',
  85. value: 'to left'
  86. },
  87. {
  88. label: '从上到下',
  89. value: 'to bottom'
  90. },
  91. {
  92. label: '从下到上',
  93. value: 'to top'
  94. },
  95. {
  96. label: '从左上到右下',
  97. value: 'to bottom right'
  98. },
  99. {
  100. label: '从右上到左下',
  101. value: 'to bottom left'
  102. },
  103. {
  104. label: '从左下到右上',
  105. value: 'to top right'
  106. },
  107. {
  108. label: '从右下到左上',
  109. value: 'to top left'
  110. }
  111. ]
  112. },
  113. {
  114. label:'不透明度',
  115. // 设置组件类型, select / input / colorPicker
  116. type: 'inputNumber',
  117. // 字段
  118. field: 'opacity',
  119. optionField: 'opacity', // 对应options中的字段
  120. // 是否多选
  121. multiple: false,
  122. // 绑定的值
  123. value: 100,
  124. },
  125. ]
  126. export default {
  127. setting,
  128. type,
  129. name,
  130. isTitle
  131. }