1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 21:24:18 +00:00

table of contents in pages

This commit is contained in:
Maxime Moraine 2020-04-02 14:20:33 +02:00
parent f415fa8613
commit a6e1803b23
12 changed files with 165 additions and 10 deletions

View file

@ -1,17 +1,20 @@
<template>
<v-navigation-drawer class="right-drawer" v-model="rightDrawer" :clipped="$vuetify.breakpoint.lgAndUp" width="300" app right>
<PageToc v-if="hasPageToc" />
<SpellFilters v-if="hasSpellFilters" />
</v-navigation-drawer>
</template>
<script>
import SpellFilters from '@theme/components/SpellFilters.vue'
import PageToc from '@theme/components/PageToc'
import SpellFilters from '@theme/components/SpellFilters'
export default {
name: 'RightDrawer',
components: {
SpellFilters
SpellFilters,
PageToc
},
data () {
@ -28,9 +31,12 @@ export default {
this.$store.commit('setRightDrawer', newValue)
}
},
hasPageToc () {
return this.$store.state.inRightDrawer == 'pageToc'
},
hasSpellFilters () {
return this.$store.state.inRightDrawer == 'spellFilters'
}
},
},
mounted () {