mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:57:20 +00:00
refactor: record picker submit button display by association type (#3283)
This commit is contained in:
parent
c6915c69f8
commit
7334e0b3fb
@ -125,6 +125,9 @@ export const InternalPicker = observer(
|
||||
}
|
||||
setVisible(false);
|
||||
},
|
||||
style: {
|
||||
display: multiple !== false && ['o2m', 'm2m'].includes(collectionField?.interface) ? 'block' : 'none',
|
||||
},
|
||||
};
|
||||
};
|
||||
return (
|
||||
@ -189,7 +192,12 @@ export const InternalPicker = observer(
|
||||
<CollectionProvider name={collectionField?.target}>
|
||||
<FormProvider>
|
||||
<TableSelectorParamsProvider params={{ filter: getFilter() }}>
|
||||
<SchemaComponentOptions scope={{ usePickActionProps, useTableSelectorProps }}>
|
||||
<SchemaComponentOptions
|
||||
scope={{
|
||||
usePickActionProps,
|
||||
useTableSelectorProps,
|
||||
}}
|
||||
>
|
||||
<RecursionField
|
||||
onlyRenderProperties
|
||||
basePath={field.address}
|
||||
|
Loading…
Reference in New Issue
Block a user