From 9fb47dc7f1ba1fae1e7e82a3c955bc6a5ee45dcb Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 30 六月 2023 15:04:41 +0800
Subject: [PATCH] 2023-06-30

---
 src/tabviews/custom/components/card/cardcellList/index.jsx |    2 +-
 src/tabviews/custom/components/card/cardItem/index.jsx     |   14 ++------------
 2 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/src/tabviews/custom/components/card/cardItem/index.jsx b/src/tabviews/custom/components/card/cardItem/index.jsx
index c378930..d7d8a72 100644
--- a/src/tabviews/custom/components/card/cardItem/index.jsx
+++ b/src/tabviews/custom/components/card/cardItem/index.jsx
@@ -16,19 +16,10 @@
     data: PropTypes.object,
   }
 
-  state = {
-    card: null,            // 鍗$墖淇℃伅锛屽寘鎷鍙嶉潰
-  }
-
-  /**
-   * @description 鎼滅储鏉′欢鍒濆鍖�
-   */
-  UNSAFE_componentWillMount () {
-
-  }
+  state = {}
 
   shouldComponentUpdate (nextProps, nextState) {
-    return !is(fromJS(this.state), fromJS(nextState)) || !is(fromJS(this.props), fromJS(nextProps))
+    return !is(fromJS(this.props.data), fromJS(nextProps.data))
   }
 
   /**
@@ -164,7 +155,6 @@
   render() {
     const { card, data, cards, children } = this.props
     let style = {...card.style}
-
     let bg = null
 
     if (card.setting.bgField) {
diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index 33e1622..85b86b8 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -77,7 +77,7 @@
   }
 
   shouldComponentUpdate (nextProps, nextState) {
-    return !is(fromJS(this.props), fromJS(nextProps))
+    return !is(fromJS(this.props.data), fromJS(nextProps.data))
   }
 
   /**

--
Gitblit v1.8.0