settingConfig.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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: 'border14',
  13. root: {
  14. // 绕x轴旋转角度
  15. rotateX: 0,
  16. // 绕y轴旋转角度
  17. rotateY: 0,
  18. // 绕z轴旋转角度
  19. rotateZ: 0,
  20. // 透视距离
  21. perspective: 0,
  22. skewX: 0,
  23. skewY: 0
  24. },
  25. customize: {
  26. // 边框线颜色
  27. borderColor: '#87888e',
  28. // 边框线宽度
  29. borderWidth: 2,
  30. // 边框背景颜色
  31. backgroundColor: '#232832',
  32. colorType: 'single',
  33. // 渐变色0值
  34. gradientColor0: '',
  35. // 渐变色1值
  36. gradientColor1: '',
  37. // 渐变色色值改变方向
  38. gradientDirection: 'to right',
  39. // 透明度
  40. opacity: 100,
  41. // 左上圆角
  42. radiusLeftTop: 14,
  43. // 右上圆角
  44. radiusRightTop: 14,
  45. // 左下圆角
  46. radiusLeftBottom: 14,
  47. // 右下圆角
  48. radiusRightBottom: 14
  49. }
  50. }
  51. export const dataConfig = {
  52. ...commonConfig(customConfig)
  53. }