From 4a96a7bc3e15411220d4bf00a8dc04258c0e1780 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 23 十一月 2021 11:38:00 +0800 Subject: [PATCH] 2021-11-23 --- src/tabviews/custom/components/card/prop-card/index.jsx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx index 2e00b88..bbd7e78 100644 --- a/src/tabviews/custom/components/card/prop-card/index.jsx +++ b/src/tabviews/custom/components/card/prop-card/index.jsx @@ -111,6 +111,8 @@ }, 200) } + _config.wrap.selStyle = _config.wrap.selStyle || 'active' + this.setState({ sync: _sync, data: _data, @@ -373,7 +375,7 @@ <NormalHeader config={config}/> <Row className={`card-row-list ${config.wrap.cardType || ''} ${config.wrap.scale || ''}`}> {config.subcards.map((item, index) => ( - <Col className={(activeKey === index ? 'active' : '') + (item.setting.click ? ' pointer' : '')} key={index} span={item.setting.width || 6} offset={item.offset || 0} onClick={() => {this.changeCard(index, item)}}> + <Col className={(activeKey === index ? config.wrap.selStyle : '') + (item.setting.click ? ' pointer' : '')} key={index} span={item.setting.width || 6} offset={item.offset || 0} onClick={() => {this.changeCard(index, item)}}> <CardItem card={item} cards={config} data={data}/> </Col> ))} -- Gitblit v1.8.0