setting.js 3.1 KB

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