settingConfig.js 937 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 'packages/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. },
  34. customize: {
  35. title: '文本标签占位符',
  36. fontSize: 20,
  37. fontWeight: 700,
  38. color: 'left,#ffffff,#ffffff'
  39. }
  40. }
  41. export const dataConfig = {
  42. ...commonConfig(customConfig)
  43. }