From 1fb7e4f5569ac3da3b1b2319ce02f4f04b0865d3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 20 二月 2025 22:09:32 +0800
Subject: [PATCH] 2025-02-20

---
 src/tabviews/custom/components/group/normal-group/index.jsx |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/custom/components/group/normal-group/index.jsx b/src/tabviews/custom/components/group/normal-group/index.jsx
index 0f33480..daaf5c3 100644
--- a/src/tabviews/custom/components/group/normal-group/index.jsx
+++ b/src/tabviews/custom/components/group/normal-group/index.jsx
@@ -15,7 +15,7 @@
 
   state = {
     visible: true,
-    hidden: false,
+    hidden: this.props.config.setting.bindPropId ? null : false,
     mergeAble: this.props.config.setting.mergeAble === 'true'
   }
 
@@ -57,6 +57,12 @@
       _wrapStyle = {...style}
       _wrapStyle.display = 'none'
     }
+
+    let title = config.setting && config.setting.title
+
+    if (title && hidden === null) {
+      title = ''
+    }
     
     return (
       <div className={`ant-col ant-col-${config.width} ${mergeAble ? ' mk-merge-able mk-ctrl-' + (config.setting.ctrlNumber || 1) : ''} ${visible ? '' : ' close'}`} style={_wrapStyle}>
@@ -65,8 +71,8 @@
             <DoubleLeftOutlined onClick={() => this.setState({visible: false})}/>
             <DoubleRightOutlined onClick={() => this.setState({visible: true})}/>
           </div>
-          {config.setting && config.setting.title ? <div className="group-header" style={config.headerStyle}>
-            <span className="title">{config.setting.title}</span>
+          {title ? <div className="group-header" style={config.headerStyle}>
+            <span className="title">{title}</span>
           </div> : null}
           <TabTransfer config={config}/>
         </div>

--
Gitblit v1.8.0