diff --git a/docs/docs/guide/expand/editor/pluginWidget.md b/docs/docs/guide/expand/editor/pluginWidget.md index 7efaffcf0..06125575f 100644 --- a/docs/docs/guide/expand/editor/pluginWidget.md +++ b/docs/docs/guide/expand/editor/pluginWidget.md @@ -172,19 +172,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'); - }, + onClick: function () { + // 打开外部链接 + window.open('https://lowcode-engine.cn'); + // 显示 widget + skeleton.showWidget('xxx'); + } + } }); ```