瀏覽代碼

图片设置 pointer-events: none(pc查看大图设置不了)

shaogen1995 9 月之前
父節點
當前提交
129e688503

+ 3 - 0
重写子系统/src/assets/styles/base.css

@@ -161,3 +161,6 @@ body .rc-virtual-list-scrollbar {
 body .rc-virtual-list-scrollbar-thumb {
   background-color: #D3B453 !important;
 }
+.adm-image-viewer-image-wrapper img {
+  pointer-events: none;
+}

+ 6 - 0
重写子系统/src/assets/styles/base.less

@@ -206,4 +206,10 @@ body {
     background-color: #D3B453 !important;
   }
 
+}
+// .ant-image-preview-img-wrapper img {
+//   pointer-events: none !important;
+// }
+.adm-image-viewer-image-wrapper img {
+  pointer-events: none;
 }

+ 6 - 1
重写子系统/src/components/ImageLazy/index.module.scss

@@ -5,7 +5,12 @@
       width: 100%;
       height: 100%;
       position: relative;
-      .lookImg{
+
+      img {
+        pointer-events: none;
+      }
+
+        .lookImg{
         cursor: pointer;
         transition: opacity .3s;
         opacity: 0;

+ 3 - 0
重写子系统/src/pages/A1HomeM/index.module.scss

@@ -95,6 +95,8 @@
         content-visibility: auto;
         contain-intrinsic-size: 48% 200px;
 
+
+
         .adm-image {
           width: 100%;
           height: 166px;
@@ -103,6 +105,7 @@
             width: 100%;
             height: 100%;
             object-fit: cover !important;
+            pointer-events: none;
           }
         }
 

+ 1 - 0
重写子系统/src/pages/A2GoodsM/index.module.scss

@@ -144,6 +144,7 @@
               width: 100%;
               height: 100%;
               object-fit: contain !important;
+              pointer-events: none;
             }
           }
         }