interaction between texts and toc, alpha version, still buged

This commit is contained in:
2020-07-13 12:46:47 +02:00
parent d336347fcb
commit 64f38eac6f
9 changed files with 153 additions and 29 deletions
+15 -3
View File
@@ -5,7 +5,13 @@
v-for="item in toc"
:key="item.uuid"
>
<TocItem :item="item" :level="1" :editionid="$route.params.id" />
<TocItem
:item="item"
:level="1"
:editionid="$route.params.id"
:loadedtextsuuids="loadedtextsuuids"
@onClickTocItem="onClickTocItem"
/>
</li>
</ul>
</section>
@@ -21,11 +27,17 @@ export default {
TocItem
},
props: {
toc: Array
toc: Array,
loadedtextsuuids: Array
},
data: () => ({
})
}),
methods: {
onClickTocItem (uuid) {
this.$emit('onClickTocItem', uuid)
}
}
}
</script>