element-plus
Version:
A Component Library for Vue 3
92 lines (91 loc) • 3.23 kB
TypeScript
import type { Component, PropType, 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;
currentStatus: string;
setIndex: (val: number) => void;
calcProgress: (status: string) => void;
}
export interface IStepsInject {
props: IStepsProps;
steps: Ref<StepItemState[]>;
}
declare const _default: import("vue").DefineComponent<{
title: {
type: StringConstructor;
default: string;
};
icon: {
type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
default: string;
};
description: {
type: StringConstructor;
default: string;
};
status: {
type: StringConstructor;
default: string;
validator: (val: string) => boolean;
};
}, {
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;
};
};
index: Ref<number>;
lineStyle: Ref<{}>;
currentStatus: import("vue").ComputedRef<string>;
isCenter: import("vue").ComputedRef<boolean>;
isVertical: import("vue").ComputedRef<boolean>;
isSimple: import("vue").ComputedRef<boolean>;
isLast: import("vue").ComputedRef<boolean>;
space: import("vue").ComputedRef<string | number>;
style: import("vue").ComputedRef<Record<string, unknown>>;
parent: IStepsInject;
setIndex: (val: any) => void;
calcProgress: (status: any) => void;
updateStatus: (activeIndex: any) => void;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
title: {
type: StringConstructor;
default: string;
};
icon: {
type: PropType<string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>>;
default: string;
};
description: {
type: StringConstructor;
default: string;
};
status: {
type: StringConstructor;
default: string;
validator: (val: string) => boolean;
};
}>>, {
icon: string | Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
title: string;
description: string;
status: string;
}>;
export default _default;