選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

40 行
1.2 KiB

  1. import { defineMixin } from '../../libs/vue'
  2. import CodeDefaultProps from './code'
  3. import { registerComponentProps } from '../../libs/config/props.js'
  4. const defProps = registerComponentProps(CodeDefaultProps)
  5. export const props = defineMixin({
  6. props: {
  7. // 倒计时总秒数
  8. seconds: {
  9. type: [String, Number],
  10. default: () => defProps.code.seconds
  11. },
  12. // 尚未开始时提示
  13. startText: {
  14. type: String,
  15. default: () => defProps.code.startText
  16. },
  17. // 正在倒计时中的提示
  18. changeText: {
  19. type: String,
  20. default: () => defProps.code.changeText
  21. },
  22. // 倒计时结束时的提示
  23. endText: {
  24. type: String,
  25. default: () => defProps.code.endText
  26. },
  27. // 是否在H5刷新或各端返回再进入时继续倒计时
  28. keepRunning: {
  29. type: Boolean,
  30. default: () => defProps.code.keepRunning
  31. },
  32. // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
  33. uniqueKey: {
  34. type: String,
  35. default: () => defProps.code.uniqueKey
  36. }
  37. }
  38. })