zydx-plus 1.35.552 → 1.35.553

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.35.552",
3
+ "version": "1.35.553",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -217,6 +217,7 @@ export default {
217
217
  paintShow: false,
218
218
  isShowAi: false,
219
219
  lastSelectedText: '',
220
+ updateInit: false,
220
221
  }
221
222
  },
222
223
  beforeUnmount() {
@@ -341,6 +342,10 @@ export default {
341
342
  enclosureButton: {
342
343
  type: Object,
343
344
  default: {}
345
+ },
346
+ updateStatus: {
347
+ type: Boolean,
348
+ default: false
344
349
  }
345
350
  },
346
351
  emits: ['see', 'del', 'complete', 'update:data', 'enclosureSuccess', 'download', 'updateData'],
@@ -348,6 +353,8 @@ export default {
348
353
  // 强制监听data变化
349
354
  data: {
350
355
  handler: function (e, oldVal) {
356
+ if(this.updateInit) return
357
+ if(this.updateStatus) this.updateInit = true
351
358
  this.editor?.commands.setContent(json2html({node: "root", child: (e.html === undefined || e.html === null || e.html === 'null') ? [] : e.html}))
352
359
  this.uploadAttData = (e.enclosure === undefined || e.enclosure === null || e.html === 'null') ? [] : this.enclosureAction(e.enclosure)
353
360
  },
@@ -200,7 +200,8 @@ export default {
200
200
  "children": []
201
201
  },
202
202
  fullShow: true,
203
- layoutList: ''
203
+ layoutList: '',
204
+ updateInit: false,
204
205
  }
205
206
  },
206
207
  props: {
@@ -220,7 +221,11 @@ export default {
220
221
  protectShow: {
221
222
  type: Boolean,
222
223
  default: true
223
- }
224
+ },
225
+ updateStatus: {
226
+ type: Boolean,
227
+ default: false
228
+ }
224
229
  },
225
230
  watch: {
226
231
  readOnly: {
@@ -232,6 +237,8 @@ export default {
232
237
  },
233
238
  data: {
234
239
  handler: function (val) {
240
+ if(this.updateInit) return
241
+ if(this.updateStatus) this.updateInit = true
235
242
  if(Object.keys(val).length === 0) {
236
243
  this.mindMap?.setData(this.defaultData)
237
244
  }else {
@@ -49,7 +49,7 @@
49
49
  <td rowspan="2">{{ item.allScore }}</td>
50
50
  <td rowspan="2" v-if="!readOnlys&&butShows">
51
51
  <span class="buts" v-if="empty">-</span>
52
- <button v-else class="but" @click="cancel(index)">撤销选择</button>
52
+ <button v-else class="but-que" @click="cancel(index)">撤销选择</button>
53
53
  </td>
54
54
  </tr>
55
55
  <tr>
@@ -354,7 +354,7 @@ export default {
354
354
  width: 80px;
355
355
  }
356
356
 
357
- .but {
357
+ .but-que {
358
358
  margin-left: 1px;
359
359
  font-size: 12px;
360
360
  background-color: transparent;
@@ -364,6 +364,7 @@ export default {
364
364
  cursor: pointer;
365
365
  min-width: 60px;
366
366
  height: 21px;
367
+ line-height: 17px;
367
368
  }
368
369
 
369
370
  .buts {
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.35.552',
92
+ version: '1.35.553',
93
93
  install,
94
94
  Calendar,
95
95
  Message,