I can’t figure out the structure of the fields object the ‘fields’ prop expects in the k-structure-field. I am a total newbie to Vue, but the documentation could use an example, as it has for other fields.
<template>
<k-structure-field
:label="label"
fields="{
material: {
label: 'Material',
type: 'text',
required: true
},
}"
/>
</template>
<script>
export default {
props: {
label: String,
},
}
</script>
The above returns an Cannot create property 'section' on string '{'
error.