settingConfig.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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: 'border6',
  21. root: {
  22. version: '2023071001',
  23. contribution: false,
  24. // 绕x轴旋转角度
  25. rotateX: 0,
  26. // 绕y轴旋转角度
  27. rotateY: 0,
  28. // 绕z轴旋转角度
  29. rotateZ: 0,
  30. // 透视距离
  31. perspective: 0,
  32. skewX: 0,
  33. skewY: 0
  34. },
  35. customize: {
  36. // 边框主要颜色
  37. borderMainColor: '#83bff6',
  38. // 边框次要颜色
  39. borderSecondaryColor: '#00CED1',
  40. colorType: 'single',
  41. // 渐变色0值
  42. gradientColor0: '#83bff6',
  43. // 渐变色1值
  44. gradientColor1: '#188df0',
  45. // 渐变色色值改变方向
  46. gradientDirection: 'to right',
  47. // 透明度
  48. opacity: 100,
  49. // 边框背景颜色
  50. backgroundColor: ''
  51. }
  52. }
  53. export const dataConfig = {
  54. ...commonConfig(customConfig)
  55. }