修复文档错误
This commit is contained in:
parent
7d3f08bed0
commit
4d82dfdf9e
10
README.md
10
README.md
@ -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": "根节点"
|
||||||
"text": "root node",
|
|
||||||
},
|
|
||||||
"children": [],
|
|
||||||
},
|
},
|
||||||
},
|
"children": []
|
||||||
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -145,12 +145,10 @@ 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": []
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user