fix: 新增多选的全部列表添加, 结构设计

This commit is contained in:
奔跑的面条
2022-08-05 21:12:05 +08:00
parent 7d3267959f
commit 451913f087
8 changed files with 100 additions and 35 deletions
+10 -3
View File
@@ -60,9 +60,8 @@ export enum FilterEnum {
}
// 组件实例类
export interface PublicConfigType extends requestConfig {
export interface PublicConfigType {
id: string
rename?: string
attr: { x: number; y: number; w: number; h: number; zIndex: number }
styles: {
[FilterEnum.OPACITY]: number;
@@ -84,12 +83,20 @@ export interface PublicConfigType extends requestConfig {
setPosition: Function
}
export interface CreateComponentType extends PublicConfigType {
export interface CreateComponentType extends PublicConfigType, requestConfig {
key: string
chartConfig: ConfigType
option: GlobalThemeJsonType
}
// 组件成组实例类 (部分属性用不到设置为 any)
export interface CreateComponentGroupType extends PublicConfigType {
chartConfig: {
categoryName: string
}
groupList: Array<CreateComponentType>
}
// 获取组件实例类中某个key对应value类型的方法
export type PickCreateComponentType<T extends keyof CreateComponentType> = Pick<CreateComponentType, T>[T]