Skip to content

Commit 0eac230

Browse files
liujupingJackLian
authored andcommitted
feat: add IPublicTypeSkeletonConfig type
1 parent 631b566 commit 0eac230

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

packages/types/src/shell/type/widget-base-config.ts

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import { IPublicTypeWidgetConfigArea } from './';
22

33
export interface IPublicTypeWidgetBaseConfig {
4+
[extra: string]: any;
45
type: string;
56
name: string;
7+
68
/**
79
* 停靠位置:
810
* - 当 type 为 'Panel' 时自动为 'leftFloatArea';
@@ -13,6 +15,29 @@ export interface IPublicTypeWidgetBaseConfig {
1315
props?: Record<string, any>;
1416
content?: any;
1517
contentProps?: Record<string, any>;
16-
// index?: number;
17-
[extra: string]: any;
1818
}
19+
20+
export interface IPublicTypePanelDockConfig extends IPublicTypeWidgetBaseConfig {
21+
type: 'PanelDock';
22+
23+
panelProps?: IPublicTypePanelDockPanelProps;
24+
}
25+
26+
export interface IPublicTypePanelDockPanelProps {
27+
[key: string]: any;
28+
29+
/** 是否隐藏面板顶部条 */
30+
hideTitleBar?: boolean;
31+
32+
width?: number;
33+
34+
height?: number;
35+
36+
maxWidth?: number;
37+
38+
maxHeight?: number;
39+
40+
area?: IPublicTypeWidgetConfigArea;
41+
}
42+
43+
export type IPublicTypeSkeletonConfig = IPublicTypePanelDockConfig | IPublicTypeWidgetBaseConfig;

0 commit comments

Comments
 (0)