mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
fix: allowMultiple should not appear on read-only association fields (#5017)
This commit is contained in:
parent
d37c71aaed
commit
bd573b6ee2
@ -362,9 +362,10 @@ export const selectComponentFieldSettings = new SchemaSettings({
|
|||||||
{
|
{
|
||||||
...allowMultiple,
|
...allowMultiple,
|
||||||
useVisible() {
|
useVisible() {
|
||||||
|
const isFieldReadPretty = useIsFieldReadPretty();
|
||||||
const isAssociationField = useIsAssociationField();
|
const isAssociationField = useIsAssociationField();
|
||||||
const IsShowMultipleSwitch = useIsShowMultipleSwitch();
|
const IsShowMultipleSwitch = useIsShowMultipleSwitch();
|
||||||
return isAssociationField && IsShowMultipleSwitch();
|
return !isFieldReadPretty && isAssociationField && IsShowMultipleSwitch();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user