countdown.js 791 B

1234567891011121314151617181920212223242526272829303132
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var runtime = require('../../../utils/vue/props/runtime.js');
  4. var event = require('../../../constants/event.js');
  5. var types = require('../../../utils/types.js');
  6. const countdownProps = runtime.buildProps({
  7. format: {
  8. type: String,
  9. default: "HH:mm:ss"
  10. },
  11. prefix: String,
  12. suffix: String,
  13. title: String,
  14. value: {
  15. type: runtime.definePropType([Number, Object]),
  16. default: 0
  17. },
  18. valueStyle: {
  19. type: runtime.definePropType([String, Object, Array])
  20. }
  21. });
  22. const countdownEmits = {
  23. finish: () => true,
  24. [event.CHANGE_EVENT]: (value) => types.isNumber(value)
  25. };
  26. exports.countdownEmits = countdownEmits;
  27. exports.countdownProps = countdownProps;
  28. //# sourceMappingURL=countdown.js.map