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 +1 -1
- package/src/components/flip/src/flip.vue +8 -8
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -374,14 +374,7 @@ export default {
|
|
|
374
374
|
// 监听外部标注数据变化
|
|
375
375
|
annotationsData: {
|
|
376
376
|
handler: function (val) {
|
|
377
|
-
if(
|
|
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,
|