setting.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. const type = 'GcBorder4'
  2. const name='边框四'
  3. // 右侧配置项
  4. const setting = [
  5. // 背景色
  6. {
  7. label:'背景色',
  8. // 设置组件类型, select / input / colorPicker
  9. type: 'colorPicker',
  10. // 字段
  11. field: 'backgroundColor',
  12. optionField: 'backgroundColor', // 对应options中的字段
  13. // 是否多选
  14. multiple: false,
  15. // 绑定的值
  16. value: '',
  17. },
  18. // 标题字体颜色
  19. {
  20. label:'标题字体颜色',
  21. // 设置组件类型, select / input / colorPicker
  22. type: 'colorPicker',
  23. // 字段
  24. field: 'fontColor',
  25. optionField: 'fontColor', // 对应options中的字段
  26. // 是否多选
  27. multiple: false,
  28. // 绑定的值
  29. value: '',
  30. },
  31. {
  32. label:'边框主颜色',
  33. // 设置组件类型, select / input / colorPicker
  34. type: 'colorPicker',
  35. // 字段
  36. field: 'borderMainColor',
  37. optionField: 'borderMainColor', // 对应options中的字段
  38. // 是否多选
  39. multiple: false,
  40. // 绑定的值
  41. value: '',
  42. },
  43. {
  44. label:'边框副颜色',
  45. // 设置组件类型, select / input / colorPicker
  46. type: 'colorPicker',
  47. // 字段
  48. field: 'borderSecondaryColor',
  49. optionField: 'borderSecondaryColor', // 对应options中的字段
  50. // 是否多选
  51. multiple: false,
  52. // 绑定的值
  53. value: '',
  54. },
  55. ]
  56. export default {
  57. setting,
  58. type,
  59. name
  60. }