一、代码

const uploadFile = (record, step) => {
    console.log('record', record)
    console.log('step', step)
    // setUploadRecord(record)
    // setShowUpload(true)
}
<Table
          components={components}
          rowClassName={() => 'editable-row'}
          bordered
          dataSource={isEdit ? tableNewData : dataSource}
          columns={columnss}
          scroll={{ y: 150 }}
          rowKey={record => record.key}
          onRow={record => {
            return {
              onClick: () => {
                uploadFile(record, step)
              },
            }
          }}
 />

二、效果

您已经阅读00:00:00欢迎留言评论,喜欢的话就为作者点个赞或者赏颗糖吧! 分享