Commit b1f4737f authored by ε–δ»£η ηš„'s avatar ε–δ»£η ηš„ Committed by ι™ˆεΈ…

Table supports scrolling and expanding (#2683)

parent 814af08c
...@@ -65,9 +65,8 @@ class StandardTable extends PureComponent { ...@@ -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 { ...@@ -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>
); );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment