countdown2.mjs 674 B

123456789101112131415161718192021222324252627
  1. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  2. import { CHANGE_EVENT } from '../../../constants/event.mjs';
  3. import { isNumber } from '../../../utils/types.mjs';
  4. const countdownProps = buildProps({
  5. format: {
  6. type: String,
  7. default: "HH:mm:ss"
  8. },
  9. prefix: String,
  10. suffix: String,
  11. title: String,
  12. value: {
  13. type: definePropType([Number, Object]),
  14. default: 0
  15. },
  16. valueStyle: {
  17. type: definePropType([String, Object, Array])
  18. }
  19. });
  20. const countdownEmits = {
  21. finish: () => true,
  22. [CHANGE_EVENT]: (value) => isNumber(value)
  23. };
  24. export { countdownEmits, countdownProps };
  25. //# sourceMappingURL=countdown2.mjs.map