From e657b7ed2c047af4b54cbc26e5ac66cb7656dbb5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 12 十月 2022 12:13:05 +0800
Subject: [PATCH] 2022-10-12

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

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index cd6a645..69708a2 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/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)
+          this.checkTopLine()
+        } 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)
+          this.checkTopLine()
+        } 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()
         }
       })
 

--
Gitblit v1.8.0