item.vue.d.ts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import type { ComputedRef, Ref, VNode } from 'vue';
  2. import type { StepsProps } from './steps';
  3. export interface StepItemState {
  4. uid: number;
  5. getVnode: () => VNode;
  6. currentStatus: ComputedRef<string>;
  7. internalStatus: Ref<string>;
  8. setIndex: (val: number) => void;
  9. calcProgress: (status: string) => void;
  10. }
  11. export interface IStepsInject {
  12. props: StepsProps;
  13. steps: Ref<StepItemState[]>;
  14. addStep: (item: StepItemState) => void;
  15. removeStep: (item: StepItemState) => void;
  16. }
  17. declare var __VLS_1: {}, __VLS_33: {}, __VLS_35: {};
  18. type __VLS_Slots = {} & {
  19. icon?: (props: typeof __VLS_1) => any;
  20. } & {
  21. title?: (props: typeof __VLS_33) => any;
  22. } & {
  23. description?: (props: typeof __VLS_35) => any;
  24. };
  25. declare const __VLS_base: import("vue").DefineComponent<{
  26. readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  27. readonly icon: {
  28. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
  29. readonly required: false;
  30. readonly validator: ((val: unknown) => boolean) | undefined;
  31. __epPropKey: true;
  32. };
  33. readonly description: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  34. readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown, "", boolean>;
  35. }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
  36. readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  37. readonly icon: {
  38. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
  39. readonly required: false;
  40. readonly validator: ((val: unknown) => boolean) | undefined;
  41. __epPropKey: true;
  42. };
  43. readonly description: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  44. readonly status: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown, "", boolean>;
  45. }>>, {
  46. readonly title: string;
  47. readonly description: string;
  48. readonly status: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "wait" | "error" | "finish" | "success" | "process", unknown>;
  49. }, {}>;
  50. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  51. declare const _default: typeof __VLS_export;
  52. export default _default;
  53. type __VLS_WithSlots<T, S> = T & {
  54. new (): {
  55. $slots: S;
  56. };
  57. };