From 3d0d857052f19e4adb9a104873d84992052370e8 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 22 Sep 2022 14:05:19 +0800 Subject: [PATCH] =?UTF-8?q?table=E7=9A=84=E5=85=A8=E5=B1=8F=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/system/useListPage.ts | 4 ++-- src/hooks/web/useContentHeight.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hooks/system/useListPage.ts b/src/hooks/system/useListPage.ts index b935641..90b4ea1 100644 --- a/src/hooks/system/useListPage.ts +++ b/src/hooks/system/useListPage.ts @@ -248,9 +248,9 @@ export function useListTable(tableProps: TableProps): [ showIndexColumn: false, // 显示表格设置 showTableSetting: true, - // 表格设置 + // 表格全屏设置 tableSetting: { - fullScreen: true, + fullScreen: false, }, // 是否显示操作列 showActionColumn: true, diff --git a/src/hooks/web/useContentHeight.ts b/src/hooks/web/useContentHeight.ts index e43da1e..b41f300 100644 --- a/src/hooks/web/useContentHeight.ts +++ b/src/hooks/web/useContentHeight.ts @@ -138,7 +138,8 @@ export function useContentHeight( upward(anchorEl, upwardSpace); } - let height = bottomIncludeBody - unref(layoutFooterHeightRef) - unref(offsetHeightRef) - substractHeight - substractSpaceHeight - upwardSpaceHeight; + let height = + bottomIncludeBody - unref(layoutFooterHeightRef) - unref(offsetHeightRef) - substractHeight - substractSpaceHeight - upwardSpaceHeight; // compensation height const calcCompensationHeight = () => {