mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +00:00
Update skeleton.md
This commit is contained in:
parent
303e445eda
commit
a09ef543c5
@ -156,7 +156,7 @@ IWidgetBaseConfig 定义如下:
|
|||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| name | 面板名称 | |
|
| name | 面板名称 | |
|
||||||
| area | 扩展区位置,可选值:'topArea' | 'leftArea' | 'rightArea' | 'toolbar' | 'bottomArea' | 'mainArea' | |
|
| area | 扩展区位置,可选值:'topArea' | 'leftArea' | 'rightArea' | 'toolbar' | 'bottomArea' | 'mainArea' | |
|
||||||
| type | 面板类型,可选值:'Widget' | 'PanelDock' | 'Panel' | 详见前文中对**展示类型**的描述 |
|
| type | 面板类型,可选值:'Widget' | 'PanelDock' | 'Panel' | Dock | 详见前文中对**展示类型**的描述 |
|
||||||
| content | 面板的实现类/节点,类型是 ReactClass | ReactElement | |
|
| content | 面板的实现类/节点,类型是 ReactClass | ReactElement | |
|
||||||
| props | 面板属性 | align: 'top' | 'bottom' | 'left' | 'center' | 'right'; // 指定面板 icon 位置区域<br />icon: string | ReactElement; // icon 为字符串时,请确定当前 fusion 主题包中包含该 icon<br />description: string;<br />condition: Function; // 指定当前面板的显影状态 |
|
| props | 面板属性 | align: 'top' | 'bottom' | 'left' | 'center' | 'right'; // 指定面板 icon 位置区域<br />icon: string | ReactElement; // icon 为字符串时,请确定当前 fusion 主题包中包含该 icon<br />description: string;<br />condition: Function; // 指定当前面板的显影状态 |
|
||||||
| contentProps | 面板的实现类/节点的参数 | |
|
| contentProps | 面板的实现类/节点的参数 | |
|
||||||
@ -417,7 +417,7 @@ skeleton.disableWidget('sourceEditor');
|
|||||||
import { skeleton } from '@alilc/lowcode-engine';
|
import { skeleton } from '@alilc/lowcode-engine';
|
||||||
|
|
||||||
skeleton.add({
|
skeleton.add({
|
||||||
name: 'bottomAreaPanelName',
|
name: 'bottomAreaPanelName',
|
||||||
area: 'bottomArea',
|
area: 'bottomArea',
|
||||||
type: 'Panel',
|
type: 'Panel',
|
||||||
content: () => 'demoText',
|
content: () => 'demoText',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user