perf: 优化交互结构,优化时间选择器组件

This commit is contained in:
奔跑的面条
2023-03-14 22:19:55 +08:00
parent e074af5208
commit 6ae4040ee2
9 changed files with 125 additions and 118 deletions
+6 -3
View File
@@ -17,17 +17,20 @@ export enum InteractEvents {
INTERACT_FN = 'interactFn'
}
// 组件交互回调事件触发的类型
// 全局组件交互回调事件触发的类型(当然可以自定义名称)
export enum InteractEventOn {
CLICK = 'click',
CHANGE = 'change'
}
// 确定交互组件触发类型 key名称
export const COMPONENT_INTERACT_EVENT_KET = 'componentInteractEventKey'
// 交互式组件的触发配置
export type InteractActionType = {
export type InteractActionsType = {
interactType: InteractEventOn
interactName: string
componentEmitEvents: { [T: string]: any[] }
componentEmitEvents: { [T: string]: { value: any; label: string }[] }
}
// vue3 生命周期事件