item.d.ts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { IconPropType } from "../../../utils/vue/icon.js";
  2. import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
  3. import _default from "./item.vue.js";
  4. import * as _$vue from "vue";
  5. import { ExtractPublicPropTypes } from "vue";
  6. //#region ../../packages/components/steps/src/item.d.ts
  7. interface StepProps {
  8. /**
  9. * @description step title
  10. */
  11. title?: string;
  12. /**
  13. * @description step custom icon. Icons can be passed via named slot as well
  14. */
  15. icon?: IconPropType;
  16. /**
  17. * @description step description
  18. * @default ''
  19. */
  20. description?: string;
  21. /**
  22. * @description current status. It will be automatically set by Steps if not configured.
  23. * @default ''
  24. */
  25. status?: '' | 'wait' | 'process' | 'finish' | 'error' | 'success';
  26. }
  27. /**
  28. * @deprecated Removed after 3.0.0, Use `StepProps` instead.
  29. */
  30. declare const stepProps: {
  31. readonly title: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  32. readonly icon: {
  33. readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
  34. readonly required: false;
  35. readonly validator: ((val: unknown) => boolean) | undefined;
  36. __epPropKey: true;
  37. };
  38. readonly description: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  39. readonly status: EpPropFinalized<StringConstructor, "" | "wait" | "success" | "error" | "finish" | "process", unknown, "", boolean>;
  40. };
  41. /**
  42. * @deprecated Removed after 3.0.0, Use `StepProps` instead.
  43. */
  44. type StepPropsPublic = ExtractPublicPropTypes<typeof stepProps>;
  45. type StepInstance = InstanceType<typeof _default> & unknown;
  46. //#endregion
  47. export { StepInstance, StepProps, StepPropsPublic, stepProps };