countdown.d.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { EpPropFinalized } from "../../../utils/vue/props/types.js";
  2. import _default from "./countdown.vue.js";
  3. import * as _$vue from "vue";
  4. import { ExtractPublicPropTypes, StyleValue } from "vue";
  5. import { Dayjs } from "dayjs";
  6. //#region ../../packages/components/countdown/src/countdown.d.ts
  7. interface CountdownProps {
  8. /**
  9. * @description Formatting the countdown display
  10. */
  11. format?: string;
  12. /**
  13. * @description Sets the prefix of a countdown
  14. */
  15. prefix?: string;
  16. /**
  17. * @description Sets the suffix of a countdown
  18. */
  19. suffix?: string;
  20. /**
  21. * @description countdown titles
  22. */
  23. title?: string;
  24. /**
  25. * @description target time
  26. */
  27. value?: number | Dayjs;
  28. /**
  29. * @description Styles countdown values
  30. */
  31. valueStyle?: StyleValue;
  32. }
  33. /**
  34. * @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
  35. */
  36. declare const countdownProps: {
  37. readonly format: EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm:ss", boolean>;
  38. readonly prefix: StringConstructor;
  39. readonly suffix: StringConstructor;
  40. readonly title: StringConstructor;
  41. readonly value: EpPropFinalized<(new (...args: any[]) => number | Dayjs) | (() => number | Dayjs) | (((new (...args: any[]) => number | Dayjs) | (() => number | Dayjs)) | null)[], unknown, unknown, 0, boolean>;
  42. readonly valueStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
  43. };
  44. /**
  45. * @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
  46. */
  47. type CountdownPropsPublic = ExtractPublicPropTypes<typeof countdownProps>;
  48. declare const countdownEmits: {
  49. finish: () => boolean;
  50. change: (value: number) => boolean;
  51. };
  52. type CountdownEmits = typeof countdownEmits;
  53. type CountdownInstance = InstanceType<typeof _default> & unknown;
  54. //#endregion
  55. export { CountdownEmits, CountdownInstance, CountdownProps, CountdownPropsPublic, countdownEmits, countdownProps };