Table plus expandedRowKeys attribute, click on a line to expand and merge the question

expand by default. After that, for example, if I click on the operation date in the first column and cannot merge, how can I solve this?

onSelectChange = (selectedRowKeys, selectedRows) => {
    this.setState({ selectedRowKeys,selectedRows });
}

const rowSelection = {
  selectedRowKeys,
  onChange: this.onSelectChange,
};
<Table
  expandedRowKeys={["1","1.1","2","3","6"]}
  loading={loading}
  rowSelection={dataSource.length?rowSelection:null}
  dataSource={dataSource}
  columns={columns}
  pagination={false}
  scroll={{x: 1000,y: 430}}
  rowKey={(record, index) => record.id}
/>

is used with onExpand= {(expanded, record) = > {his.expandFunction (expanded, record)}}. In the expandFunction method, if you decide that expanded is true, put key into the expandedRowKeys array If it is false, remove key from the expandedRowKeys array


        rowKey="id"
        :columns="columns"
        :data="loadData"
        :expandedRowKeys="expandedKeys"
        @expand="onExpand"
        :showPagination="false"
      >
< hr >

onExpand (expanded, record) {

  if (expanded) {
    // Key
    this.onExpandedRowsChange(record);
  } else {
    if (this.expandedKeys.length) {
      this.expandedKeys = this.expandedKeys.filter(v => {
        return v != record.id;
      });
    }
  }
},
onExpandedRowsChange(rows) {
  this.expandedKeys.push(rows.id);
}


without looking closely at the document, it is used with the attribute onExpandedRowsChange.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be9cd5-30ef0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be9cd5-30ef0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?