setting.js 5.8 KB

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