setting.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. const type = 'GcBorder14'
  2. const name = '边框十四'
  3. const isTitle=false
  4. // 右侧配置项
  5. const setting = [
  6. // 背景色
  7. {
  8. label:'边框线颜色',
  9. // 设置组件类型, select / input / colorPicker
  10. type: 'colorPicker',
  11. // 字段
  12. field: 'borderColor',
  13. optionField: 'borderColor', // 对应options中的字段
  14. // 是否多选
  15. multiple: false,
  16. // 绑定的值
  17. value: '',
  18. },
  19. {
  20. label:'边框线宽度',
  21. // 设置组件类型, select / input / colorPicker
  22. type: 'inputNumber',
  23. // 字段
  24. field: 'borderWidth',
  25. optionField: 'borderWidth', // 对应options中的字段
  26. // 是否多选
  27. multiple: false,
  28. // 绑定的值
  29. value: 2,
  30. },
  31. {
  32. label:'背景色',
  33. // 设置组件类型, select / input / colorPicker
  34. type: 'gradual',
  35. // 字段
  36. field: 'gradientColor',
  37. optionField: 'gradientColor', // 对应options中的字段
  38. // 是否多选
  39. multiple: false,
  40. // 绑定的值
  41. value: '',
  42. },
  43. {
  44. label: '渐变色方向',
  45. // 设置组件类型
  46. type: 'select',
  47. // 字段
  48. field: 'gradientDirection',
  49. // 对应options中的字段
  50. optionField: 'gradientDirection',
  51. // 是否多选
  52. multiple: false,
  53. value: 'to right',
  54. options: [
  55. {
  56. label: '从左到右',
  57. value: 'to right'
  58. },
  59. {
  60. label: '从右到左',
  61. value: 'to left'
  62. },
  63. {
  64. label: '从上到下',
  65. value: 'to bottom'
  66. },
  67. {
  68. label: '从下到上',
  69. value: 'to top'
  70. },
  71. {
  72. label: '从左上到右下',
  73. value: 'to bottom right'
  74. },
  75. {
  76. label: '从右上到左下',
  77. value: 'to bottom left'
  78. },
  79. {
  80. label: '从左下到右上',
  81. value: 'to top right'
  82. },
  83. {
  84. label: '从右下到左上',
  85. value: 'to top left'
  86. }
  87. ]
  88. },
  89. {
  90. label:'不透明度',
  91. // 设置组件类型, select / input / colorPicker
  92. type: 'inputNumber',
  93. // 字段
  94. field: 'opacity',
  95. optionField: 'opacity', // 对应options中的字段
  96. // 是否多选
  97. multiple: false,
  98. // 绑定的值
  99. value: 100,
  100. },
  101. {
  102. label:'左上圆角值',
  103. // 设置组件类型, select / input / colorPicker
  104. type: 'inputNumber',
  105. // 字段
  106. field: 'radiusLeftTop',
  107. optionField: 'radiusLeftTop', // 对应options中的字段
  108. // 是否多选
  109. multiple: false,
  110. // 绑定的值
  111. value: 2,
  112. },
  113. {
  114. label:'左下圆角值',
  115. // 设置组件类型, select / input / colorPicker
  116. type: 'inputNumber',
  117. // 字段
  118. field: 'radiusLeftBottom',
  119. optionField: 'radiusLeftBottom', // 对应options中的字段
  120. // 是否多选
  121. multiple: false,
  122. // 绑定的值
  123. value: 2,
  124. },
  125. {
  126. label:'右上圆角值',
  127. // 设置组件类型, select / input / colorPicker
  128. type: 'inputNumber',
  129. // 字段
  130. field: 'radiusRightTop',
  131. optionField: 'radiusRightTop', // 对应options中的字段
  132. // 是否多选
  133. multiple: false,
  134. // 绑定的值
  135. value: 2,
  136. },
  137. {
  138. label:'右下圆角值',
  139. // 设置组件类型, select / input / colorPicker
  140. type: 'inputNumber',
  141. // 字段
  142. field: 'radiusRightBottom',
  143. optionField: 'radiusRightBottom', // 对应options中的字段
  144. // 是否多选
  145. multiple: false,
  146. // 绑定的值
  147. value: 2,
  148. },
  149. ]
  150. export default {
  151. setting,
  152. type,
  153. name,
  154. isTitle
  155. }