Browse Source

Table supports scrolling and expanding (#2683)

pull/2694/head
卖代码的 8 years ago
committed by 陈帅
parent
commit
b1f4737f39
  1. 6
      src/components/StandardTable/index.js

6
src/components/StandardTable/index.js

@ -65,9 +65,8 @@ class StandardTable extends PureComponent {
const { selectedRowKeys, needTotalList } = this.state; const { selectedRowKeys, needTotalList } = this.state;
const { const {
data: { list, pagination }, data: { list, pagination },
loading,
columns,
rowKey, rowKey,
...rest
} = this.props; } = this.props;
const paginationProps = { const paginationProps = {
@ -110,13 +109,12 @@ class StandardTable extends PureComponent {
/> />
</div> </div>
<Table <Table
loading={loading}
rowKey={rowKey || 'key'} rowKey={rowKey || 'key'}
rowSelection={rowSelection} rowSelection={rowSelection}
dataSource={list} dataSource={list}
columns={columns}
pagination={paginationProps} pagination={paginationProps}
onChange={this.handleTableChange} onChange={this.handleTableChange}
{...rest}
/> />
</div> </div>
); );

Loading…
Cancel
Save