settingConfig.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * @Descripttion:
  3. * @Author: liu.shiyi
  4. * @Date: 2022-10-13 11:18:03
  5. * @LastEditTime: 2022-10-13 13:55:11
  6. */
  7. import { commonConfig, displayOption } from 'data-room-ui/js/config'
  8. export const settingConfig = {
  9. theme: 'dark',
  10. text: '文本标签占位符', // text内容
  11. // 设置面板属性的显隐
  12. displayOption: {
  13. ...displayOption,
  14. metricField: {
  15. // 指标
  16. label: '指标',
  17. enable: true,
  18. multiple: false // 是否多选
  19. },
  20. dimensionField: {
  21. // 维度
  22. label: '维度', // 维度/查询字段
  23. enable: false,
  24. multiple: true // 是否多选
  25. }
  26. }
  27. }
  28. const customConfig = {
  29. type: 'texts',
  30. root: {
  31. version: '2023071001',
  32. url: 'https://www.runoob.com/',
  33. expression: 'return ',
  34. expressionCodes: [],
  35. // 绕x轴旋转角度
  36. rotateX: 0,
  37. // 绕y轴旋转角度
  38. rotateY: 0,
  39. // 绕z轴旋转角度
  40. rotateZ: 0,
  41. // 透视距离
  42. perspective: 500
  43. },
  44. customize: {
  45. title: '文本标签占位符',
  46. fontSize: 20,
  47. fontWeight: 700,
  48. fontFamily: '', // 字体类型
  49. color: 'left,#ffffff,#ffffff'
  50. }
  51. }
  52. export const dataConfig = {
  53. ...commonConfig(customConfig)
  54. }