forked from platypush/platypush
Added parent
component value to Entity
.
This commit is contained in:
parent
243de15813
commit
f74fab795d
2 changed files with 7 additions and 0 deletions
|
@ -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)" />
|
||||
|
|
|
@ -21,6 +21,11 @@ export default {
|
|||
required: true,
|
||||
},
|
||||
|
||||
parent: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
|
||||
children: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
|
|
Loading…
Reference in a new issue