File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 面板
9595skeleton .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```
You can’t perform that action at this time.
0 commit comments