settingConfig.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: 'border11',
  21. root: {
  22. version: '2023071001',
  23. contribution: false
  24. },
  25. customize: {
  26. // 边框主要颜色
  27. borderMainColor: '#83bff6',
  28. // 边框次要颜色
  29. borderSecondaryColor: '#00CED1',
  30. // 边框背景颜色
  31. backgroundColor: '',
  32. // 标题
  33. title: '',
  34. // 标题宽度
  35. titleWidth: 250,
  36. colorType: 'single',
  37. // 渐变色0值
  38. gradientColor0: '#83bff6',
  39. // 渐变色1值
  40. gradientColor1: '#188df0',
  41. // 渐变色色值改变方向
  42. gradientDirection: 'to right',
  43. // 透明度
  44. opacity: 100
  45. }
  46. }
  47. export const dataConfig = {
  48. ...commonConfig(customConfig)
  49. }