docs: update skeleton.md (#1699)

* docs: update skeleton.md
This commit is contained in:
BARM 2023-03-10 16:22:05 +08:00 committed by GitHub
parent 53ada7bf10
commit 608b99eb97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,19 +119,16 @@ skeleton.add({
area: "leftArea",
type: "Dock",
name: "opener",
content: Opener, // Widget 组件实例
contentProps: { // Widget 插件 props
xxx: "1",
},
props: {
icon: Icon, // Icon 组件实例
align: "bottom",
},
onClick: function () {
// 打开外部链接
window.open('https://lowcode-engine.cn');
// 显示 widget
skeleton.showWidget('xxx');
}
}
});
```