settingConfig.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. },
  47. // 自定义属性
  48. customize: {
  49. bindComponents: [],
  50. // 类型
  51. // type: 'primary',
  52. // 背景颜色
  53. backgroundColor: '#409EFF',
  54. // 字体颜色
  55. fontColor: '#fff',
  56. // 字体大小
  57. fontSize: 14,
  58. // 图标
  59. icon: {
  60. // 图标名称
  61. name: '',
  62. // 位置
  63. position: ''
  64. },
  65. borderStyle: {
  66. // 边框颜色
  67. borderColor: '#409EFF',
  68. // 边框宽度
  69. borderWidth: 1,
  70. // 边框样式
  71. borderStyle: 'solid',
  72. // 边框圆角
  73. borderRadius: 4
  74. }
  75. }
  76. }
  77. export const dataConfig = {
  78. ...commonConfig(customConfig)
  79. }