From 73e68ead29f70638302629c7d8389c02d59bc6d9 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 20 四月 2023 15:38:01 +0800
Subject: [PATCH] 2023-04-20

---
 src/menu/components/share/actioncomponent/index.jsx |   44 +++++++++++++++++++++++---------------------
 1 files changed, 23 insertions(+), 21 deletions(-)

diff --git a/src/menu/components/share/actioncomponent/index.jsx b/src/menu/components/share/actioncomponent/index.jsx
index 1d43e47..f20e126 100644
--- a/src/menu/components/share/actioncomponent/index.jsx
+++ b/src/menu/components/share/actioncomponent/index.jsx
@@ -405,27 +405,29 @@
             }
           } else {
             btn.style = item.style || {}
-            if (btn.class !== item.class || btn.show !== item.show || !btn.style.color || item.focus) {
-              if (btn.show === 'icon') {
-                btn.style.color = color[btn.class]
-                btn.style.backgroundColor = 'transparent'
-              } else if (btn.class === 'default') {
-                btn.style.color = 'rgba(0, 0, 0, 0.65)'
-                btn.style.backgroundColor = '#fff'
-                btn.style.borderColor = '#d9d9d9'
-              } else if (btn.class.indexOf('border') > -1) {
-                let _c = btn.class.replace('border-', '')
-                btn.style.color = color[_c]
-                btn.style.backgroundColor = '#fff'
-                btn.style.borderColor = color[_c]
-              } else if (btn.class === 'gray') {
-                btn.style.color = 'rgba(0, 0, 0, 0.65)'
-                btn.style.backgroundColor = color[btn.class]
-                btn.style.borderColor = color[btn.class]
-              } else {
-                btn.style.color = '#ffffff'
-                btn.style.backgroundColor = color[btn.class]
-                btn.style.borderColor = color[btn.class]
+            if (btn.class) {
+              if (btn.class !== item.class || btn.show !== item.show || !btn.style.color || item.focus) {
+                if (btn.show === 'icon') {
+                  btn.style.color = color[btn.class]
+                  btn.style.backgroundColor = 'transparent'
+                } else if (btn.class === 'default') {
+                  btn.style.color = 'rgba(0, 0, 0, 0.65)'
+                  btn.style.backgroundColor = '#fff'
+                  btn.style.borderColor = '#d9d9d9'
+                } else if (btn.class.indexOf('border') > -1) {
+                  let _c = btn.class.replace('border-', '')
+                  btn.style.color = color[_c]
+                  btn.style.backgroundColor = '#fff'
+                  btn.style.borderColor = color[_c]
+                } else if (btn.class === 'gray') {
+                  btn.style.color = 'rgba(0, 0, 0, 0.65)'
+                  btn.style.backgroundColor = color[btn.class]
+                  btn.style.borderColor = color[btn.class]
+                } else {
+                  btn.style.color = '#ffffff'
+                  btn.style.backgroundColor = color[btn.class]
+                  btn.style.borderColor = color[btn.class]
+                }
               }
             }
           }

--
Gitblit v1.8.0