mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
fix(ImagePreview): 修复图片显示异常 (#8060)
This commit is contained in:
@@ -81,6 +81,9 @@ export default createComponent({
|
|||||||
|
|
||||||
const resize = () => {
|
const resize = () => {
|
||||||
if (swipeRef.value) {
|
if (swipeRef.value) {
|
||||||
|
const { startPosition } = props;
|
||||||
|
swipeRef.value.state.active = +startPosition;
|
||||||
|
swipeRef.value.resize();
|
||||||
const rect = swipeRef.value.$el.getBoundingClientRect();
|
const rect = swipeRef.value.$el.getBoundingClientRect();
|
||||||
state.rootWidth = rect.width;
|
state.rootWidth = rect.width;
|
||||||
state.rootHeight = rect.height;
|
state.rootHeight = rect.height;
|
||||||
|
Reference in New Issue
Block a user