settingConfig.js 852 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { commonConfig, displayOption } from 'data-room-ui/js/config'
  2. export const settingConfig = {
  3. padding: [30, 30, 30, 60],
  4. legend: false,
  5. isGroup: true,
  6. data: [],
  7. // 设置面板属性的显隐
  8. displayOption: {
  9. ...displayOption,
  10. metricField: {
  11. // 指标
  12. label: '指标',
  13. enable: true,
  14. multiple: false // 是否多选
  15. },
  16. dimensionField: {
  17. // 表格列
  18. label: '维度', // 维度/查询字段
  19. enable: true,
  20. multiple: false // 是否多选
  21. }
  22. }
  23. }
  24. const customConfig = {
  25. type: 'screenScrollRanking',
  26. root: {
  27. version: '2023071001',
  28. contribution: false
  29. },
  30. customize: {
  31. rowNum: 5,
  32. waitTime: 2000,
  33. carousel: 'single',
  34. unit: '',
  35. sort: true,
  36. valueFormatter: undefined
  37. }
  38. }
  39. export const dataConfig = {
  40. ...commonConfig(customConfig)
  41. }