From e5fc2d92b1036aabf9ffc2c9706ed401bd9735c8 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 09 九月 2021 18:14:29 +0800
Subject: [PATCH] 2021-09-09

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

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index c5d6183..db60d7e 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/src/tabviews/custom/components/card/prop-card/index.jsx
@@ -105,6 +105,12 @@
       _config.subcards[0].offset = offset
     }
 
+    if (_config.subcards[0] && (_config.wrap.selected === 'always' || _config.wrap.selected === 'init')) {
+      setTimeout(() => {
+        this.checkTopLine()
+      }, 200)
+    }
+
     this.setState({
       sync: _sync,
       data: _data,
@@ -164,6 +170,16 @@
         this.loadData()
       })
     }
+  }
+
+  checkTopLine = () => {
+    const { config, data } = this.state
+
+    this.setState({
+      activeKey: 0
+    })
+
+    MKEmitter.emit('resetSelectLine', config.uuid, (config.subcards[0].setting.primaryId || ''), data)
   }
 
   handleTimer = () => {
@@ -299,7 +315,6 @@
       _data.$$BData = BData
 
       this.setState({
-        activeKey: '',
         data: _data,
         loading: false
       })

--
Gitblit v1.8.0