⚡ Many big improvments to items + sections
This commit is contained in:
@@ -5,9 +5,8 @@
|
||||
v-for="(subItem, subIndex) in subItems"
|
||||
:key="subIndex"
|
||||
:id="`${itemId}-sub-${subIndex}`"
|
||||
:url="subItem.url"
|
||||
:icon="subItem.icon"
|
||||
:title="subItem.title"
|
||||
:item="subItem"
|
||||
@triggerModal="triggerModal"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -37,6 +36,12 @@ export default {
|
||||
return 2;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
/* Pass open modal emit event up */
|
||||
triggerModal(url) {
|
||||
this.$emit('triggerModal', url);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user