Use new checkboxinput for POC checkbox

This commit is contained in:
richard-dds
2018-08-14 20:47:36 -04:00
parent 4085c42c1c
commit 932922cfe6
7 changed files with 32 additions and 37 deletions

View File

@@ -0,0 +1,17 @@
export default {
name: 'checkboxinput',
props: {
name: String,
},
methods: {
onInput: function (e) {
console.log(e)
this.$root.$emit('field-change', {
value: e.target.checked,
name: this.name
})
}
}
}