settingConfig.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. },
  36. customize: {
  37. title: '文本标签占位符',
  38. fontSize: 20,
  39. fontWeight: 700,
  40. fontFamily: '', // 字体类型
  41. color: 'left,#ffffff,#ffffff'
  42. }
  43. }
  44. export const dataConfig = {
  45. ...commonConfig(customConfig)
  46. }