king
2022-10-12 e657b7ed2c047af4b54cbc26e5ac66cb7656dbb5
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -140,6 +140,12 @@
          this.checkTopLine()
        }, 200)
      }
      if (!_config.wrap.cardType && _data.$$uuid) {
        setTimeout(() => {
          this.transferLine()
        }, 200)
      }
    })
  }
@@ -199,9 +205,9 @@
      this.setState({sync: false, data: _data}, () => {
        if (selected !== 'false') {
          setTimeout(() => {
            this.checkTopLine()
          }, 200)
        } else if (!config.wrap.cardType && _data.$$uuid) {
          this.transferLine()
        }
      })
    } else if (config.setting.syncRefresh && nextProps.mainSearch && !is(fromJS(this.props.mainSearch), fromJS(nextProps.mainSearch))) {
@@ -223,9 +229,9 @@
      this.setState({data: _data}, () => {
        if (selected !== 'false') {
          setTimeout(() => {
            this.checkTopLine()
          }, 200)
        } else {
          this.transferLine()
        }
      })
    }
@@ -247,6 +253,14 @@
    }
    MKEmitter.emit('resetSelectLine', config.uuid, primaryId, data)
  }
  transferLine = () => {
    const { config, data } = this.state
    if (config.wrap.cardType) return
    MKEmitter.emit('resetSelectLine', config.uuid, data.$$uuid || '', data)
  }
  /**
@@ -367,6 +381,8 @@
      }, () => {
        if (selected !== 'false') {
          this.checkTopLine()
        } else {
          this.transferLine()
        }
      })