Ver código fonte

Table supports scrolling and expanding (#2683)

卖代码的 7 anos atrás
pai
commit
b1f4737f39
1 arquivos alterados com 2 adições e 4 exclusões
  1. 2 4
      src/components/StandardTable/index.js

+ 2 - 4
src/components/StandardTable/index.js

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