setting.js 3.2 KB

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