mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
修复文档错误
This commit is contained in:
10
README.md
10
README.md
@@ -170,13 +170,11 @@ import MindMap from "simple-mind-map";
|
||||
const mindMap = new MindMap({
|
||||
el: document.getElementById("mindMapContainer"),
|
||||
data: {
|
||||
"root": {
|
||||
"data": {
|
||||
"text": "root node",
|
||||
},
|
||||
"children": [],
|
||||
"data": {
|
||||
"text": "根节点"
|
||||
},
|
||||
},
|
||||
"children": []
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
@@ -145,12 +145,10 @@ import MindMap from "simple-mind-map";
|
||||
const mindMap = new MindMap({
|
||||
el: document.getElementById('mindMapContainer'),
|
||||
data: {
|
||||
"root": {
|
||||
"data": {
|
||||
"text": "根节点"
|
||||
},
|
||||
"children": []
|
||||
}
|
||||
"data": {
|
||||
"text": "根节点"
|
||||
},
|
||||
"children": []
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user