variables stuff seem to be at least somewhat working

This commit is contained in:
Henry Jameson 2024-10-06 20:21:13 +03:00
commit 756ea63b67
6 changed files with 51 additions and 14 deletions

View file

@ -45,6 +45,7 @@ export default {
],
emits: ['update:modelValue', 'subShadowSelected'],
data () {
console.log('MODEL VALUE', this.modelValue, this.fallback)
return {
selectedId: 0,
// TODO there are some bugs regarding display of array (it's not getting updated when deleting for some reason)
@ -60,6 +61,9 @@ export default {
Popover,
ComponentPreview
},
beforeUpdate () {
this.cValue = (this.modelValue ?? this.fallback ?? []).map(toModel)
},
computed: {
selectedType: {
get () {