Use new checkboxinput for POC checkbox
This commit is contained in:
17
js/components/checkbox_input.js
Normal file
17
js/components/checkbox_input.js
Normal 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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user