@braid/vue-formulate
Version:
The easiest way to build forms in Vue.
23 lines (22 loc) • 342 B
JavaScript
/**
* Default base for input components.
*/
export default {
props: {
context: {
type: Object,
required: true
}
},
computed: {
type () {
return this.context.type
},
attributes () {
return this.context.attributes || {}
},
hasValue () {
return this.context.hasValue
}
}
}