item.d.ts 1.9 KB

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