1
0
mirror of synced 2025-02-05 08:39:23 +03:00
vue-formulario/src/FormulateInputMixin.js

26 lines
389 B
JavaScript
Raw Normal View History

/**
* Default base for input components.
*/
export default {
props: {
context: {
type: Object,
required: true
}
},
computed: {
type () {
return this.context.type
},
id () {
return this.context.id
},
attributes () {
return this.context.attributes || {}
},
hasValue () {
2019-10-08 23:54:16 -04:00
return !!this.context.model
}
}
}