feat: 优化交互组件

This commit is contained in:
奔跑的面条
2023-03-11 16:58:32 +08:00
parent 1ed7c1ab90
commit 57694d68e7
32 changed files with 392 additions and 302 deletions
+20
View File
@@ -10,6 +10,26 @@ export enum BaseEvent {
ON_MOUSE_LEAVE = 'mouseleave'
}
// 组件交互回调事件
export enum InteractEvents {
INTERACT_ON = 'interactOn',
INTERACT_COMPONENTS = 'interactComponents',
INTERACT_FN = 'interactFn'
}
// 组件交互回调事件触发的类型
export enum InteractEventOn {
CLICK = 'click',
CHANGE = 'change'
}
// 交互式组件的触发配置
export type InteractActionType = {
interactType: InteractEventOn
interactName: string
componentEmitEvents: { [T: string]: any[] }
}
// vue3 生命周期事件
export enum EventLife {
// 渲染之后