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.

36 lines
1.1 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. seconds: {
  7. type: [String, Number],
  8. default: () => defProps.code.seconds
  9. },
  10. // 尚未开始时提示
  11. startText: {
  12. type: String,
  13. default: () => defProps.code.startText
  14. },
  15. // 正在倒计时中的提示
  16. changeText: {
  17. type: String,
  18. default: () => defProps.code.changeText
  19. },
  20. // 倒计时结束时的提示
  21. endText: {
  22. type: String,
  23. default: () => defProps.code.endText
  24. },
  25. // 是否在H5刷新或各端返回再进入时继续倒计时
  26. keepRunning: {
  27. type: Boolean,
  28. default: () => defProps.code.keepRunning
  29. },
  30. // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
  31. uniqueKey: {
  32. type: String,
  33. default: () => defProps.code.uniqueKey
  34. }
  35. }
  36. })