综合办公系统
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.

props.js 715B

1234567891011121314151617181920212223242526272829303132333435
  1. export default {
  2. props: {
  3. // 倒计时总秒数
  4. seconds: {
  5. type: [String, Number],
  6. default: 60
  7. },
  8. // 尚未开始时提示
  9. startText: {
  10. type: String,
  11. default: '获取验证码'
  12. },
  13. // 正在倒计时中的提示
  14. changeText: {
  15. type: String,
  16. default: 'X秒重新获取'
  17. },
  18. // 倒计时结束时的提示
  19. endText: {
  20. type: String,
  21. default: '重新获取'
  22. },
  23. // 是否在H5刷新或各端返回再进入时继续倒计时
  24. keepRunning: {
  25. type: Boolean,
  26. default: false
  27. },
  28. // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
  29. uniqueKey: {
  30. type: String,
  31. default: ''
  32. },
  33. ...uni.$uv?.props?.code
  34. }
  35. }