feat: 组件生命周期事件

This commit is contained in:
潘潘
2022-10-11 18:31:29 +08:00
parent c290d407a3
commit 889839f685
12 changed files with 348 additions and 6 deletions
+10 -1
View File
@@ -116,12 +116,21 @@ export interface PublicConfigType {
filter?: string
status: StatusType
setPosition: Function
events?: {
[K in EventLife]?: string
}
}
// vue3 生命周期事件
export enum EventLife {
BEFORE_MOUNT = 'vnodeBeforeMount',
MOUNTED = 'vnodeMounted'
}
export interface CreateComponentType extends PublicConfigType, requestConfig {
key: string
chartConfig: ConfigType
option: GlobalThemeJsonType
option: GlobalThemeJsonType,
}
// 组件成组实例类
+3
View File
@@ -87,6 +87,9 @@ export class PublicConfigClass implements PublicConfigType {
this.attr.x = x
this.attr.y = y
}
// 事件
public events = undefined
}
// 多选成组类