props.js 989 B

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