king
2023-06-30 9fb47dc7f1ba1fae1e7e82a3c955bc6a5ee45dcb
2023-06-30
2个文件已修改
16 ■■■■ 已修改文件
src/tabviews/custom/components/card/cardItem/index.jsx 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) {
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))
  }
  /**