settingConfig.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import { commonConfig, displayOption } from 'data-room-ui/js/config'
  2. export const settingConfig = {
  3. legend: false,
  4. isGroup: true,
  5. data: [],
  6. label: {
  7. // 可手动配置 label 数据标签位置
  8. position: 'top', // 'top', 'bottom', 'middle',
  9. // 配置样式
  10. content: ''
  11. },
  12. seriesField: '', // 分组
  13. displayOption: {
  14. ...displayOption,
  15. dataAllocation: { enable: true },
  16. dataSourceType: { enable: false },
  17. params: { enable: false },
  18. metricField: {
  19. // 指标
  20. label: '指标',
  21. enable: false,
  22. multiple: false // 是否多选
  23. },
  24. dimensionField: {
  25. // 表格列
  26. label: '表格列', // 维度/查询字段
  27. enable: false,
  28. multiple: true // 是否多选
  29. }
  30. }
  31. }
  32. const customConfig = {
  33. type: 'button',
  34. // 名称
  35. title: '查询',
  36. root: {
  37. version: '2023071001',
  38. // 绕x轴旋转角度
  39. rotateX: 0,
  40. // 绕y轴旋转角度
  41. rotateY: 0,
  42. // 绕z轴旋转角度
  43. rotateZ: 0,
  44. // 透视距离
  45. perspective: 0,
  46. skewX: 0,
  47. skewY: 0
  48. },
  49. // 自定义属性
  50. customize: {
  51. bindComponents: [],
  52. // 类型
  53. // type: 'primary',
  54. // 背景颜色
  55. backgroundColor: '#409EFF',
  56. // 字体颜色
  57. fontColor: '#fff',
  58. // 字体大小
  59. fontSize: 14,
  60. // 图标
  61. icon: {
  62. // 图标名称
  63. name: '',
  64. // 位置
  65. position: ''
  66. },
  67. borderStyle: {
  68. // 边框颜色
  69. borderColor: '#409EFF',
  70. // 边框宽度
  71. borderWidth: 1,
  72. // 边框样式
  73. borderStyle: 'solid',
  74. // 边框圆角
  75. borderRadius: 4
  76. }
  77. }
  78. }
  79. export const dataConfig = {
  80. ...commonConfig(customConfig)
  81. }