mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
17 lines
401 B
Vue
17 lines
401 B
Vue
<script setup lang="ts">
|
|
const props = withDefaults(defineProps<{
|
|
title?: string,
|
|
noSpacer?: boolean,
|
|
}>(), {
|
|
title: '',
|
|
noSpacer: false,
|
|
});
|
|
let { title, noSpacer } = $(props);
|
|
watchEffect(() => useTitle(`${title} - nfSense`));
|
|
</script>
|
|
<template>
|
|
<Portal to="page-header">
|
|
<h1 v-if="title !== ''" v-text="title" :class="{'flex-grow': !noSpacer}"/>
|
|
<slot/>
|
|
</Portal>
|
|
</template>
|