zydx-plus 1.36.643 → 1.36.644

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.36.643",
3
+ "version": "1.36.644",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -374,14 +374,7 @@ export default {
374
374
  // 监听外部标注数据变化
375
375
  annotationsData: {
376
376
  handler: function (val) {
377
- if(typeof val === Object) {
378
- this.annotations.push({
379
- ...val,
380
- show: false,
381
- style: {},
382
- type: "tag"
383
- })
384
- }else {
377
+ if (Array.isArray(val)) {
385
378
  const arr = val.map(x => {
386
379
  return {
387
380
  ...x,
@@ -391,6 +384,13 @@ export default {
391
384
  }
392
385
  })
393
386
  this.annotations = arr.concat(this.annotationsInit)
387
+ } else if (val && typeof val === 'object') {
388
+ this.annotations.push({
389
+ ...val,
390
+ show: false,
391
+ style: {},
392
+ type: "tag"
393
+ })
394
394
  }
395
395
  },
396
396
  deep: true,
package/src/index.js CHANGED
@@ -89,7 +89,7 @@ function install(app) {
89
89
  }
90
90
 
91
91
  export default {
92
- version: '1.36.643',
92
+ version: '1.36.644',
93
93
  install,
94
94
  Calendar,
95
95
  Message,