Merge branch 'main' into refactor/remove-rowKey

This commit is contained in:
Zeke Zhang 2025-04-29 12:26:07 +08:00
commit 302b159010

View File

@ -70,6 +70,15 @@ const subTableContainer = css`
.ant-table-thead .ant-table-cell {
font-weight: normal;
}
.ant-pagination {
position: absolute;
right: 0px;
bottom: 0px;
}
.ant-table-footer {
margin-top: 10px;
background: inherit;
}
`;
const tableClassName = css`
@ -252,12 +261,11 @@ export const SubTable: any = observer(
locale={{
emptyText: <span> {field.editable ? t('Please add or select record') : t('No data')}</span>,
}}
/>
footer={() => (
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
{field.editable && (
<Space
style={{
position: 'relative',
bottom: '0',
gap: 15,
}}
>
@ -283,6 +291,9 @@ export const SubTable: any = observer(
)}
</Space>
)}
</div>
)}
/>
</SubFormProvider>
</FormActiveFieldsProvider>
</CollectionRecordProvider>