Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

45 rader
1.4 KiB

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