setting.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. const type = 'GcBorder16'
  2. const name = '边框16'
  3. const isTitle = false
  4. const padding =[0,0,0,0]
  5. // 右侧配置项
  6. const setting = [
  7. // 背景色
  8. // {
  9. // label:'背景色二',
  10. // // 设置组件类型, select / input / colorPicker
  11. // type: 'colorPicker',
  12. // // 字段
  13. // field: 'gradientColor1',
  14. // optionField: 'gradientColor1', // 对应options中的字段
  15. // // 是否多选
  16. // multiple: false,
  17. // // 绑定的值
  18. // value: '',
  19. // },
  20. {
  21. label:'选择背景图',
  22. // 设置组件类型, select / input / colorPicker
  23. type: 'background',
  24. // 字段
  25. field: 'imgUrl',
  26. optionField: 'imgUrl', // 对应options中的字段
  27. // 是否多选
  28. multiple: false,
  29. // 绑定的值
  30. value: '',
  31. },
  32. {
  33. label: '不透明度',
  34. // 设置组件类型
  35. type: 'slider',
  36. // 字段
  37. field: 'opacity',
  38. // 对应options中的字段
  39. optionField: 'opacity.fillOpacity',
  40. value: 1,
  41. },
  42. {
  43. label:'点九图背景切割',
  44. // 设置组件类型, select / input / colorPicker
  45. type: 'move',
  46. // 字段
  47. field: 'borderArray',
  48. optionField: 'borderArray', // 对应options中的字段
  49. // 是否多选
  50. multiple: false,
  51. // 绑定的值
  52. value: [10, 10, 10, 10]
  53. }
  54. ]
  55. export default {
  56. setting,
  57. type,
  58. name,
  59. isTitle,
  60. padding
  61. }