GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: update skeleton.md (#1699) · KellenHe/lowcode-engine@608b99e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/docs/api
    • skeleton.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/docs/api/skeleton.md‎

Copy file name to clipboardExpand all lines: docs/docs/api/skeleton.md
+8-11Lines changed: 8 additions & 11 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.