mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 新增多选的全部列表添加, 结构设计
This commit is contained in:
Vendored
+10
-3
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user