Added parent component value to Entity.

This commit is contained in:
Fabio Manganiello 2023-03-19 12:50:45 +01:00
parent 243de15813
commit f74fab795d
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774
2 changed files with 7 additions and 0 deletions

View file

@ -7,6 +7,7 @@
<component
:is="component"
:value="value"
:parent="parent"
:loading="loading"
ref="instance"
:error="error || value?.reachable == false"
@ -26,6 +27,7 @@
<div class="child" v-for="entity in computedChildren" :key="entity.id">
<Entity
:value="entity"
:parent="value"
:loading="loading"
:level="level + 1"
@input="$emit('input', entity)" />

View file

@ -21,6 +21,11 @@ export default {
required: true,
},
parent: {
type: Object,
default: () => {},
},
children: {
type: Object,
default: () => {},