@pisell/pisellos
Version:
一个可扩展的前端模块化SDK框架,支持插件系统
21 lines (20 loc) • 477 B
TypeScript
export interface IStepState {
stepList: IStep[];
currentStep: IStep;
currentStepIndex: number;
}
export interface IStep {
index: number;
key: string;
/** 是否跳过 */
isSkip?: boolean;
[key: string]: any;
}
export interface IStepModuleAPI {
getStepList: () => IStep[];
getCurrentStep: () => IStep;
getCurrentStepIndex: () => number;
nextStep: () => void;
prevStep: () => void;
gotoStep: (stepIndex: number) => void;
}