2020-03-12 14:29:21 +01:00
|
|
|
<template>
|
2020-02-18 08:57:00 +01:00
|
|
|
<ul>
|
|
|
|
<SettingMenuSection v-for="section in menuValue" :key="section.title" :menu-section="section" />
|
|
|
|
</ul>
|
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>
|