setting.js 2.3 KB

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