Skip to content

Commit

Permalink
fix(imagepreview): 图片放大不能滑动(jd-opensource#2136) (jd-opensource#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
yi-boide authored Sep 19, 2023
1 parent db1d6b8 commit 84058cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/packages/__VUE/imagepreview/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</nut-popup>
</template>
<script lang="ts">
import { toRefs, reactive, watch, onMounted, ref, computed } from 'vue';
import { toRefs, reactive, watch, onMounted, ref, computed, nextTick } from 'vue';
import type { PropType } from 'vue';
import { createComponent } from '@/packages/utils/create';
import { isArray } from '@/packages/utils/util';
Expand Down Expand Up @@ -148,7 +148,9 @@ export default create({
if (val) {
setActive(props.initNo);
init();
nextTick(() => {
init();
});
}
}
);
Expand Down

0 comments on commit 84058cd

Please sign in to comment.