quasar-framework
Version:
Simultaneously build desktop/mobile SPA websites & phone/tablet apps with VueJS
22 lines (21 loc) • 368 B
JavaScript
export default {
inject: {
field: {
from: '__field',
default: null
}
},
props: {
noParentField: Boolean
},
beforeMount () {
if (!this.noParentField && this.field) {
this.field.__registerInput(this)
}
},
beforeDestroy () {
if (!this.noParentField && this.field) {
this.field.__unregisterInput()
}
}
}