feat: 全局css新增 该元素不接受鼠标事件

This commit is contained in:
王奥斯
2022-03-07 10:02:00 +08:00
parent 9267456749
commit 63cf7bb876
3 changed files with 11 additions and 1 deletions
+5
View File
@@ -58,4 +58,9 @@ provide('reload', reload)
color: #969799;
margin-bottom: 10px;
}
// 该元素不接受鼠标事件
.pointer-events {
pointer-events: none;
}
</style>
@@ -2,6 +2,7 @@
<div class="entertheshop">
<!-- 内容 -->
<van-cell
class="pointer-events"
:icon="datas.icon"
:title="datas.shopName"
is-link
@@ -27,5 +28,9 @@ export default {
<style scoped lang="less">
.entertheshop {
position: relative;
:deep(.van-cell__left-icon){
display: flex;
align-items: center;
}
}
</style>
@@ -33,7 +33,7 @@
<!-- 轮播组件 -->
<div
class="swiper-container"
class="swiper-container pointer-events"
v-if="
(imageList[0] && swiperType === 1) ||
swiperType === 2 ||