settingConfig.js 859 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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: 'border3',
  21. root: {
  22. contribution: false
  23. },
  24. customize: {
  25. borderMainColor: '#83bff6',
  26. borderSecondaryColor: '#00CED1',
  27. backgroundColor: '',
  28. colorType: 'single',
  29. // 渐变色0值
  30. gradientColor0: '#83bff6',
  31. // 渐变色1值
  32. gradientColor1: '#188df0',
  33. // 渐变色色值改变方向
  34. gradientDirection: 'to right',
  35. // 透明度
  36. opacity: 100
  37. }
  38. }
  39. export const dataConfig = {
  40. ...commonConfig(customConfig)
  41. }