setting.js 2.5 KB

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