@shijiu/jsview-vue 1.9.882 → 1.9.888

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": "@shijiu/jsview-vue",
3
- "version": "1.9.882",
3
+ "version": "1.9.888",
4
4
  "license": "MIT",
5
5
  "repository": "system/jsview-framework",
6
6
  "author": "mengxk",
@@ -47,7 +47,7 @@ const props = defineProps({
47
47
  textAlign: "start",
48
48
  lineHeight: "20px",
49
49
  whiteSpace: "nowrap",
50
- direction: "ltr,",
50
+ direction: "ltr",
51
51
  };
52
52
  },
53
53
  },
@@ -370,12 +370,10 @@ export default {
370
370
  curViewAnimation.SetAnimationListener(
371
371
  new Forge.AnimationListener(null, this._onAnimationEnd, null)
372
372
  );
373
- this.$refs["element" + this.currentViewIndex]?.jsvGetProxyView(true).StartAnimation(
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
- :ref="'element' + index"
500
+ ref="element"
503
501
  >
504
502
  <!-- 为了保证slot中的页面刷新。不加这个div slot中的img标签不会更新,vue或者是dom的bug? -->
505
503
  <div :key="item.dataIndex">
@@ -25,7 +25,7 @@ export default {
25
25
  },
26
26
  methods: {
27
27
  _updateInnerView() {
28
- if (this.innerView === null) {
28
+ if (this.innerView === null && !this.html) {
29
29
  // 初始化View
30
30
 
31
31
  // 创建JsView图层穿透的texture,抠洞处理