Skip to content

Commit

Permalink
fixed code structure
Browse files Browse the repository at this point in the history
  • Loading branch information
zoul0813 committed Dec 11, 2018
1 parent b227eb4 commit 3b750b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/fields/core/fieldRadios.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,13 @@ export default {
return currentValue === this.value;
},
isItemDisabled(item) {
if(this.disabled) return true;
if (this.disabled) {
return true;
}
let disabled = objGet(item, "disabled", false);
if(isFunction(disabled)) return disabled(this.model);
if (isFunction(disabled)) {
return disabled(this.model);
}
return disabled;
}
}
Expand Down

0 comments on commit 3b750b3

Please sign in to comment.