Create form.js

This commit is contained in:
梁灏 2019-09-16 19:09:58 +08:00
parent 3edbf8eb71
commit 983cebbcea

14
src/mixins/form.js Normal file
View file

@ -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;
}
}
};