@shijiu/jsview-vue 1.9.879 → 1.9.887
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
|
@@ -370,12 +370,10 @@ export default {
|
|
|
370
370
|
curViewAnimation.SetAnimationListener(
|
|
371
371
|
new Forge.AnimationListener(null, this._onAnimationEnd, null)
|
|
372
372
|
);
|
|
373
|
-
this.$refs[
|
|
373
|
+
this.$refs.element?.[this.currentViewIndex]?.jsvGetProxyView(true).StartAnimation(
|
|
374
374
|
curViewAnimation
|
|
375
375
|
);
|
|
376
|
-
this.$refs[
|
|
377
|
-
"element" + modToRange(this.currentViewIndex - direction, VIEW_NUM)
|
|
378
|
-
]?.jsvGetProxyView(true).StartAnimation(preViewAnimation);
|
|
376
|
+
this.$refs.element?.[modToRange(this.currentViewIndex - direction, VIEW_NUM)]?.jsvGetProxyView(true).StartAnimation(preViewAnimation);
|
|
379
377
|
},
|
|
380
378
|
_startSmoothTranslateAnimation() {
|
|
381
379
|
let curController = this.controllerList[this.currentViewIndex];
|
|
@@ -499,7 +497,7 @@ export default {
|
|
|
499
497
|
v-for="(item, index) in viewInfoList"
|
|
500
498
|
:key="index"
|
|
501
499
|
:style="item.style"
|
|
502
|
-
|
|
500
|
+
ref="element"
|
|
503
501
|
>
|
|
504
502
|
<!-- 为了保证slot中的页面刷新。不加这个div slot中的img标签不会更新,vue或者是dom的bug? -->
|
|
505
503
|
<div :key="item.dataIndex">
|