settingConfig.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. // 绕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. // 边框背景颜色
  41. backgroundColor: '',
  42. // 标题
  43. title: '',
  44. // 标题宽度
  45. titleWidth: 250,
  46. colorType: 'single',
  47. // 渐变色0值
  48. gradientColor0: '#83bff6',
  49. // 渐变色1值
  50. gradientColor1: '#188df0',
  51. // 渐变色色值改变方向
  52. gradientDirection: 'to right',
  53. // 透明度
  54. opacity: 100
  55. }
  56. }
  57. export const dataConfig = {
  58. ...commonConfig(customConfig)
  59. }