File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed
packages/types/src/shell/type Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 11import { IPublicTypeWidgetConfigArea } from './' ;
22
33export 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 ;
You can’t perform that action at this time.
0 commit comments