$emit('selected', e)"
/>
@@ -147,6 +149,10 @@ export default {
type: Array,
default: () => [],
},
+ parentSlotId: {
+ type: String,
+ default: undefined,
+ },
},
data(){return {
expanded: false,
@@ -197,6 +203,21 @@ export default {
}
return this.children;
},
+ computedSlotId() {
+ if (this.condenseChild) {
+ if (this.children[0].node.type === 'propertySlot') {
+ return this.children[0].node._id;
+ } else {
+ return undefined;
+ }
+ } else {
+ if (this.node.type === 'propertySlot') {
+ return this.node._id;
+ } else {
+ return undefined;
+ }
+ }
+ },
canExpand(){
return !!this.computedChildren.length || this.canFillWithMany;
},
@@ -230,41 +251,41 @@ export default {