Commit 40614fc7 by 张立顺

fix(venus-usedcar-quality): 样式问题修复

1 parent d6711f20
Pipeline #154 for 40614fc7 failed in 0 seconds
...@@ -57,6 +57,26 @@ body { ...@@ -57,6 +57,26 @@ body {
pointer-events: auto; pointer-events: auto;
} }
// Vant ImagePreview 桌面端:预览项只监听 touch,全屏 popup 又叠在 overlay 之上,导致鼠标点「遮罩」关不掉;
// 关闭按钮 z-index 偏低时还会被 swipe 层盖住。允许点击穿透 popup,仅图片/关闭/页码接收事件,让底层 overlay 处理关闭。
@media (hover: hover) and (pointer: fine) {
#vant-portal-host .van-popup.van-image-preview {
pointer-events: none;
}
#vant-portal-host .van-popup.van-image-preview .van-image-preview__close-icon,
#vant-portal-host .van-popup.van-image-preview .van-image-preview__image,
#vant-portal-host .van-popup.van-image-preview .van-image-preview__image-wrap,
#vant-portal-host .van-popup.van-image-preview .van-image-preview__index,
#vant-portal-host .van-popup.van-image-preview .van-image-preview__cover {
pointer-events: auto;
}
#vant-portal-host .van-popup.van-image-preview .van-image-preview__close-icon {
z-index: 10;
}
}
a { a {
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
......
...@@ -405,6 +405,7 @@ onUnmounted(() => { ...@@ -405,6 +405,7 @@ onUnmounted(() => {
</div> </div>
<van-image-preview v-model:show="previewVisible" <van-image-preview v-model:show="previewVisible"
closeable
:images="previewImages" :images="previewImages"
:start-position="previewIndex" :start-position="previewIndex"
teleport="#vant-portal-host" /> teleport="#vant-portal-host" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!