From f1a4a2e83a5a3a3f8636c0d85a3a02471c5b07e7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 05 三月 2025 15:39:52 +0800
Subject: [PATCH] Merge branch 'positec' into dms

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

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index 001d66e..0035cff 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/src/tabviews/custom/components/card/prop-card/index.jsx
@@ -211,6 +211,8 @@
               this.setState({data: _data}, () => {
                 if (selected !== 'false') {
                   this.checkTopLine()
+                } else if (config.wrap.empty === 'hidden') {
+                  MKEmitter.emit('resetSelectLine', config.uuid, _data.$$uuid || '', _data)
                 }
               })
             })
@@ -286,7 +288,7 @@
         } else {
           if (selected !== 'false') {
             this.checkTopLine()
-          } else if (data.$$uuid) {
+          } else {
             this.transferLine()
           }
           this.autoExec()
@@ -340,7 +342,7 @@
       } else {
         if (selected !== 'false') {
           this.checkTopLine()
-        } else if (_data.$$uuid) {
+        } else {
           this.transferLine()
         }
         this.autoExec()
@@ -432,7 +434,12 @@
   transferLine = () => {
     const { config, data } = this.state
 
-    if (config.wrap.cardType) return
+    if (config.wrap.cardType) {
+      if (config.wrap.empty === 'hidden') {
+        MKEmitter.emit('resetSelectLine', config.uuid, data.$$uuid || '', data)
+      }
+      return
+    }
 
     MKEmitter.emit('resetSelectLine', config.uuid, data.$$uuid || '', data)
   }

--
Gitblit v1.8.0