Hello,
I’m trying to make a field plugin but the v-for loop isn’t working, neither for an array store in a prop nor for an array store in a data.
However, both arrays seems to be correctly stored according to the Vue devtools :
Here is the component that doesn’t render anything :
panel.plugin('bam/multigroups-field', {
fields: {
multigroups: {
props: {
groups: Array
},
data: function() {
return {
arr: ['A', 'B']
}
},
template: `
<p v-for="item in arr" :key="item">
{{ item }}
</p>
<p v-for="group in groups" :key="group.name">
{{ group.name }}
</p>
`
}
}
})
Any idea ?