From 25fbc16aa14667064ac5de854183b09e01105f2c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 30 三月 2022 15:44:05 +0800
Subject: [PATCH] 2022-03-30

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

diff --git a/src/tabviews/custom/components/card/data-card/index.jsx b/src/tabviews/custom/components/card/data-card/index.jsx
index c13c422..1e248d6 100644
--- a/src/tabviews/custom/components/card/data-card/index.jsx
+++ b/src/tabviews/custom/components/card/data-card/index.jsx
@@ -168,6 +168,7 @@
 
     _config.wrap.selStyle = _config.wrap.selStyle || 'active'
     _config.wrap.scale = _config.wrap.scale === 'true' ? 'scale' : ''
+    _config.wrap.layout = (_config.wrap.layout || 'grid') + '-layout'
 
     _config.wrap.wrapClass =  `${_config.wrap.selStyle} ${_config.wrap.cardType || ''} ${_config.wrap.scale}`
 
@@ -772,7 +773,7 @@
         }
         <div className={`data-zoom ${config.wrap.wrapClass}`}>
           {switchable ? <div className={'prev-page ' + (pageIndex === 1 ? 'disabled' : '')} onClick={this.prevPage}><div><div><img src={preImg} alt=""/></div></div></div> : null}
-          <Row className="card-row-list">
+          <Row className={'card-row-list ' + config.wrap.layout}>
             {offset ? <Col span={offset} style={{height: '10px'}}> </Col> : null}
             {precards.map((item, index) => (
               <Col key={'pre' + index} className="extend-card" span={item.setting.width || 6}>

--
Gitblit v1.8.0