fix: style issue in sub-table in detail block (#6049)

This commit is contained in:
Katherine 2025-01-13 17:15:13 +08:00 committed by GitHub
parent d5ba781d12
commit 87284d6409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -195,6 +195,7 @@ export const SubTable: any = observer(
hideOnSinglePage: false,
};
}, [field.value?.length, pageSize, currentPage]);
return (
<div className={subTableContainer}>
<FlagProvider isInSubTable>
@ -209,7 +210,8 @@ export const SubTable: any = observer(
showIndex
dragSort={false}
showDel={
allowAddnew !== false || allowSelectExistingRecord !== false || allowDisassociation !== false
field.editable &&
(allowAddnew !== false || allowSelectExistingRecord !== false || allowDisassociation !== false)
? (record) => {
if (!field.editable) {
return false;