From c91f034ad9c3c8225a073256696215f448fa5035 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 25 Jun 2024 14:52:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E5=88=97=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=95=B0=E6=8D=AE=E6=9D=A1=E6=95=B0=E4=B8=BA?= =?UTF-8?q?20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/src/Table.vue | 2 +- src/hooks/web/useTable.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Table/src/Table.vue b/src/components/Table/src/Table.vue index 64bd16734..7fb9ee6cf 100644 --- a/src/components/Table/src/Table.vue +++ b/src/components/Table/src/Table.vue @@ -17,7 +17,7 @@ export default defineComponent({ // eslint-disable-next-line vue/no-reserved-component-names name: 'Table', props: { - pageSize: propTypes.number.def(10), + pageSize: propTypes.number.def(20), currentPage: propTypes.number.def(1), // 是否多选 selection: propTypes.bool.def(false), diff --git a/src/hooks/web/useTable.ts b/src/hooks/web/useTable.ts index 53cd83cce..56f8cfc90 100644 --- a/src/hooks/web/useTable.ts +++ b/src/hooks/web/useTable.ts @@ -39,7 +39,7 @@ interface TableObject { export const useTable = (config?: UseTableConfig) => { const tableObject = reactive>({ // 页数 - pageSize: 10, + pageSize: 20, // 当前页 currentPage: 1, // 总条数