11wqe1 6 months ago
parent
commit
24a5335b91

+ 11 - 11
package-lock.json

@@ -33,7 +33,7 @@
         "jquery": "^3.6.0",
         "jquery": "^3.6.0",
         "js-audio-recorder": "^1.0.7",
         "js-audio-recorder": "^1.0.7",
         "js-pinyin": "^0.1.9",
         "js-pinyin": "^0.1.9",
-        "jsmind": "^0.4.8",
+        "jsmind": "^0.4.11",
         "jspdf": "^2.5.1",
         "jspdf": "^2.5.1",
         "jszip": "^3.10.1",
         "jszip": "^3.10.1",
         "lamejs": "^1.2.1",
         "lamejs": "^1.2.1",
@@ -8256,9 +8256,9 @@
       }
       }
     },
     },
     "node_modules/jsmind": {
     "node_modules/jsmind": {
-      "version": "0.4.8",
-      "resolved": "https://registry.npmmirror.com/jsmind/-/jsmind-0.4.8.tgz",
-      "integrity": "sha512-+wt82K5D+Ilngo2afcWyZurI6J9xJsUsp+RO+vjeu+MVcDPkAeZKGcHfomCnKwjcupWSp0MOlNB6H3cSUg9bXQ=="
+      "version": "0.4.11",
+      "resolved": "https://registry.npmmirror.com/jsmind/-/jsmind-0.4.11.tgz",
+      "integrity": "sha512-Tyy1U2S7rP/O2WUcjegWuO+S2EYcVM7QVuXkHMnVXZ97BiehmXuepQvJctpWT7bvtgJUIyLWaYxrQoyStE1CXQ=="
     },
     },
     "node_modules/json-loader": {
     "node_modules/json-loader": {
       "version": "0.5.7",
       "version": "0.5.7",
@@ -21924,7 +21924,7 @@
         "jquery": "^3.6.0",
         "jquery": "^3.6.0",
         "js-audio-recorder": "^1.0.7",
         "js-audio-recorder": "^1.0.7",
         "js-pinyin": "^0.1.9",
         "js-pinyin": "^0.1.9",
-        "jsmind": "^0.4.8",
+        "jsmind": "0.4.11",
         "jspdf": "^2.5.1",
         "jspdf": "^2.5.1",
         "jszip": "^3.10.1",
         "jszip": "^3.10.1",
         "lamejs": "^1.2.1",
         "lamejs": "^1.2.1",
@@ -28786,9 +28786,9 @@
           "dev": true
           "dev": true
         },
         },
         "jsmind": {
         "jsmind": {
-          "version": "0.4.8",
-          "resolved": "https://registry.npmmirror.com/jsmind/-/jsmind-0.4.8.tgz",
-          "integrity": "sha512-+wt82K5D+Ilngo2afcWyZurI6J9xJsUsp+RO+vjeu+MVcDPkAeZKGcHfomCnKwjcupWSp0MOlNB6H3cSUg9bXQ=="
+          "version": "0.4.11",
+          "resolved": "https://registry.npmmirror.com/jsmind/-/jsmind-0.4.11.tgz",
+          "integrity": "sha512-Tyy1U2S7rP/O2WUcjegWuO+S2EYcVM7QVuXkHMnVXZ97BiehmXuepQvJctpWT7bvtgJUIyLWaYxrQoyStE1CXQ=="
         },
         },
         "json-loader": {
         "json-loader": {
           "version": "0.5.7",
           "version": "0.5.7",
@@ -42077,9 +42077,9 @@
       "dev": true
       "dev": true
     },
     },
     "jsmind": {
     "jsmind": {
-      "version": "0.4.8",
-      "resolved": "https://registry.npmmirror.com/jsmind/-/jsmind-0.4.8.tgz",
-      "integrity": "sha512-+wt82K5D+Ilngo2afcWyZurI6J9xJsUsp+RO+vjeu+MVcDPkAeZKGcHfomCnKwjcupWSp0MOlNB6H3cSUg9bXQ=="
+      "version": "0.4.11",
+      "resolved": "https://registry.npmmirror.com/jsmind/-/jsmind-0.4.11.tgz",
+      "integrity": "sha512-Tyy1U2S7rP/O2WUcjegWuO+S2EYcVM7QVuXkHMnVXZ97BiehmXuepQvJctpWT7bvtgJUIyLWaYxrQoyStE1CXQ=="
     },
     },
     "json-loader": {
     "json-loader": {
       "version": "0.5.7",
       "version": "0.5.7",

+ 1 - 1
package.json

@@ -36,7 +36,7 @@
     "jquery": "^3.6.0",
     "jquery": "^3.6.0",
     "js-audio-recorder": "^1.0.7",
     "js-audio-recorder": "^1.0.7",
     "js-pinyin": "^0.1.9",
     "js-pinyin": "^0.1.9",
-    "jsmind": "^0.4.8",
+    "jsmind": "^0.4.11",
     "jspdf": "^2.5.1",
     "jspdf": "^2.5.1",
     "jszip": "^3.10.1",
     "jszip": "^3.10.1",
     "lamejs": "^1.2.1",
     "lamejs": "^1.2.1",

+ 3 - 4
src/components/pages/aiAddCourse/jsmind2.vue

@@ -9,12 +9,11 @@
 </template>
 </template>
 
 
 <script>
 <script>
+import jsMind from "jsmind";
 import "jsmind/style/jsmind.css";
 import "jsmind/style/jsmind.css";
-import jsMind from "jsmind/js/jsmind.js";
-window.jsMind = jsMind;
 
 
-require("jsmind/js/jsmind.draggable.js");
-require("jsmind/js/jsmind.screenshot.js");
+
+
 export default {
 export default {
   props: {
   props: {
     showBar: {
     showBar: {

+ 6 - 4
src/components/tools/jsmind.vue

@@ -4,6 +4,8 @@
     <div class="noMind" v-if="mindV">
     <div class="noMind" v-if="mindV">
       <img src="../../assets/nominddata.png" alt />
       <img src="../../assets/nominddata.png" alt />
     </div>
     </div>
+    <el-button @click="zoomIn" size="medium" :disabled="isZoomIn">放大</el-button>
+      <el-button @click="zoomOut" size="medium" :disabled="isZoomOut" class="pad">缩小</el-button>
     <!-- <div class="jsmind_toolbar" v-if="showBar">
     <!-- <div class="jsmind_toolbar" v-if="showBar">
       <el-upload
       <el-upload
         class="pad"
         class="pad"
@@ -108,12 +110,12 @@
 </template>
 </template>
 
 
 <script>
 <script>
+import jsMind from "jsmind";
 import "jsmind/style/jsmind.css";
 import "jsmind/style/jsmind.css";
-import jsMind from "jsmind/js/jsmind.js";
-window.jsMind = jsMind;
 
 
-require("jsmind/js/jsmind.draggable.js");
-require("jsmind/js/jsmind.screenshot.js");
+
+
+
 export default {
 export default {
   props: {
   props: {
     showBar: {
     showBar: {

+ 3 - 4
src/components/tools/jsmind2.vue

@@ -9,12 +9,11 @@
 </template>
 </template>
 
 
 <script>
 <script>
+
+import jsMind from "jsmind";
 import "jsmind/style/jsmind.css";
 import "jsmind/style/jsmind.css";
-import jsMind from "jsmind/js/jsmind.js";
-window.jsMind = jsMind;
 
 
-require("jsmind/js/jsmind.draggable.js");
-require("jsmind/js/jsmind.screenshot.js");
+
 export default {
 export default {
   props: {
   props: {
     showBar: {
     showBar: {