Kaynağa Gözat

table的全屏默认关闭

zhangdaiscott 2 yıl önce
ebeveyn
işleme
3d0d857052

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