item.vue.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { IconPropType } from "../../../utils/vue/icon.js";
  2. import { StepsProps } from "./steps.js";
  3. import { StepProps } from "./item.js";
  4. import * as _$vue from "vue";
  5. import { ComputedRef, Ref, VNode } from "vue";
  6. //#region ../../packages/components/steps/src/item.vue.d.ts
  7. interface StepItemState {
  8. uid: number;
  9. getVnode: () => VNode;
  10. currentStatus: ComputedRef<string>;
  11. internalStatus: Ref<string>;
  12. setIndex: (val: number) => void;
  13. calcProgress: (status: string) => void;
  14. }
  15. interface IStepsInject {
  16. props: Required<StepsProps>;
  17. steps: Ref<StepItemState[]>;
  18. addStep: (item: StepItemState) => void;
  19. removeStep: (item: StepItemState) => void;
  20. }
  21. declare var __VLS_1: {}, __VLS_36: {}, __VLS_38: {};
  22. type __VLS_Slots = {} & {
  23. icon?: (props: typeof __VLS_1) => any;
  24. } & {
  25. title?: (props: typeof __VLS_36) => any;
  26. } & {
  27. description?: (props: typeof __VLS_38) => any;
  28. };
  29. declare const __VLS_base: _$vue.DefineComponent<StepProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<StepProps> & Readonly<{}>, {
  30. icon: IconPropType;
  31. title: string;
  32. description: string;
  33. status: "" | "wait" | "process" | "finish" | "error" | "success";
  34. }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
  35. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  36. declare const _default: typeof __VLS_export;
  37. type __VLS_WithSlots<T, S> = T & {
  38. new (): {
  39. $slots: S;
  40. };
  41. };
  42. //#endregion
  43. export { IStepsInject, StepItemState, _default as default };