From ad32d76a605c38d83810470452415c9ea0d84f5a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 02 八月 2024 10:43:49 +0800
Subject: [PATCH] 2024-08-02

---
 src/views/mobdesign/index.jsx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx
index ebeda0b..e466da9 100644
--- a/src/views/mobdesign/index.jsx
+++ b/src/views/mobdesign/index.jsx
@@ -1325,6 +1325,7 @@
 
     let traversal = (components) => {
       return components.map(item => {
+        item.miniStyle = ''
         if (item.style) {
           item.miniStyle = this.transferStyle(item.style)
         }
@@ -1340,6 +1341,9 @@
         }
 
         if (item.type === 'tabs') {
+          if (item.setting.backgroundColor) {
+            item.miniStyle += `--tabs-header-background: ${item.setting.backgroundColor};`
+          }
           item.subtabs.forEach(tab => {
             tab.components = traversal(tab.components)
           })

--
Gitblit v1.8.0