diff --git a/src/mixins/form.js b/src/mixins/form.js new file mode 100644 index 00000000..d4f3243e --- /dev/null +++ b/src/mixins/form.js @@ -0,0 +1,14 @@ +export default { + inject: { + FormInstance: { + default: '' + } + }, + computed: { + itemDisabled () { + let state = this.disabled; + if (!state && this.FormInstance) state = this.FormInstance.disabled; + return state; + } + } +};