setting.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. // 设置组件类型, select / input / colorPicker
  35. type: 'move',
  36. // 字段
  37. field: 'borderArray',
  38. optionField: 'borderArray', // 对应options中的字段
  39. // 是否多选
  40. multiple: false,
  41. // 绑定的值
  42. value: [100,100,100,100],
  43. },
  44. ]
  45. export default {
  46. setting,
  47. type,
  48. name,
  49. isTitle,
  50. padding
  51. }