wireguard-dashboard-admin/src/components/page/CommonPage.vue

29 lines
507 B
Vue
Raw Normal View History

2022-08-28 19:37:23 +08:00
<template>
<AppPage :show-footer="showFooter">
<n-card rounded-10 flex-1>
<slot v-if="showHeader" name="header">
<h2 mb-15 color="#333">{{ title || route.meta?.title }}</h2>
</slot>
<slot />
</n-card>
</AppPage>
</template>
<script setup>
defineProps({
showFooter: {
type: Boolean,
default: false,
},
showHeader: {
type: Boolean,
default: true,
},
title: {
type: String,
default: undefined,
},
})
const route = useRoute()
</script>