Files
cz-web/src/components/PageHead.vue
2026-10-09 17:17:43 +08:00

48 lines
868 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
interface Props {
title: string
slogan?: string
}
defineProps<Props>()
</script>
<template>
<header class="page-head">
<div class="container">
<h1 class="page-head__title">
{{ title }}
</h1>
<p v-if="slogan" class="page-head__slogan">
{{ slogan }}
</p>
</div>
</header>
</template>
<style lang="less" scoped>
.page-head {
background: @white;
padding-bottom: 72px;
&__title {
padding-top: 52px;
font-size: 22px;
font-weight: 700;
line-height: 29px;
color: @finance-ink;
}
&__slogan {
// 设计稿 #20:slogan 水平居中(当前唯一使用方为财务中心页)
text-align: center;
padding-bottom: 0;
margin-top: 9px;
font-size: 13px;
font-weight: 400;
line-height: 17px;
color: @finance-muted-text;
}
}
</style>