mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 11:12:20 +08:00
fix: style issue in sub-table in detail block (#6049)
This commit is contained in:
parent
d5ba781d12
commit
87284d6409
@ -195,6 +195,7 @@ export const SubTable: any = observer(
|
|||||||
hideOnSinglePage: false,
|
hideOnSinglePage: false,
|
||||||
};
|
};
|
||||||
}, [field.value?.length, pageSize, currentPage]);
|
}, [field.value?.length, pageSize, currentPage]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={subTableContainer}>
|
<div className={subTableContainer}>
|
||||||
<FlagProvider isInSubTable>
|
<FlagProvider isInSubTable>
|
||||||
@ -209,7 +210,8 @@ export const SubTable: any = observer(
|
|||||||
showIndex
|
showIndex
|
||||||
dragSort={false}
|
dragSort={false}
|
||||||
showDel={
|
showDel={
|
||||||
allowAddnew !== false || allowSelectExistingRecord !== false || allowDisassociation !== false
|
field.editable &&
|
||||||
|
(allowAddnew !== false || allowSelectExistingRecord !== false || allowDisassociation !== false)
|
||||||
? (record) => {
|
? (record) => {
|
||||||
if (!field.editable) {
|
if (!field.editable) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user