settingConfig.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: true,
  24. multiple: false // 是否多选
  25. }
  26. }
  27. }
  28. const dataHandler = 'data = data[0]'
  29. const customConfig = {
  30. type: 'marquee',
  31. root: {
  32. version: '2023071001',
  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: 'DataRoom由GCPAAS开源社区开源',
  46. fontSize: 14,
  47. fontWeight: 700,
  48. icon: {
  49. name: '',
  50. position: 'left',
  51. color: '#fff'
  52. },
  53. // 文字颜色类型: 纯色、渐变
  54. textColorType: 'pure',
  55. // 文字颜色
  56. textColor: '#fff',
  57. // 文字渐变开始颜色
  58. textGradientColor0: '#fff',
  59. // 文字渐变结束颜色
  60. textGradientColor1: '#fff',
  61. // 文字渐变方向
  62. textGradientDirection: 'to right',
  63. // 滚动方向
  64. direction: 'right',
  65. // 滚动间隔
  66. dur: '8',
  67. // 背景色类型:纯色、渐变、透明
  68. backgroundColorType: 'transparent',
  69. // 背景色
  70. backgroundColor: '#fff',
  71. // 背景渐变色开始颜色
  72. bgGradientColor0: '#fff',
  73. // 背景渐变色结束颜色
  74. bgGradientColor1: '#fff',
  75. // 背景色渐变方向
  76. bgGradientDirection: 'to right',
  77. // 语音播报
  78. voiceBroadcast: false
  79. }
  80. }
  81. // 配置处理脚本
  82. export const dataConfig = {
  83. ...commonConfig(customConfig),
  84. dataHandler
  85. }