From 8d7c3eed8bdac1e77c8de90a3227d801708c358e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 15 五月 2023 21:12:56 +0800 Subject: [PATCH] 2023-05-15 --- src/menu/components/table/edit-table/columns/index.jsx | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/menu/components/table/edit-table/columns/index.jsx b/src/menu/components/table/edit-table/columns/index.jsx index eb85458..cf70fdb 100644 --- a/src/menu/components/table/edit-table/columns/index.jsx +++ b/src/menu/components/table/edit-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() { @@ -64,6 +65,10 @@ if (column.Width) { style.width = column.Width style.minWidth = column.Width + } + + if (window.GLOB.columnId === column.uuid) { + style.color = '#1890ff' } return connectDragSource( @@ -90,6 +95,9 @@ if (column.Width) { style.width = column.Width style.minWidth = column.Width + } + if (window.GLOB.columnId === column.uuid) { + style.color = '#1890ff' } return ( @@ -339,7 +347,7 @@ config.action = config.action.filter(item => item.uuid !== btn.uuid) setTimeout(() => { - MKEmitter.emit('revert', config.uuid) + MKEmitter.emit('revertBtn', config.uuid) }, 200) } @@ -415,6 +423,9 @@ col.style = card.style || {} 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) @@ -538,7 +549,6 @@ } else { cell.type = 'number' cell.format = 'none' - cell.sum = 'false' cell.decimal = item.decimal || 0 cell.Width = 80 } -- Gitblit v1.8.0