The two default options of "Select all" and "reverse selection" are removed from antd table rowSelection. This configuration does not take effect. How to solve this problem?

<FetchTable 
    columns={columns}
    query={query}
    ref="table"
    pagesize={50}
    url={pathConfig.MENULISTBYGROUPID_URL}![][1]
    rowKey="menuId"
    scroll={this.props.scroll || { x: "100%" }}
    rowSelection={{
      selectedRowKeys: this.state.rowKeys,
      onChange: (selectedRowKeys, selectedRows) => {
        this.setState({selected: selectedRowKeys, selectedRows: selectedRows})
      },
      hideDefaultSelections: true,
      getCheckboxProps: record => ({
        defaultChecked: record.selectFlag === 1
      }),
      onSelect: (record, selected, selectedRows) => this.onRowSelect(record, selected, selectedRows),
        
      }
    }}
      />

Mar.08,2021

columnTitle is set to space


another way, remove the header, and then write a header, successfully solved! showHeader= {false}


remove the rowSelection= {rowSelection} on the Table component and it doesn't show


isn't it easier to hide with direct style overlay


: rowSelection= "{.columnTitle:',.} is feasible?


is there a better solution?

is there a better solution?
Menu