element-plus
Version:
A Component Library for Vue 3
126 lines (125 loc) • 8.75 kB
TypeScript
import type { Ref } from 'vue';
export interface IStepsProps {
space: number | string;
active: number;
direction: string;
alignCenter: boolean;
simple: boolean;
finishStatus: string;
processStatus: string;
}
export interface StepItemState {
uid: number | undefined;
currentStatus: string;
setIndex: (val: number) => void;
calcProgress: (status: string) => void;
}
export interface IStepsInject {
props: IStepsProps;
steps: Ref<StepItemState[]>;
}
declare const _default: import("vue").DefineComponent<{
readonly title: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
readonly icon: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown, unknown, unknown>;
readonly description: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
readonly status: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "success" | "error" | "wait" | "finish" | "process", unknown>;
}, {
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
readonly title: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
readonly icon: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown, unknown, unknown>;
readonly description: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
readonly status: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "success" | "error" | "wait" | "finish" | "process", unknown>;
}>> & {
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
}>>;
ns: {
namespace: import("vue").ComputedRef<string>;
b: (blockSuffix?: string) => string;
e: (element?: string | undefined) => string;
m: (modifier?: string | undefined) => string;
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
em: (element?: string | undefined, modifier?: string | undefined) => string;
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
is: {
(name: string, state: boolean | undefined): string;
(name: string): string;
};
cssVar: (object: Record<string, string>) => Record<string, string>;
cssVarName: (name: string) => string;
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
cssVarBlockName: (name: string) => string;
};
index: Ref<number>;
lineStyle: Ref<{}>;
internalStatus: Ref<string>;
parent: IStepsInject;
currentInstance: import("vue").ComponentInternalInstance | null;
currentStatus: import("vue").ComputedRef<string>;
prevStatus: import("vue").ComputedRef<string>;
isCenter: import("vue").ComputedRef<boolean>;
isVertical: import("vue").ComputedRef<boolean>;
isSimple: import("vue").ComputedRef<boolean>;
stepsCount: import("vue").ComputedRef<number>;
isLast: import("vue").ComputedRef<boolean>;
space: import("vue").ComputedRef<string | number>;
style: import("vue").ComputedRef<Record<string, unknown>>;
setIndex: (val: any) => void;
calcProgress: (status: any) => void;
updateStatus: (activeIndex: any) => void;
stepItemState: {
uid: number | undefined;
currentStatus: string;
setIndex: (val: any) => void;
calcProgress: (status: any) => void;
};
ElIcon: import("../../../utils").SFCWithInstall<import("vue").DefineComponent<{
readonly size: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | number>, unknown, unknown, unknown, unknown>;
readonly color: import("../../../utils").BuildPropReturn<StringConstructor, unknown, unknown, unknown, unknown>;
}, {
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
readonly size: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | number>, unknown, unknown, unknown, unknown>;
readonly color: import("../../../utils").BuildPropReturn<StringConstructor, unknown, unknown, unknown, unknown>;
}>> & {
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
}>>;
ns: {
namespace: import("vue").ComputedRef<string>;
b: (blockSuffix?: string) => string;
e: (element?: string | undefined) => string;
m: (modifier?: string | undefined) => string;
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
em: (element?: string | undefined, modifier?: string | undefined) => string;
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
is: {
(name: string, state: boolean | undefined): string;
(name: string): string;
};
cssVar: (object: Record<string, string>) => Record<string, string>;
cssVarName: (name: string) => string;
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
cssVarBlockName: (name: string) => string;
};
style: import("vue").ComputedRef<import("vue").CSSProperties>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
readonly size: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | number>, unknown, unknown, unknown, unknown>;
readonly color: import("../../../utils").BuildPropReturn<StringConstructor, unknown, unknown, unknown, unknown>;
}>>, {
size: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<string | number>, unknown, unknown>;
color: string;
}>> & Record<string, any>;
Check: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
Close: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
readonly title: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
readonly icon: import("../../../utils").BuildPropReturn<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown, unknown, unknown>;
readonly description: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, unknown, unknown>;
readonly status: import("../../../utils").BuildPropReturn<StringConstructor, "", unknown, "" | "success" | "error" | "wait" | "finish" | "process", unknown>;
}>>, {
icon: import("../../../utils").BuildPropType<import("../../../utils").PropWrapper<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>, unknown, unknown>;
title: string;
description: string;
status: import("../../../utils").BuildPropType<StringConstructor, "" | "success" | "error" | "wait" | "finish" | "process", unknown>;
}>;
export default _default;