diff --git a/packages/core/src/field.ts b/packages/core/src/field.ts index c04268f53d0..327f8f51a77 100644 --- a/packages/core/src/field.ts +++ b/packages/core/src/field.ts @@ -322,7 +322,7 @@ export class Field implements IField { } } - public changeEditable(editable: boolean) { + public changeEditable(editable: boolean | ((name: string) => boolean)): void { if (!this.props || !isEmpty(this.props.editable)) { return }