You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

4 months ago
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // 显示的内容,字符串
  6. text: {
  7. type: String,
  8. default: () => defProps.rowNotice.text
  9. },
  10. // 是否显示左侧的音量图标
  11. icon: {
  12. type: String,
  13. default: () => defProps.rowNotice.icon
  14. },
  15. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  16. mode: {
  17. type: String,
  18. default: () => defProps.rowNotice.mode
  19. },
  20. // 文字颜色,各图标也会使用文字颜色
  21. color: {
  22. type: String,
  23. default: () => defProps.rowNotice.color
  24. },
  25. // 背景颜色
  26. bgColor: {
  27. type: String,
  28. default: () => defProps.rowNotice.bgColor
  29. },
  30. // 字体大小,单位px
  31. fontSize: {
  32. type: [String, Number],
  33. default: () => defProps.rowNotice.fontSize
  34. },
  35. // 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
  36. speed: {
  37. type: [String, Number],
  38. default: () => defProps.rowNotice.speed
  39. }
  40. }
  41. })