From 0703d8c97921cfe9219bc499a9c5ecc66c369a41 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 18 二月 2024 16:04:28 +0800
Subject: [PATCH] 2024-02-18

---
 src/menu/components/table/normal-table/columns/index.jsx |    4 +++-
 src/menu/components/share/colsControl/index.jsx          |    6 ++++--
 src/menu/components/table/edit-table/columns/index.jsx   |    4 +++-
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/share/colsControl/index.jsx b/src/menu/components/share/colsControl/index.jsx
index f7967b9..ee34472 100644
--- a/src/menu/components/share/colsControl/index.jsx
+++ b/src/menu/components/share/colsControl/index.jsx
@@ -164,8 +164,10 @@
 
     let cvalues = {}
     let cols = config.cols.map(item => {
-      let types = {custom: '鑷畾涔夊垪', colspan: '鍚堝苟鍒�'}
-      let label = types[item.type] ? `${item.label}锛�${types[item.type]}锛塦 : item.label
+      let label = item.label
+      if (item.type === 'colspan' && item.subcols && item.subcols.length > 0) {
+        label = `${item.label}锛�${item.subcols.map(cell => cell.label).join('銆�')}锛塦
+      }
 
       cvalues[item.uuid] = label
 
diff --git a/src/menu/components/table/edit-table/columns/index.jsx b/src/menu/components/table/edit-table/columns/index.jsx
index 9275f2e..0956ffd 100644
--- a/src/menu/components/table/edit-table/columns/index.jsx
+++ b/src/menu/components/table/edit-table/columns/index.jsx
@@ -75,7 +75,9 @@
     return !is(fromJS(this.props.column), fromJS(nextProps.column)) ||
       !is(fromJS(this.props.fields), fromJS(nextProps.fields)) ||
       this.props.index !== nextProps.index ||
-      window.GLOB.columnId === nextProps.column.uuid || window.GLOB.precolumnId === nextProps.column.uuid
+      (nextProps.className && this.props.className !== nextProps.className) ||
+      window.GLOB.columnId === nextProps.column.uuid ||
+      window.GLOB.precolumnId === nextProps.column.uuid
   }
 
   render() {
diff --git a/src/menu/components/table/normal-table/columns/index.jsx b/src/menu/components/table/normal-table/columns/index.jsx
index 585012a..a7a32e9 100644
--- a/src/menu/components/table/normal-table/columns/index.jsx
+++ b/src/menu/components/table/normal-table/columns/index.jsx
@@ -75,7 +75,9 @@
     return !is(fromJS(this.props.column), fromJS(nextProps.column)) ||
       !is(fromJS(this.props.fields), fromJS(nextProps.fields)) ||
       this.props.index !== nextProps.index ||
-      window.GLOB.columnId === nextProps.column.uuid || window.GLOB.precolumnId === nextProps.column.uuid
+      (nextProps.className && this.props.className !== nextProps.className) ||
+      window.GLOB.columnId === nextProps.column.uuid ||
+      window.GLOB.precolumnId === nextProps.column.uuid
   }
 
   render() {

--
Gitblit v1.8.0