fix: allowMultiple should not appear on read-only association fields (#5017)

This commit is contained in:
Katherine 2024-08-08 15:20:07 +08:00 committed by GitHub
parent d37c71aaed
commit bd573b6ee2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -362,9 +362,10 @@ export const selectComponentFieldSettings = new SchemaSettings({
{
...allowMultiple,
useVisible() {
const isFieldReadPretty = useIsFieldReadPretty();
const isAssociationField = useIsAssociationField();
const IsShowMultipleSwitch = useIsShowMultipleSwitch();
return isAssociationField && IsShowMultipleSwitch();
return !isFieldReadPretty && isAssociationField && IsShowMultipleSwitch();
},
},
{