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.

57 lines
1.9 KiB

5 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: [Array],
  8. default: () => defProps.columnNotice.text
  9. },
  10. // 是否显示左侧的音量图标
  11. icon: {
  12. type: String,
  13. default: () => defProps.columnNotice.icon
  14. },
  15. // 通告模式,link-显示右箭头,closable-显示右侧关闭图标
  16. mode: {
  17. type: String,
  18. default: () => defProps.columnNotice.mode
  19. },
  20. // 文字颜色,各图标也会使用文字颜色
  21. color: {
  22. type: String,
  23. default: () => defProps.columnNotice.color
  24. },
  25. // 背景颜色
  26. bgColor: {
  27. type: String,
  28. default: () => defProps.columnNotice.bgColor
  29. },
  30. // 字体大小,单位px
  31. fontSize: {
  32. type: [String, Number],
  33. default: () => defProps.columnNotice.fontSize
  34. },
  35. // 水平滚动时的滚动速度,即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
  36. speed: {
  37. type: [String, Number],
  38. default: () => defProps.columnNotice.speed
  39. },
  40. // direction = row时,是否使用步进形式滚动
  41. step: {
  42. type: Boolean,
  43. default: () => defProps.columnNotice.step
  44. },
  45. // 滚动一个周期的时间长,单位ms
  46. duration: {
  47. type: [String, Number],
  48. default: () => defProps.columnNotice.duration
  49. },
  50. // 是否禁止用手滑动切换
  51. // 目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
  52. disableTouch: {
  53. type: Boolean,
  54. default: () => defProps.columnNotice.disableTouch
  55. }
  56. }
  57. })