3
0

props.js 796 B

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