From a13b2a8d6e84662275ea913850e01be9b2ff31e5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 13 八月 2021 00:24:31 +0800
Subject: [PATCH] 2021-08-13

---
 src/tabviews/custom/components/share/normalTable/index.jsx |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/components/share/normalTable/index.jsx b/src/tabviews/custom/components/share/normalTable/index.jsx
index 3253c81..46eba22 100644
--- a/src/tabviews/custom/components/share/normalTable/index.jsx
+++ b/src/tabviews/custom/components/share/normalTable/index.jsx
@@ -275,6 +275,7 @@
 
       let cols = 24 / (col.picSort || 1)
       let paddingTop = '100%'
+      let scale = col.scale === 'true'
 
       if (PicRadio[col.lenWidRadio]) {
         paddingTop = PicRadio[col.lenWidRadio]
@@ -284,8 +285,8 @@
         <div>
           {photos.map((url, i) => (
             <Col key={i} span={cols}>
-              <div className="ant-mk-picture" onClick={() => {
-                if (col.scale !== 'true') return
+              <div className={'ant-mk-picture' + (scale ? ' scale' : '')} onClick={() => {
+                if (!scale) return
                 MKEmitter.emit('mkImageScale', url, photos)
               }} style={{paddingTop, backgroundImage: `url('${url}')`}}></div>
             </Col>

--
Gitblit v1.8.0