Skip to content

Commit

Permalink
Update skeleton.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BARMPlus authored and JackLian committed Mar 13, 2023
1 parent 303e445 commit a09ef54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/api/skeleton.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ IWidgetBaseConfig 定义如下:
| --- | --- | --- |
| name | 面板名称 | |
| area | 扩展区位置,可选值:'topArea' | 'leftArea' | 'rightArea' | 'toolbar' | 'bottomArea' | 'mainArea' | |
| type | 面板类型,可选值:'Widget' | 'PanelDock' | 'Panel' | 详见前文中对**展示类型**的描述 |
| type | 面板类型,可选值:'Widget' | 'PanelDock' | 'Panel' | Dock | 详见前文中对**展示类型**的描述 |
| content | 面板的实现类/节点,类型是 ReactClass | ReactElement | |
| props | 面板属性 | align: 'top' &#124; 'bottom' &#124; 'left' &#124; 'center' &#124; 'right'; // 指定面板 icon 位置区域<br />icon: string &#124; ReactElement;  // icon 为字符串时,请确定当前 fusion 主题包中包含该 icon<br />description: string;<br />condition: Function; // 指定当前面板的显影状态 |
| contentProps | 面板的实现类/节点的参数 | |
Expand Down Expand Up @@ -417,7 +417,7 @@ skeleton.disableWidget('sourceEditor');
import { skeleton } from '@alilc/lowcode-engine';

skeleton.add({
name: 'bottomAreaPanelName',
name: 'bottomAreaPanelName',
area: 'bottomArea',
type: 'Panel',
content: () => 'demoText',
Expand Down

0 comments on commit a09ef54

Please sign in to comment.