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
|
<component
|
||||||
:is="component"
|
:is="component"
|
||||||
:value="value"
|
:value="value"
|
||||||
|
:parent="parent"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
ref="instance"
|
ref="instance"
|
||||||
:error="error || value?.reachable == false"
|
:error="error || value?.reachable == false"
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
<div class="child" v-for="entity in computedChildren" :key="entity.id">
|
<div class="child" v-for="entity in computedChildren" :key="entity.id">
|
||||||
<Entity
|
<Entity
|
||||||
:value="entity"
|
:value="entity"
|
||||||
|
:parent="value"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:level="level + 1"
|
:level="level + 1"
|
||||||
@input="$emit('input', entity)" />
|
@input="$emit('input', entity)" />
|
||||||
|
|
|
@ -21,6 +21,11 @@ export default {
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
parent: {
|
||||||
|
type: Object,
|
||||||
|
default: () => {},
|
||||||
|
},
|
||||||
|
|
||||||
children: {
|
children: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {},
|
default: () => {},
|
||||||
|
|
Loading…
Reference in a new issue