mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-05 05:38:23 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
0d061a6c58
@ -726,9 +726,9 @@ export const Table: any = withDynamicSchemaProps(
|
||||
const scroll = useMemo(() => {
|
||||
return {
|
||||
x: 'max-content',
|
||||
y: tableHeight,
|
||||
y: dataSource.length > 0 ? tableHeight : undefined,
|
||||
};
|
||||
}, [tableHeight, maxContent]);
|
||||
}, [tableHeight, maxContent, dataSource]);
|
||||
|
||||
const rowClassName = useCallback(
|
||||
(record) => (selectedRow.includes(record[rowKey]) ? highlightRow : ''),
|
||||
@ -766,6 +766,9 @@ export const Table: any = withDynamicSchemaProps(
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.ant-table-expanded-row-fixed {
|
||||
min-height: ${tableHeight}px;
|
||||
}
|
||||
.ant-table-body {
|
||||
min-height: ${tableHeight}px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user