2020-03-12 14:29:21 +01:00
|
|
|
<template>
|
2020-06-19 19:27:10 +02:00
|
|
|
<aside>
|
|
|
|
<ul>
|
|
|
|
<SettingMenuSection
|
|
|
|
v-for="section in menuValue"
|
|
|
|
:key="section.title"
|
|
|
|
:menu-section="section"
|
|
|
|
/>
|
|
|
|
</ul>
|
|
|
|
</aside>
|
2020-03-12 14:29:21 +01:00
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
2020-02-18 08:57:00 +01:00
|
|
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
|
|
import SettingMenuSection from "@/components/Settings/SettingMenuSection.vue";
|
|
|
|
import { ISettingMenuSection } from "@/types/setting-menu.model";
|
2020-03-12 14:29:21 +01:00
|
|
|
@Component({
|
|
|
|
components: { SettingMenuSection },
|
|
|
|
})
|
|
|
|
export default class SettingsMenu extends Vue {
|
|
|
|
@Prop({ required: true, type: Array }) menu!: ISettingMenuSection[];
|
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
get menuValue() {
|
|
|
|
return this.menu;
|
|
|
|
}
|
2020-03-12 14:29:21 +01:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
</script>
|
2020-06-17 15:54:24 +02:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
/deep/ a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
</style>
|