setting.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. const type = 'GcBorder3'
  2. const name='边框三'
  3. // 右侧配置项
  4. const setting = [
  5. // 背景色
  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: 'colorPicker',
  34. // 字段
  35. field: 'gradientColor0',
  36. optionField: 'gradientColor0', // 对应options中的字段
  37. // 是否多选
  38. multiple: false,
  39. // 绑定的值
  40. value: '',
  41. },
  42. {
  43. label:'渐变背景色二',
  44. // 设置组件类型, select / input / colorPicker
  45. type: 'colorPicker',
  46. // 字段
  47. field: 'gradientColor1',
  48. optionField: 'gradientColor1', // 对应options中的字段
  49. // 是否多选
  50. multiple: false,
  51. // 绑定的值
  52. value: '',
  53. },
  54. {
  55. label: '渐变色方向',
  56. // 设置组件类型
  57. type: 'select',
  58. // 字段
  59. field: 'gradientDirection',
  60. // 对应options中的字段
  61. optionField: 'gradientDirection',
  62. // 是否多选
  63. multiple: false,
  64. value: '',
  65. options: [
  66. {
  67. label: '从左到右',
  68. value: 'to right'
  69. },
  70. {
  71. label: '从右到左',
  72. value: 'to left'
  73. },
  74. {
  75. label: '从上到下',
  76. value: 'to bottom'
  77. },
  78. {
  79. label: '从下到上',
  80. value: 'to top'
  81. },
  82. {
  83. label: '从左上到右下',
  84. value: 'to bottom right'
  85. },
  86. {
  87. label: '从右上到左下',
  88. value: 'to bottom left'
  89. },
  90. {
  91. label: '从左下到右上',
  92. value: 'to top right'
  93. },
  94. {
  95. label: '从右下到左上',
  96. value: 'to top left'
  97. }
  98. ]
  99. },
  100. {
  101. label:'不透明度',
  102. // 设置组件类型, select / input / colorPicker
  103. type: 'inputNumber',
  104. // 字段
  105. field: 'opacity',
  106. optionField: 'opacity', // 对应options中的字段
  107. // 是否多选
  108. multiple: false,
  109. // 绑定的值
  110. value: 100,
  111. },
  112. ]
  113. export default {
  114. setting,
  115. type,
  116. name
  117. }