From 16f80ddfc338bc65a893c1b7eb93d1d9861158b2 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 02 七月 2023 23:05:17 +0800 Subject: [PATCH] Merge branch 'develop' --- src/tabviews/custom/components/card/cardItem/index.jsx | 14 ++------------ 1 files changed, 2 insertions(+), 12 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) { -- Gitblit v1.8.0