props.js 553 B

123456789101112131415161718192021222324
  1. import { defineProps } from '../../libs/util/props';
  2. export default defineProps('countDown', {
  3. // 倒计时时长,单位ms
  4. time: {
  5. type: [String, Number],
  6. default: 0
  7. },
  8. // 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
  9. format: {
  10. type: String,
  11. default: 'HH:mm:ss'
  12. },
  13. // 是否自动开始倒计时
  14. autoStart: {
  15. type: Boolean,
  16. default: true
  17. },
  18. // 是否展示毫秒倒计时
  19. millisecond: {
  20. type: Boolean,
  21. default: false
  22. }
  23. })