settingConfig.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. root: {
  14. // 绕x轴旋转角度
  15. rotateX: 0,
  16. // 绕y轴旋转角度
  17. rotateY: 0,
  18. // 绕z轴旋转角度
  19. rotateZ: 0,
  20. // 透视距离
  21. perspective: 500
  22. },
  23. customize: {
  24. // 边框线颜色
  25. borderColor: '#87888e',
  26. // 边框线宽度
  27. borderWidth: 2,
  28. // 边框背景颜色
  29. backgroundColor: '#232832',
  30. colorType: 'single',
  31. // 渐变色0值
  32. gradientColor0: '',
  33. // 渐变色1值
  34. gradientColor1: '',
  35. // 渐变色色值改变方向
  36. gradientDirection: 'to right',
  37. // 透明度
  38. opacity: 100,
  39. // 字体大小
  40. fontSize: 40,
  41. // 字体颜色
  42. fontColor: '#fff',
  43. // 字体粗细
  44. fontWeight: 500,
  45. // 中心文本
  46. text: ''
  47. }
  48. }
  49. export const dataConfig = {
  50. ...commonConfig(customConfig)
  51. }