mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: the height of the subtable in the form is set along with the mai… (#6518)
* fix: the height of the subtable in the form is set along with the main form height * fix: bug
This commit is contained in:
parent
a2002d8329
commit
f82e426daa
@ -602,12 +602,6 @@ const InternalNocoBaseTable = React.memo(
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.ant-table-expanded-row-fixed {
|
|
||||||
min-height: ${tableHeight}px;
|
|
||||||
}
|
|
||||||
.ant-table-body {
|
|
||||||
min-height: ${tableHeight}px;
|
|
||||||
}
|
|
||||||
.ant-table-cell {
|
.ant-table-cell {
|
||||||
padding: 16px 8px;
|
padding: 16px 8px;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,9 @@ const getPageHeaderHeight = (disablePageHeader, enablePageTabs, hidePageTitle, t
|
|||||||
token.paddingContentHorizontalLG
|
token.paddingContentHorizontalLG
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return token.controlHeight + token.marginXS + (token.paddingXXS + 2) * 2 + token.paddingContentHorizontalLG;
|
return (
|
||||||
|
token.controlHeight + token.marginXS + (token.paddingContentVertical + 2) * 2 + token.paddingContentHorizontalLG
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
if (enablePageTabs) {
|
if (enablePageTabs) {
|
||||||
return (
|
return (
|
||||||
@ -140,12 +142,12 @@ export const useDataBlockHeight = (options?: UseDataBlockHeightOptions) => {
|
|||||||
const { heightMode, height, title, titleHeight } = heightProps || {};
|
const { heightMode, height, title, titleHeight } = heightProps || {};
|
||||||
|
|
||||||
const blockHeaderHeight = title ? titleHeight : 0;
|
const blockHeaderHeight = title ? titleHeight : 0;
|
||||||
|
|
||||||
if (!heightProps?.heightMode || heightMode === HeightMode.DEFAULT) {
|
if (!heightProps?.heightMode || heightMode === HeightMode.DEFAULT) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (heightMode === HeightMode.FULL_HEIGHT) {
|
if (heightMode === HeightMode.FULL_HEIGHT) {
|
||||||
let res = window.innerHeight - pageFullScreenHeight;
|
let res = window.innerHeight - pageFullScreenHeight;
|
||||||
console.log(res);
|
|
||||||
if (options?.removeBlockHeaderHeight) {
|
if (options?.removeBlockHeaderHeight) {
|
||||||
res = res - blockHeaderHeight;
|
res = res - blockHeaderHeight;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user