From 93f67eceb286067a6ec5bbd747147f4824c1c6d2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 13 五月 2023 22:50:54 +0800
Subject: [PATCH] 2023-05-13

---
 src/menu/components/table/normal-table/columns/index.jsx |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/src/menu/components/table/normal-table/columns/index.jsx b/src/menu/components/table/normal-table/columns/index.jsx
index f8ae9cd..5362007 100644
--- a/src/menu/components/table/normal-table/columns/index.jsx
+++ b/src/menu/components/table/normal-table/columns/index.jsx
@@ -47,7 +47,8 @@
 
     return !is(fromJS(this.props.column), fromJS(nextProps.column)) ||
       !is(fromJS(this.props.fields), fromJS(nextProps.fields)) ||
-      this.props.index !== nextProps.index
+      this.props.index !== nextProps.index ||
+      window.GLOB.columnId === nextProps.column.uuid || window.GLOB.precolumnId === nextProps.column.uuid
   }
 
   render() {
@@ -58,6 +59,10 @@
       if (column.Width) {
         style.width = column.Width
         style.minWidth = column.Width
+      }
+
+      if (window.GLOB.columnId === column.uuid) {
+        style.color = '#1890ff'
       }
 
       return connectDragSource(
@@ -84,6 +89,10 @@
       if (column.Width) {
         style.width = column.Width
         style.minWidth = column.Width
+      }
+
+      if (window.GLOB.columnId === column.uuid) {
+        style.color = '#1890ff'
       }
 
       return (
@@ -410,6 +419,9 @@
       col.elements = card.type === 'action' ? (card.elements || []) : []
     }
 
+    window.GLOB.precolumnId = window.GLOB.columnId || ''
+    window.GLOB.columnId = col.uuid
+
     this.setState({card: null})
     this.updateCol(col)
   }

--
Gitblit v1.8.0