Skip to content

Commit 608b99e

Browse files
authored
docs: update skeleton.md (alibaba#1699)
* docs: update skeleton.md
1 parent 53ada7b commit 608b99e

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

docs/docs/api/skeleton.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Widget 形式是直接渲染在当前编辑器的对应位置上。如 demo 中
9090
接入可以参考代码:
9191

9292
```javascript
93-
import {skeleton} from "@alilc/lowcode-engine";
93+
import { skeleton } from "@alilc/lowcode-engine";
9494
// 注册 logo 面板
9595
skeleton.add({
9696
area: "topArea",
@@ -119,18 +119,15 @@ skeleton.add({
119119
area: "leftArea",
120120
type: "Dock",
121121
name: "opener",
122-
content: Opener, // Widget 组件实例
123-
contentProps: { // Widget 插件 props
124-
xxx: "1",
125-
},
126122
props: {
123+
icon: Icon, // Icon 组件实例
127124
align: "bottom",
128-
},
129-
onClick: function() {
130-
// 打开外部链接
131-
window.open('https://lowcode-engine.cn');
132-
// 显示 widget
133-
skeleton.showWidget('xxx');
125+
onClick: function () {
126+
// 打开外部链接
127+
window.open('https://lowcode-engine.cn');
128+
// 显示 widget
129+
skeleton.showWidget('xxx');
130+
}
134131
}
135132
});
136133
```

0 commit comments

Comments
 (0)