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
+3 -3
View File
@@ -1,4 +1,4 @@
import { BaseEvent, EventLife, InteractEvents, InteractEventOn, InteractActionType } from '@/enums/eventEnum'
import { BaseEvent, EventLife, InteractEvents, InteractEventOn, InteractActionsType } from '@/enums/eventEnum'
import type { GlobalThemeJsonType } from '@/settings/chartThemes/index'
import type { RequestConfigType } from '@/store/modules/chartEditStore/chartEditStore.d'
@@ -120,7 +120,7 @@ export interface PublicConfigType {
}
filter?: string
status: StatusType
interactActions?: InteractActionType[],
interactActions?: InteractActionsType[],
events: {
baseEvent: {
[K in BaseEvent]?: string
@@ -129,7 +129,7 @@ export interface PublicConfigType {
[K in EventLife]?: string
}
interactEvents: {
[InteractEvents.INTERACT_ON]: InteractEventOn.CHANGE | InteractEventOn.CLICK | undefined
[InteractEvents.INTERACT_ON]: InteractEventOn | undefined
[InteractEvents.INTERACT_COMPONENT_ID]: string | undefined
[InteractEvents.INTERACT_FN]: { [name: string]: string }
}[]