settingConfig.js 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { commonConfig } from '../../js/config'
  2. export const settingConfig = {
  3. padding: [30, 30, 30, 60],
  4. legend: false,
  5. isGroup: true,
  6. data: [],
  7. // displayOption: {
  8. // color: '',
  9. // backgroundColor: ''
  10. // }
  11. // 设置面板属性的显隐
  12. displayOption: {
  13. dataAllocation: {
  14. // 是否存在数据配置
  15. enable: false
  16. }
  17. }
  18. }
  19. const customConfig = {
  20. type: 'border4',
  21. root: {
  22. contribution: false
  23. },
  24. customize: {
  25. // 边框主要颜色
  26. borderMainColor: '#83bff6',
  27. // 边框次要颜色
  28. borderSecondaryColor: '#00CED1',
  29. // 边框背景颜色
  30. backgroundColor: '',
  31. colorType: 'single',
  32. // 渐变色0值
  33. gradientColor0: '#83bff6',
  34. // 渐变色1值
  35. gradientColor1: '#188df0',
  36. // 渐变色色值改变方向
  37. gradientDirection: 'to right',
  38. // 透明度
  39. opacity: 100,
  40. // 边框是否翻转
  41. reverse: false
  42. }
  43. }
  44. export const dataConfig = {
  45. ...commonConfig(customConfig)
  46. }