From a982dedfcc0601627a133e180f35acddf276d087 Mon Sep 17 00:00:00 2001 From: neoscript99 Date: Wed, 28 Mar 2018 23:30:14 +0800 Subject: [PATCH] StandardTable need a "rowKey" prop (#1175) * StandardTable.rowKey * eslint no-unneeded-ternary --- src/components/StandardTable/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/StandardTable/index.js b/src/components/StandardTable/index.js index 95198e4c..281d60e6 100644 --- a/src/components/StandardTable/index.js +++ b/src/components/StandardTable/index.js @@ -63,7 +63,7 @@ class StandardTable extends PureComponent { render() { const { selectedRowKeys, needTotalList } = this.state; - const { data: { list, pagination }, loading, columns } = this.props; + const { data: { list, pagination }, loading, columns, rowKey } = this.props; const paginationProps = { showSizeChanger: true, @@ -105,7 +105,7 @@ class StandardTable extends PureComponent { record.key} + rowKey={rowKey || 'key'} rowSelection={rowSelection} dataSource={list} columns={columns} -- GitLab