X Tutup
Skip to content

Commit 9eff0a2

Browse files
authored
Merge pull request alibaba#2 from alibaba/dev/manual-update
低代码产品使用手册升级
2 parents cc5bda3 + 939f942 commit 9eff0a2

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 1.0.1
2+
3+
- 修正链接版本
4+
- 修复取消选择会白屏的问题

packages/plugin-manual/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@alilc/lowcode-plugin-manual",
33
"author": "humphry.huang9@gmail.com",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"description": "低代码产品使用手册",
66
"main": "lib/index.js",
77
"module": "es/index.js",

packages/plugin-manual/src/popup.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ export function Documents() {
3434
<Tree
3535
defaultExpandAll={true}
3636
selectedKeys={selection}
37-
onSelect={setSelection}
37+
onSelect={(newSelection) => {
38+
if (Array.isArray(newSelection) && newSelection.length > 0) {
39+
setSelection(newSelection)
40+
}
41+
}}
3842
isNodeBlock={{
3943
defaultPadingLeft: 1,
4044
indent: 1,
@@ -54,7 +58,7 @@ export function Documents() {
5458
</>
5559
)}
5660
onClick={() => {
57-
window.open('http://lowcode-engine.cn/#/doc')
61+
window.open('http://lowcode-engine.cn/doc')
5862
}}
5963
/>
6064
<Tree.Node
@@ -69,7 +73,7 @@ export function Documents() {
6973
</>
7074
)}
7175
onClick={() => {
72-
window.open('https://www.yuque.com/lce/doc/engine-changelog')
76+
window.open('http://lowcode-engine.cn/doc?url=engine-changelog')
7377
}}
7478
/>
7579
<Tree.Node
@@ -84,7 +88,7 @@ export function Documents() {
8488
</>
8589
)}
8690
onClick={() => {
87-
window.open('https://www.yuque.com/lce/doc/engine-ext-changelog')
91+
window.open('http://lowcode-engine.cn/doc?url=engine-ext-changelog')
8892
}}
8993
/>
9094
<Tree.Node

0 commit comments

Comments
 (0)
X Tutup