48 lines
868 B
Vue
48 lines
868 B
Vue
<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>
|