From 3ca91a731665962918a026f521c556f4745ebf35 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 16 十一月 2020 19:20:19 +0800
Subject: [PATCH] 2020-11-16

---
 src/tabviews/custom/components/card/prop-card/index.jsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index 7987e98..54c3194 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/src/tabviews/custom/components/card/prop-card/index.jsx
@@ -26,7 +26,7 @@
     loading: false,            // 鏁版嵁鍔犺浇鐘舵��
     activeKey: '',             // 閫変腑鏁版嵁
     sync: false,               // 鏄惁缁熶竴璇锋眰鏁版嵁
-    data: null,                // 鏁版嵁
+    data: {}                   // 鏁版嵁
   }
 
   UNSAFE_componentWillMount () {
@@ -34,7 +34,7 @@
     let _config = fromJS(this.props.config).toJS()
     let _cols = new Map()
 
-    let _data = null
+    let _data = {}
     let _sync = false
     if (_config.setting && _config.wrap.datatype !== 'static') {
       _sync = _config.setting.sync === 'true'
@@ -219,13 +219,13 @@
             <Spin />
           </div> : null
         }
-        {data ? <div className="card-row-list">
+        <div className="card-row-list">
           {config.subcards.map((item, index) => (
             <Col className={activeKey === index ? 'active' : ''} key={index} span={item.setting.width || 6} onClick={() => {this.changeCard(index, item)}}>
               <CardItem BID={BID} card={item} cards={config} data={data} updateStatus={this.updateStatus}/>
             </Col>
           ))}
-        </div> : null}
+        </div>
       </div>
     )
   }

--
Gitblit v1.8.0