feat: add IPublicTypeSkeletonConfig type

This commit is contained in:
liujuping 2023-02-15 10:30:06 +08:00 committed by 林熠
parent 631b566932
commit 0eac230905

View File

@ -1,8 +1,10 @@
import { IPublicTypeWidgetConfigArea } from './'; import { IPublicTypeWidgetConfigArea } from './';
export interface IPublicTypeWidgetBaseConfig { export interface IPublicTypeWidgetBaseConfig {
[extra: string]: any;
type: string; type: string;
name: string; name: string;
/** /**
* *
* - type 'Panel' 'leftFloatArea' * - type 'Panel' 'leftFloatArea'
@ -13,6 +15,29 @@ export interface IPublicTypeWidgetBaseConfig {
props?: Record<string, any>; props?: Record<string, any>;
content?: any; content?: any;
contentProps?: Record<string, any>; contentProps?: Record<string, any>;
// index?: number;
[extra: string]: any;
} }
export interface IPublicTypePanelDockConfig extends IPublicTypeWidgetBaseConfig {
type: 'PanelDock';
panelProps?: IPublicTypePanelDockPanelProps;
}
export interface IPublicTypePanelDockPanelProps {
[key: string]: any;
/** 是否隐藏面板顶部条 */
hideTitleBar?: boolean;
width?: number;
height?: number;
maxWidth?: number;
maxHeight?: number;
area?: IPublicTypeWidgetConfigArea;
}
export type IPublicTypeSkeletonConfig = IPublicTypePanelDockConfig | IPublicTypeWidgetBaseConfig;