countdown.mjs 805 B

12345678910111213141516171819202122232425262728293031323334
  1. import { CHANGE_EVENT } from "../../../constants/event.mjs";
  2. import { isNumber } from "../../../utils/types.mjs";
  3. import { buildProps, definePropType } from "../../../utils/vue/props/runtime.mjs";
  4. //#region ../../packages/components/countdown/src/countdown.ts
  5. /**
  6. * @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
  7. */
  8. const countdownProps = buildProps({
  9. format: {
  10. type: String,
  11. default: "HH:mm:ss"
  12. },
  13. prefix: String,
  14. suffix: String,
  15. title: String,
  16. value: {
  17. type: definePropType([Number, Object]),
  18. default: 0
  19. },
  20. valueStyle: { type: definePropType([
  21. String,
  22. Object,
  23. Array
  24. ]) }
  25. });
  26. const countdownEmits = {
  27. finish: () => true,
  28. [CHANGE_EVENT]: (value) => isNumber(value)
  29. };
  30. //#endregion
  31. export { countdownEmits, countdownProps };
  32. //# sourceMappingURL=countdown.mjs.map