@arco-design/web-vue
Version:
Arco Design Vue 2.0: A Vue.js 3 UI Library
18 lines (17 loc) • 606 B
TypeScript
import { InjectionKey } from 'vue';
import { StepData, StepStatus, StepsType } from './interface';
import { Direction } from '../_utils/constant';
export interface StepsContext {
current: number;
direction: Direction;
labelPlacement: Direction;
lineLess: boolean;
type: StepsType;
errorSteps: number[];
addItem: (step: number, data: StepData) => void;
removeItem: (step: number) => void;
getStatus: (step: number) => StepStatus;
onClick: (step: number, ev: Event) => void;
parentCls: string;
}
export declare const stepsInjectionKey: InjectionKey<StepsContext>;