settingConfig.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 = ''
  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: 500
  41. },
  42. customize: {
  43. title: '跑马灯占位符',
  44. fontSize: 40,
  45. fontWeight: 700,
  46. icon: {
  47. name: '',
  48. position: 'left',
  49. color: '#fff'
  50. },
  51. // 文字颜色类型: 纯色、渐变
  52. textColorType: 'pure',
  53. // 文字颜色
  54. textColor: '#fff',
  55. // 文字渐变开始颜色
  56. textGradientColor0: '#fff',
  57. // 文字渐变结束颜色
  58. textGradientColor1: '#fff',
  59. // 文字渐变方向
  60. textGradientDirection: 'to right',
  61. // 滚动方向
  62. direction: 'right',
  63. // 滚动间隔
  64. dur: '8',
  65. // 背景色类型:纯色、渐变、透明
  66. backgroundColorType: 'transparent',
  67. // 背景色
  68. backgroundColor: '#fff',
  69. // 背景渐变色开始颜色
  70. bgGradientColor0: '#fff',
  71. // 背景渐变色结束颜色
  72. bgGradientColor1: '#fff',
  73. // 背景色渐变方向
  74. bgGradientDirection: 'to right',
  75. // 语音播报
  76. voiceBroadcast: false
  77. }
  78. }
  79. // 配置处理脚本
  80. export const dataConfig = {
  81. ...commonConfig(customConfig),
  82. dataHandler
  83. }