setting.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. const type = 'GcBorder15'
  2. const name = '边框十五'
  3. const isTitle=true
  4. // 右侧配置项
  5. const setting = [
  6. // 背景色
  7. {
  8. label:'标题区域背景色一',
  9. // 设置组件类型, select / input / colorPicker
  10. type: 'colorPicker',
  11. // 字段
  12. field: 'fontGradientColor0',
  13. optionField: 'fontGradientColor0', // 对应options中的字段
  14. // 是否多选
  15. multiple: false,
  16. // 绑定的值
  17. value: '',
  18. },
  19. {
  20. label:'标题区域背景色二',
  21. // 设置组件类型, select / input / colorPicker
  22. type: 'colorPicker',
  23. // 字段
  24. field: 'fontGradientColor1',
  25. optionField: 'fontGradientColor1', // 对应options中的字段
  26. // 是否多选
  27. multiple: false,
  28. // 绑定的值
  29. value: '',
  30. },
  31. {
  32. label:'标题左侧颜色',
  33. // 设置组件类型, select / input / colorPicker
  34. type: 'colorPicker',
  35. // 字段
  36. field: 'fontLeftColor',
  37. optionField: 'fontLeftColor', // 对应options中的字段
  38. // 是否多选
  39. multiple: false,
  40. // 绑定的值
  41. value: '#007aff',
  42. },
  43. {
  44. label:'标题左侧宽度',
  45. // 设置组件类型, select / input / colorPicker
  46. type: 'inputNumber',
  47. // 字段
  48. field: 'fontLeftWidth',
  49. optionField: 'fontLeftWidth', // 对应options中的字段
  50. // 是否多选
  51. multiple: false,
  52. // 绑定的值
  53. value: 6,
  54. },
  55. {
  56. label:'标题底部分割线颜色',
  57. // 设置组件类型, select / input / colorPicker
  58. type: 'colorPicker',
  59. // 字段
  60. field: 'fontBottomColor',
  61. optionField: 'fontBottomColor', // 对应options中的字段
  62. // 是否多选
  63. multiple: false,
  64. // 绑定的值
  65. value: '#007aff',
  66. },
  67. {
  68. label:'外边框线颜色',
  69. // 设置组件类型, select / input / colorPicker
  70. type: 'colorPicker',
  71. // 字段
  72. field: 'borderColor',
  73. optionField: 'borderColor', // 对应options中的字段
  74. // 是否多选
  75. multiple: false,
  76. // 绑定的值
  77. value: '',
  78. },
  79. {
  80. label:'外边框线宽度',
  81. // 设置组件类型, select / input / colorPicker
  82. type: 'inputNumber',
  83. // 字段
  84. field: 'borderWidth',
  85. optionField: 'borderWidth', // 对应options中的字段
  86. // 是否多选
  87. multiple: false,
  88. // 绑定的值
  89. value: 1,
  90. },
  91. {
  92. label:'背景色一',
  93. // 设置组件类型, select / input / colorPicker
  94. type: 'colorPicker',
  95. // 字段
  96. field: 'gradientColor0',
  97. optionField: 'gradientColor0', // 对应options中的字段
  98. // 是否多选
  99. multiple: false,
  100. // 绑定的值
  101. value: '',
  102. },
  103. {
  104. label:'背景色二',
  105. // 设置组件类型, select / input / colorPicker
  106. type: 'colorPicker',
  107. // 字段
  108. field: 'gradientColor1',
  109. optionField: 'gradientColor1', // 对应options中的字段
  110. // 是否多选
  111. multiple: false,
  112. // 绑定的值
  113. value: '',
  114. },
  115. {
  116. label: '渐变色方向',
  117. // 设置组件类型
  118. type: 'select',
  119. // 字段
  120. field: 'gradientDirection',
  121. // 对应options中的字段
  122. optionField: 'gradientDirection',
  123. // 是否多选
  124. multiple: false,
  125. value: 'to right',
  126. options: [
  127. {
  128. label: '从左到右',
  129. value: 'to right'
  130. },
  131. {
  132. label: '从右到左',
  133. value: 'to left'
  134. },
  135. {
  136. label: '从上到下',
  137. value: 'to bottom'
  138. },
  139. {
  140. label: '从下到上',
  141. value: 'to top'
  142. },
  143. {
  144. label: '从左上到右下',
  145. value: 'to bottom right'
  146. },
  147. {
  148. label: '从右上到左下',
  149. value: 'to bottom left'
  150. },
  151. {
  152. label: '从左下到右上',
  153. value: 'to top right'
  154. },
  155. {
  156. label: '从右下到左上',
  157. value: 'to top left'
  158. }
  159. ]
  160. },
  161. {
  162. label:'左上圆角值',
  163. // 设置组件类型, select / input / colorPicker
  164. type: 'inputNumber',
  165. // 字段
  166. field: 'radiusLeftTop',
  167. optionField: 'radiusLeftTop', // 对应options中的字段
  168. // 是否多选
  169. multiple: false,
  170. // 绑定的值
  171. value: 2,
  172. },
  173. {
  174. label:'左下圆角值',
  175. // 设置组件类型, select / input / colorPicker
  176. type: 'inputNumber',
  177. // 字段
  178. field: 'radiusLeftBottom',
  179. optionField: 'radiusLeftBottom', // 对应options中的字段
  180. // 是否多选
  181. multiple: false,
  182. // 绑定的值
  183. value: 2,
  184. },
  185. {
  186. label:'右上圆角值',
  187. // 设置组件类型, select / input / colorPicker
  188. type: 'inputNumber',
  189. // 字段
  190. field: 'radiusRightTop',
  191. optionField: 'radiusRightTop', // 对应options中的字段
  192. // 是否多选
  193. multiple: false,
  194. // 绑定的值
  195. value: 2,
  196. },
  197. {
  198. label:'右下圆角值',
  199. // 设置组件类型, select / input / colorPicker
  200. type: 'inputNumber',
  201. // 字段
  202. field: 'radiusRightBottom',
  203. optionField: 'radiusRightBottom', // 对应options中的字段
  204. // 是否多选
  205. multiple: false,
  206. // 绑定的值
  207. value: 2,
  208. },
  209. ]
  210. export default {
  211. setting,
  212. type,
  213. name,
  214. isTitle
  215. }