소스 검색

table的全屏默认关闭

zhangdaiscott 2 년 전
부모
커밋
3d0d857052
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/hooks/system/useListPage.ts
  2. 2 1
      src/hooks/web/useContentHeight.ts

+ 2 - 2
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,

+ 2 - 1
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 = () => {