From f9bc0059785cb1b1583e6f7a3a501f667338e672 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 21 十二月 2023 14:59:52 +0800
Subject: [PATCH] 2023-12-21

---
 src/mob/components/tabs/antv-tabs/index.jsx |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/mob/components/tabs/antv-tabs/index.jsx b/src/mob/components/tabs/antv-tabs/index.jsx
index fdd6b21..e7c4bd8 100644
--- a/src/mob/components/tabs/antv-tabs/index.jsx
+++ b/src/mob/components/tabs/antv-tabs/index.jsx
@@ -251,7 +251,7 @@
     editab.hide = res.hide || 'false'
     editab.backgroundColor = res.backgroundColor
     // editab.controlVal = res.controlVal || ''
-    editab.selectVal = res.selectVal || ''
+    // editab.selectVal = res.selectVal || ''
     editab.blacklist = res.blacklist
 
     if (editab.uuid) {
@@ -295,6 +295,17 @@
 
       delete res.controlVals
     }
+    if (res.selectVals) {
+      let values = {}
+      res.selectVals.forEach(item => {
+        values[item.uuid] = item.value
+      })
+      tabs.subtabs.forEach(tab => {
+        tab.selectVal = values[tab.uuid]
+      })
+
+      delete res.selectVals
+    }
 
     tabs.setting = res
 

--
Gitblit v1.8.0