settingConfig.js 1.7 KB

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