settingConfig.js 937 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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: 'border9',
  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. }
  42. export const dataConfig = {
  43. ...commonConfig(customConfig)
  44. }