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/menu/components/tabs/antv-tabs/index.jsx |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/tabs/antv-tabs/index.jsx b/src/menu/components/tabs/antv-tabs/index.jsx
index 002bc4b..3af2470 100644
--- a/src/menu/components/tabs/antv-tabs/index.jsx
+++ b/src/menu/components/tabs/antv-tabs/index.jsx
@@ -220,7 +220,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) {
@@ -264,6 +264,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
+    }
 
     res.tabStyle = res.tabStyle || 'line'
     res.cusClass = ''

--
Gitblit v1.8.0