settingConfig.js 892 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { commonConfig } from '../../js/config'
  2. export const settingConfig = {
  3. // 设置面板属性的显隐
  4. displayOption: {
  5. dataAllocation: {
  6. // 是否存在数据配置
  7. enable: false
  8. }
  9. }
  10. }
  11. const customConfig = {
  12. type: 'border15',
  13. customize: {
  14. // 边框线颜色
  15. borderColor: '#87888e',
  16. // 边框线宽度
  17. borderWidth: 2,
  18. // 边框背景颜色
  19. backgroundColor: '#232832',
  20. colorType: 'single',
  21. // 渐变色0值
  22. gradientColor0: '#83bff6',
  23. // 渐变色1值
  24. gradientColor1: '#188df0',
  25. // 渐变色色值改变方向
  26. gradientDirection: 'to right',
  27. // 透明度
  28. opacity: 100,
  29. // 字体大小
  30. fontSize: 40,
  31. // 字体颜色
  32. fontColor: '#fff',
  33. // 字体粗细
  34. fontWeight: 500,
  35. // 中心文本
  36. text: '文本'
  37. }
  38. }
  39. export const dataConfig = {
  40. ...commonConfig(customConfig)
  41. }