vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
33 lines (32 loc) • 494 B
TypeScript
/**
* Props
*/
export interface Props {
modelValue?: boolean;
data: Steps[];
buts?: StepsBut;
}
/**
* 步骤类型
*/
export interface Steps {
class: string;
title: string;
content: string;
}
/**
* 按钮文字
*/
export interface StepsBut {
next?: string;
prev?: string;
end?: string;
}
/**
* 组件事件类型
*/
export type Emits = {
(event: 'update:modelValue', value: boolean): void;
(event: 'close'): void;
(event: 'ok'): void;
};