mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(ImagePreview): 修复图片显示异常 (#8060)
This commit is contained in:
parent
9a7556cc30
commit
1644fc1338
@ -81,6 +81,9 @@ export default createComponent({
|
||||
|
||||
const resize = () => {
|
||||
if (swipeRef.value) {
|
||||
const { startPosition } = props;
|
||||
swipeRef.value.state.active = +startPosition;
|
||||
swipeRef.value.resize();
|
||||
const rect = swipeRef.value.$el.getBoundingClientRect();
|
||||
state.rootWidth = rect.width;
|
||||
state.rootHeight = rect.height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user