diff --git a/src/components/input/input.vue b/src/components/input/input.vue index 0af953b..2d8498c 100644 --- a/src/components/input/input.vue +++ b/src/components/input/input.vue @@ -2,10 +2,15 @@
- +
diff --git a/src/mixins/form.js b/src/mixins/form.js new file mode 100644 index 0000000..d4f3243 --- /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; + } + } +}; -- libgit2 0.21.4