props.js 1015 B

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