From 985a88228896a6bdc280ff8085f727c35c851f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?= <188633308@qq.com> Date: Wed, 16 Jun 2021 10:12:58 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=80=BB=E6=95=B0=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-react/src/components/query-table/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web-react/src/components/query-table/index.jsx b/web-react/src/components/query-table/index.jsx index 1e51f2d..de69c37 100644 --- a/web-react/src/components/query-table/index.jsx +++ b/web-react/src/components/query-table/index.jsx @@ -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,