From 010fdcf8abd58bde5c1106db8ed8448effc75b4b Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 25 二月 2025 16:37:46 +0800
Subject: [PATCH] 2025-02-25

---
 src/tabviews/zshare/actionList/asyncButtonComponent.jsx |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx b/src/tabviews/zshare/actionList/asyncButtonComponent.jsx
index 34eb4ca..1265253 100644
--- a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx
+++ b/src/tabviews/zshare/actionList/asyncButtonComponent.jsx
@@ -21,14 +21,27 @@
       this.setState({component})
     }
 
-    // <Button className="loading-skeleton" disabled={true}></Button> // 楠ㄦ灦鎸夐挳
+    componentWillUnmount () {
+      this.setState = () => {
+        return
+      }
+    }
+
     render() {
       const C = this.state.component
       const btn = this.props.btn || {}
+      let style = {}
+
+      if (!C && btn.style) {
+        style.marginRight = btn.style.marginRight || ''
+        style.marginLeft = btn.style.marginLeft || ''
+        style.marginTop = btn.style.marginTop || ''
+        style.marginBottom = btn.style.marginBottom || ''
+      }
 
       return C ?
         <C {...this.props} /> :
-        <Button className={'mk-btn mk-' + btn.class} icon={btn.icon} disabled={true} >{btn.label}</Button>
+        <Button className={'mk-btn mk-' + btn.class} style={style} disabled={true} >{btn.label}</Button>
     }
   }
 }
\ No newline at end of file

--
Gitblit v1.8.0