settingConfig.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. 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. text: { // 文本占位符
  27. label: '文本内容', // 维度/查询字段
  28. enable: true
  29. },
  30. expression: { // 文本占位符
  31. label: '表达式', // 维度/查询字段
  32. enable: true
  33. }
  34. }
  35. }
  36. const customConfig = {
  37. type: 'texts',
  38. root: {
  39. version: '2023071001',
  40. url: 'https://www.runoob.com/',
  41. expression: 'return ',
  42. expressionCodes: [],
  43. // 绕x轴旋转角度
  44. rotateX: 0,
  45. // 绕y轴旋转角度
  46. rotateY: 0,
  47. // 绕z轴旋转角度
  48. rotateZ: 0,
  49. // 透视距离
  50. perspective: 500
  51. },
  52. customize: {
  53. title: '文本标签占位符',
  54. fontSize: 20,
  55. fontWeight: 700,
  56. fontFamily: '', // 字体类型
  57. color: 'left,#ffffff,#ffffff'
  58. }
  59. }
  60. export const dataConfig = {
  61. ...commonConfig(customConfig)
  62. }