From 704011800afdf0e87dc006b8d6e444556eaa9bf8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 10 八月 2021 14:24:42 +0800 Subject: [PATCH] 2021-08-10 --- 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