This commit is contained in:
aqu415
2022-03-05 17:44:56 +08:00
parent e3a51d82a7
commit ea8e3472f0
+8 -2
View File
@@ -35,6 +35,12 @@
return 0;
}
},
expand_all: function () {
this.jm.expand_all()
},
collapse_all: function () {
this.jm.collapse_all()
},
loadMind: function () {
// 打开已有脑图1、查询数据,组装option 2、实例化jm、show
let id = {{ id }};
@@ -116,8 +122,8 @@
<body>
<div>
<div>
<input type="button" value="折叠">
<input type="button" value="展开">
<input type="button" value="折叠" onclick="xxObj.collapse_all()">
<input type="button" value="展开" onclick="xxObj.expand_all()">
</div>
<h3 id="h1" style="text-align: center;"></h3>
<div id="jsmind_container"/>