fix: x-disabled property not taking effect on form fields (#6610)

This commit is contained in:
Katherine 2025-04-02 11:32:33 +08:00 committed by GitHub
parent 12e6824153
commit 6632c755d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,6 +108,9 @@ const CollectionFieldInternalField = (props) => {
if (fieldSchema['x-read-pretty'] === true && !field.readPretty) { if (fieldSchema['x-read-pretty'] === true && !field.readPretty) {
field.readPretty = true; field.readPretty = true;
} }
if (fieldSchema['x-disabled'] === true) {
field.disabled = true;
}
}, [field, fieldSchema]); }, [field, fieldSchema]);
if (!uiSchema) return null; if (!uiSchema) return null;