Closed Mashiane closed 4 years ago
use computed schema
data () {
return {
items: ['A', 'B'],
myModel: {
selection: 'A',
},
}
},
computed: {
mySchema() {
return {
selection: { type: 'select', items:this.items },
}
}
},
Thank you.
Hi there
Instead of specifiying items for selects etc like items = ['A', 'B', 'C']
How do I achieve the same by assigning such to the state like :items="itemSource", where itemSource is stored on the Vue instance?
Thank you.