settingConfig.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. data: [],
  11. text: '文本标签占位符', // text内容
  12. // 设置面板属性的显隐
  13. displayOption: {
  14. ...displayOption,
  15. metricField: {
  16. // 指标
  17. label: '指标',
  18. enable: true,
  19. multiple: false // 是否多选
  20. },
  21. dimensionField: {
  22. // 维度
  23. label: '维度', // 维度/查询字段
  24. enable: false,
  25. multiple: true // 是否多选
  26. },
  27. text: { // 文本占位符
  28. label: '占位内容', // 维度/查询字段
  29. enable: true
  30. },
  31. expression: { // 文本占位符
  32. label: '表达式', // 维度/查询字段
  33. enable: true
  34. }
  35. }
  36. }
  37. const customConfig = {
  38. type: 'numbers',
  39. root: {
  40. version: '2023111401',
  41. url: 'https://www.runoob.com/',
  42. expression: 'return ',
  43. expressionCodes: [],
  44. // 绕x轴旋转角度
  45. rotateX: 0,
  46. // 绕y轴旋转角度
  47. rotateY: 0,
  48. // 绕z轴旋转角度
  49. rotateZ: 0,
  50. // 透视距离
  51. perspective: 0,
  52. skewX: 0,
  53. skewY: 0
  54. },
  55. customize: {
  56. title: '1234',
  57. fontSize: 40,
  58. fontWeight: 700,
  59. fontFamily: 'ds-digitalbold', // 字体类型
  60. color: 'left,#ffffff,#ffffff',
  61. thousands: false, // 千分位分隔
  62. align: 'center', // 文字对齐方式
  63. letterSpacing: 1// 文字间距
  64. }
  65. }
  66. export const dataConfig = {
  67. ...commonConfig(customConfig)
  68. }