mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 13:37:37 +00:00
fix: disable cascading select component for association field in subtable (#4517)
This commit is contained in:
parent
9e8335572a
commit
38fa7f8f03
@ -62,8 +62,9 @@ export const useFieldModeOptions = (props?) => {
|
|||||||
: [
|
: [
|
||||||
{ label: t('Select'), value: 'Select' },
|
{ label: t('Select'), value: 'Select' },
|
||||||
{ label: t('Record picker'), value: 'Picker' },
|
{ label: t('Record picker'), value: 'Picker' },
|
||||||
|
!isTableField &&
|
||||||
['m2m', 'o2m'].includes(collectionField.interface) && { label: t('Sub-table'), value: 'SubTable' },
|
['m2m', 'o2m'].includes(collectionField.interface) && { label: t('Sub-table'), value: 'SubTable' },
|
||||||
{ label: t('Cascade Select'), value: 'CascadeSelect' },
|
!isTableField && { label: t('Cascade Select'), value: 'CascadeSelect' },
|
||||||
!isTableField && { label: t('Sub-form'), value: 'Nester' },
|
!isTableField && { label: t('Sub-form'), value: 'Nester' },
|
||||||
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' },
|
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' },
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user