settingConfig.js 1.6 KB

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