Antd table Click to expand the current detail question

<Table
    rowSelection={rowSelection}
    columns={columns}
    dataSource={dataSource}
    pagination={paginationProps}
    loading={loadingTable}
    expandedRowKeys={["58"]}
  />

I don"t know why expandedRowKeys= {["58"]} cannot be expanded or automatically expanded. Has anyone met? -sharp-sharp-sharp problem description

Mar.30,2021

you need to set rowKey .

<Table rowKey={row => row.id}/>

is very creepy, so why does "defaultExpandAllRows" only take effect at initialization time! Get the status of the current deployment and the current line each time through "onExpand". The following is the document:
image.png
recordchildrenexpandedRowKeys:
image.png
in the above picture, suppose we select a specific item through the select in the upper left corner, and then go to the request interface. If there are hundreds of data, the interface will be very stuck

.
Menu