king
2023-05-13 93f67eceb286067a6ec5bbd747147f4824c1c6d2
src/menu/components/table/base-table/columns/index.jsx
@@ -46,7 +46,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() {
@@ -57,6 +58,10 @@
      if (column.Width) {
        style.width = column.Width
        style.minWidth = column.Width
      }
      if (window.GLOB.columnId === column.uuid) {
        style.color = '#1890ff'
      }
      return connectDragSource(
@@ -83,6 +88,11 @@
        style.width = column.Width
        style.minWidth = column.Width
      }
      if (window.GLOB.columnId === column.uuid) {
        style.color = '#1890ff'
      }
      return (
        <th {...restProps} style={style} key={column.uuid} onDoubleClick={() => this.props.editColumn(column)}>
          <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
@@ -453,6 +463,9 @@
      }
    }
    window.GLOB.precolumnId = window.GLOB.columnId || ''
    window.GLOB.columnId = col.uuid
    this.setState({card: null})
    this.updateCol(col)
  }