修复文档错误

This commit is contained in:
wanglin2 2023-01-11 18:01:56 +08:00
parent 7d3f08bed0
commit 4d82dfdf9e
2 changed files with 8 additions and 12 deletions

View File

@ -170,13 +170,11 @@ import MindMap from "simple-mind-map";
const mindMap = new MindMap({ const mindMap = new MindMap({
el: document.getElementById("mindMapContainer"), el: document.getElementById("mindMapContainer"),
data: { data: {
"root": {
"data": { "data": {
"text": "root node", "text": "根节点"
},
"children": [],
},
}, },
"children": []
}
}); });
``` ```

View File

@ -145,13 +145,11 @@ import MindMap from "simple-mind-map";
const mindMap = new MindMap({ const mindMap = new MindMap({
el: document.getElementById('mindMapContainer'), el: document.getElementById('mindMapContainer'),
data: { data: {
"root": {
"data": { "data": {
"text": "根节点" "text": "根节点"
}, },
"children": [] "children": []
} }
}
}); });
``` ```