setting.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. const type = 'GcBorder2'
  2. const name = '边框二'
  3. const isTitle=false
  4. // 右侧配置项
  5. const setting = [
  6. {
  7. label:'边框主颜色',
  8. // 设置组件类型, select / input / colorPicker
  9. type: 'colorPicker',
  10. // 字段
  11. field: 'borderMainColor',
  12. optionField: 'borderMainColor', // 对应options中的字段
  13. // 是否多选
  14. multiple: false,
  15. // 绑定的值
  16. value: '',
  17. },
  18. {
  19. label:'边框副颜色',
  20. // 设置组件类型, select / input / colorPicker
  21. type: 'colorPicker',
  22. // 字段
  23. field: 'borderSecondaryColor',
  24. optionField: 'borderSecondaryColor', // 对应options中的字段
  25. // 是否多选
  26. multiple: false,
  27. // 绑定的值
  28. value: '',
  29. },
  30. {
  31. label:'背景色',
  32. // 设置组件类型, select / input / colorPicker
  33. type: 'gradual',
  34. // 字段
  35. field: 'gradientColor',
  36. optionField: 'gradientColor', // 对应options中的字段
  37. // 是否多选
  38. multiple: false,
  39. // 绑定的值
  40. value: '',
  41. },
  42. {
  43. label: '渐变色方向',
  44. // 设置组件类型
  45. type: 'select',
  46. // 字段
  47. field: 'gradientDirection',
  48. // 对应options中的字段
  49. optionField: 'gradientDirection',
  50. // 是否多选
  51. multiple: false,
  52. value: '',
  53. options: [
  54. {
  55. label: '从左到右',
  56. value: 'to right'
  57. },
  58. {
  59. label: '从右到左',
  60. value: 'to left'
  61. },
  62. {
  63. label: '从上到下',
  64. value: 'to bottom'
  65. },
  66. {
  67. label: '从下到上',
  68. value: 'to top'
  69. },
  70. {
  71. label: '从左上到右下',
  72. value: 'to bottom right'
  73. },
  74. {
  75. label: '从右上到左下',
  76. value: 'to bottom left'
  77. },
  78. {
  79. label: '从左下到右上',
  80. value: 'to top right'
  81. },
  82. {
  83. label: '从右下到左上',
  84. value: 'to top left'
  85. }
  86. ]
  87. },
  88. {
  89. label:'不透明度',
  90. // 设置组件类型, select / input / colorPicker
  91. type: 'inputNumber',
  92. // 字段
  93. field: 'opacity',
  94. optionField: 'opacity', // 对应options中的字段
  95. // 是否多选
  96. multiple: false,
  97. // 绑定的值
  98. value: 100,
  99. },
  100. ]
  101. export default {
  102. setting,
  103. type,
  104. name,
  105. isTitle
  106. }