From e9c48bd7356462ba9257540b130a47a65ad1861d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 八月 2021 17:17:11 +0800 Subject: [PATCH] 2021-08-26 --- src/tabviews/custom/components/share/normalTable/index.jsx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/share/normalTable/index.jsx b/src/tabviews/custom/components/share/normalTable/index.jsx index f0ba8f3..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,7 +285,10 @@ <div> {photos.map((url, i) => ( <Col key={i} span={cols}> - <div className="ant-mk-picture" style={{paddingTop, backgroundImage: `url('${url}')`}}></div> + <div className={'ant-mk-picture' + (scale ? ' scale' : '')} onClick={() => { + if (!scale) return + MKEmitter.emit('mkImageScale', url, photos) + }} style={{paddingTop, backgroundImage: `url('${url}')`}}></div> </Col> ))} </div> -- Gitblit v1.8.0