mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 15:40:52 +00:00
fix(ImagePreview): 修复图片显示异常 (#8060)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user