28 lines
518 B
Vue
28 lines
518 B
Vue
<template>
|
|||
|
|
<div class="dpage">
|
||
|
|
<header v-if="title" class="dpage-topbar">
|
||
|
|
<div>
|
||
|
|
<h1 class="dpage-topbar__title">{{ title }}</h1>
|
||
|
|
<p v-if="subtitle" class="dpage-topbar__subtitle">{{ subtitle }}</p>
|
||
|
|
</div>
|
||
|
|
<slot name="actions" />
|
||
|
|
</header>
|
||
|
|
<slot />
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script lang="ts" setup>
|
||
|
|
defineProps<{
|
||
|
|
title?: string
|
||
|
|
subtitle?: string
|
||
|
|
}>()
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style scoped>
|
||
|
|
.dpage-topbar__subtitle {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #6b7280;
|
||
|
|
margin: 6px 0 0;
|
||
|
|
}
|
||
|
|
</style>
|