settingConfig.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. text: { // 文本占位符
  27. label: '文本内容', // 维度/查询字段
  28. enable: true
  29. },
  30. expression: { // 文本占位符
  31. label: '表达式', // 维度/查询字段
  32. enable: true
  33. }
  34. }
  35. }
  36. const customConfig = {
  37. type: 'texts',
  38. root: {
  39. version: '2023071001',
  40. url: 'https://www.runoob.com/',
  41. expression: 'return ',
  42. expressionCodes: [],
  43. rotateX: 0,
  44. rotateY: 0,
  45. rotateZ: 0
  46. },
  47. customize: {
  48. title: '文本标签占位符',
  49. fontSize: 20,
  50. fontWeight: 700,
  51. fontFamily: '', // 字体类型
  52. color: 'left,#ffffff,#ffffff'
  53. }
  54. }
  55. export const dataConfig = {
  56. ...commonConfig(customConfig)
  57. }