zydx-plus 1.33.377 → 1.33.379

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zydx-plus",
3
- "version": "1.33.377",
3
+ "version": "1.33.379",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  "pdfjs-dist": "^2.0.943",
25
25
  "snabbdom": "^3.5.1",
26
26
  "katex": "^0.15.6",
27
- "simple-mind-map": "^0.9.6",
27
+ "simple-mind-map": "^0.10.6",
28
28
  "@tiptap/starter-kit": "^2.0.3",
29
29
  "@tiptap/vue-3": "^2.0.3",
30
30
  "@tiptap/extension-bubble-menu": "^2.1.0",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="mind" :ref="id">
2
+ <div class="mind" :class="{'full-screen':!fullShow}" :ref="id">
3
3
  <div class="table">
4
4
  <div class="table-left" v-if="!readOnly">
5
5
  <button :disabled="mindShow" @click="addNode">添加节点</button>
@@ -150,19 +150,19 @@ export default {
150
150
  ],
151
151
  rowValue: '1.5',
152
152
  optionWidth: [
153
- {label: "0", value: '0'},
154
- {label: "1", value: '1'},
155
- {label: "2", value: '2'},
156
- {label: "3", value: '3'},
157
- {label: "4", value: '4'},
158
- {label: "5", value: '5'},
159
- {label: "6", value: '6'},
160
- {label: "7", value: '7'},
161
- {label: "8", value: '8'},
162
- {label: "9", value: '9'},
163
- {label: "10", value: '10'},
153
+ {label: "0", value: 0},
154
+ {label: "1", value: 1},
155
+ {label: "2", value: 2},
156
+ {label: "3", value: 3},
157
+ {label: "4", value: 4},
158
+ {label: "5", value: 5},
159
+ {label: "6", value: 6},
160
+ {label: "7", value: 7},
161
+ {label: "8", value: 8},
162
+ {label: "9", value: 9},
163
+ {label: "10", value: 10},
164
164
  ],
165
- widthValue: '1',
165
+ widthValue: 1,
166
166
  filletValue: '5',
167
167
  lineValue: '1',
168
168
  optionLine: [
@@ -325,8 +325,8 @@ export default {
325
325
  },
326
326
  // 全屏
327
327
  fullTap() {
328
- this.fullShow = false
329
- this.fullScreen(this.$refs[this.id])
328
+ this.fullShow = false
329
+ this.fullScreen(document.body)
330
330
  },
331
331
  msgFun(e) {
332
332
  if(e.msg) {
@@ -356,6 +356,7 @@ export default {
356
356
  this.forwardShow = index >= len - 1
357
357
  })
358
358
  this.mindMap.on('node_active', (node, activeNodeList) => {
359
+ console.log('activeNodeList',activeNodeList)
359
360
  this.activeNodes = activeNodeList
360
361
  })
361
362
  this.mindMap.on('data_change', (data) => {
@@ -679,4 +680,14 @@ export default {
679
680
  width: 94px;
680
681
  margin-left: -40px;
681
682
  }
683
+
684
+ .full-screen{
685
+ background: #fff;
686
+ width: 100vw;
687
+ height: 100vh;
688
+ position: fixed;
689
+ top: 0;
690
+ left: 0;
691
+ z-index: 100;
692
+ }
682
693
  </style>
@@ -110,6 +110,7 @@ export default {
110
110
  .replace(/<span style="text-indent: 2em;">/g, '')
111
111
  .replace(/<\/span>/g, '')
112
112
  .replace(/&nbsp;/g, ' ')
113
+ .replace(/<br>/g, '\n')
113
114
  // 如果br后边没有内容,就去掉br
114
115
  if (br.indexOf('\n') !== -1) {
115
116
  const arr = br.split('\n')
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.377',
86
+ version: '1.33.379',
87
87
  install,
88
88
  Calendar,
89
89
  Message,