settingConfig.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. }
  27. }
  28. const customConfig = {
  29. type: 'linkChart',
  30. root: {
  31. version: '2023071001',
  32. url: 'https://www.runoob.com/',
  33. // 绕x轴旋转角度
  34. rotateX: 0,
  35. // 绕y轴旋转角度
  36. rotateY: 0,
  37. // 绕z轴旋转角度
  38. rotateZ: 0,
  39. // 透视距离
  40. perspective: 0,
  41. skewX: 0,
  42. skewY: 0
  43. },
  44. customize: {
  45. title: '超链接占位符',
  46. fontSize: 20,
  47. fontWeight: 700,
  48. color: 'left,#007aff,#007aff',
  49. url: 'http://gcpaas.gccloud.com', // 链接地址
  50. openType: '_blank', // 打开方式
  51. dialogW: 1000, // 弹窗宽度
  52. dialogH: 500// 弹窗高度
  53. }
  54. }
  55. export const dataConfig = {
  56. ...commonConfig(customConfig)
  57. }