fix 修复记录总数丢失的问题

This commit is contained in:
2021-06-16 10:12:58 +08:00
parent c322401271
commit 985a882288

View File

@@ -171,7 +171,10 @@ export default class QueryTable extends Component {
* @param {*} sorter
*/
onTableChange(pagination, filters, sorter) {
this.pagination = pagination
this.pagination = {
...pagination,
showTotal: (total) => `总共${total}条数据`
}
this.sorter = {
sortField: sorter.field,
sortOrder: sorter.order,