From 8643b578993db8ecc7fa877764c98d882b947079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=93=E6=9C=88=E5=BD=92=E5=B0=98?= Date: Thu, 13 Feb 2025 16:21:53 +0800 Subject: [PATCH] =?UTF-8?q?pref:=20=E6=9B=B4=E6=96=B0=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/login/utils/hook.tsx | 3 ++- src/views/monitor/operation/hook.tsx | 3 ++- src/views/system/config/utils/hook.tsx | 3 ++- src/views/system/i18n/hook.tsx | 3 ++- src/views/system/language/hook.tsx | 3 ++- src/views/system/role/utils/hook.tsx | 3 ++- src/views/system/user/utils/hook.tsx | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/monitor/login/utils/hook.tsx b/src/views/monitor/login/utils/hook.tsx index 99e0256..fb09426 100644 --- a/src/views/monitor/login/utils/hook.tsx +++ b/src/views/monitor/login/utils/hook.tsx @@ -33,7 +33,8 @@ export const useLogin = (tableRef: Ref) => { total: 0, pageSize: 10, currentPage: 1, - background: true + background: true, + pageSizes: [10, 20, 30, 40, 50] }); const columns: TableColumnList = [ { diff --git a/src/views/monitor/operation/hook.tsx b/src/views/monitor/operation/hook.tsx index 9237056..88d5fe7 100644 --- a/src/views/monitor/operation/hook.tsx +++ b/src/views/monitor/operation/hook.tsx @@ -24,7 +24,8 @@ export function useOperation(tableRef: Ref) { total: 0, pageSize: 10, currentPage: 1, - background: true + background: true, + pageSizes: [10, 20, 30, 40, 50] }); const getOperationType = (type: number) => { diff --git a/src/views/system/config/utils/hook.tsx b/src/views/system/config/utils/hook.tsx index 04ff93c..a525459 100644 --- a/src/views/system/config/utils/hook.tsx +++ b/src/views/system/config/utils/hook.tsx @@ -46,7 +46,8 @@ export const useConfig = (tableRef: Ref) => { total: 0, pageSize: 10, currentPage: 1, - background: true + background: true, + pageSizes: [10, 20, 30, 40, 50] }); /** diff --git a/src/views/system/i18n/hook.tsx b/src/views/system/i18n/hook.tsx index a011016..ab6a728 100644 --- a/src/views/system/i18n/hook.tsx +++ b/src/views/system/i18n/hook.tsx @@ -45,7 +45,8 @@ export const useI18n = (tableRef: Ref) => { total: 0, pageSize: 10, currentPage: 1, - background: true + background: true, + pageSizes: [10, 20, 30, 40, 50] }); /** * 表格列设置 diff --git a/src/views/system/language/hook.tsx b/src/views/system/language/hook.tsx index c524494..8754f39 100644 --- a/src/views/system/language/hook.tsx +++ b/src/views/system/language/hook.tsx @@ -46,7 +46,8 @@ export const useLocale = (tableRef: Ref) => { total: 0, pageSize: 10, currentPage: 1, - background: true + background: true, + pageSizes: [10, 20, 30, 40, 50] }); /** * 表格列设置 diff --git a/src/views/system/role/utils/hook.tsx b/src/views/system/role/utils/hook.tsx index ad002da..241e6a3 100644 --- a/src/views/system/role/utils/hook.tsx +++ b/src/views/system/role/utils/hook.tsx @@ -68,7 +68,8 @@ export const useRole = (treeRef: Ref) => { total: 0, pageSize: 10, currentPage: 1, - background: true + background: true, + pageSizes: [10, 20, 30, 40, 50] }); const curRow = ref(); /** diff --git a/src/views/system/user/utils/hook.tsx b/src/views/system/user/utils/hook.tsx index 1628fd1..0e20386 100644 --- a/src/views/system/user/utils/hook.tsx +++ b/src/views/system/user/utils/hook.tsx @@ -81,7 +81,8 @@ export const useUser = (tableRef: Ref, treeRef: Ref) => { total: 0, pageSize: 10, currentPage: 1, - background: true + background: true, + pageSizes: [10, 20, 30, 40, 50] }); /** * 表格列配置