fix(NocoBaseReactiveField): remove disable and readOnly (#5922)

Fix the issue where the delete button is disabled in the block template management page
This commit is contained in:
Zeke Zhang 2024-12-25 10:16:25 +08:00 committed by GitHub
parent 8d75a7fcfd
commit de4921834d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,14 +59,10 @@ const NocoBaseReactiveInternal: React.FC<IReactiveFieldProps> = (props) => {
const renderComponent = () => { const renderComponent = () => {
if (!field.componentType) return content; if (!field.componentType) return content;
const disabled = true;
const readOnly = true;
return React.createElement( return React.createElement(
getComponent(field.componentType), getComponent(field.componentType),
{ {
disabled,
readOnly,
...field.componentProps, ...field.componentProps,
value: field.value, value: field.value,
}, },