Skip to content

Commit

Permalink
fix: 修复table页面中的Pagination没有默认选中第一页的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NLRX-WJC committed May 14, 2020
1 parent 2808638 commit dd3f883
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ class TableComponent extends Component {
pageSizeOptions={["10", "20", "40"]}
showTotal={(total) => `共${total}条数据`}
onChange={this.changePage}
current={this.state.listQuery.pageNumber}
onShowSizeChange={this.changePageSize}
showSizeChanger
showQuickJumper
Expand Down

0 comments on commit dd3f883

Please sign in to comment.