mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
update pluginWidget.md
Dock的使用需要在props里面定义icon属性和onClick事件
This commit is contained in:
parent
0a8f836842
commit
ba6bdda6a2
@ -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');
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user