Use widgets to get checkboxes and add some vue
This commit is contained in:
29
js/components/other_input.js
Normal file
29
js/components/other_input.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import FormMixin from '../mixins/form'
|
||||
import textinput from '../components/text_input'
|
||||
|
||||
export default {
|
||||
name: 'otherinput',
|
||||
|
||||
mixins: [FormMixin],
|
||||
|
||||
components: {
|
||||
textinput,
|
||||
},
|
||||
|
||||
props: {
|
||||
initialData: {
|
||||
type: Array,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
|
||||
data: function () {
|
||||
const {
|
||||
other = true
|
||||
} = this.initialData
|
||||
|
||||
return {
|
||||
other
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user