Create form.js
This commit is contained in:
parent
3edbf8eb71
commit
983cebbcea
1 changed files with 14 additions and 0 deletions
14
src/mixins/form.js
Normal file
14
src/mixins/form.js
Normal 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;
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue