mirror of
https://gitee.com/was666/as-editor.git
synced 2026-07-23 00:00:02 +08:00
feat: 全局css新增 该元素不接受鼠标事件
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user