Skip to content

Commit

Permalink
fix(@uform/core): Fix the parameters of changeEditable api which have…
Browse files Browse the repository at this point in the history
… been defined in interface IField. (#180)
  • Loading branch information
linlingyu authored and janryWang committed Jul 17, 2019
1 parent ca543b6 commit 6995de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6995de6

Please sign in to comment.