GScreenWEB_TPMes/src/components/datav/topHeader.vue

47 lines
958 B
Vue

<template>
<div id="top-header">
<dv-decoration-8 class="header-left-decoration" />
<dv-decoration-5 class="header-center-decoration" />
<dv-decoration-8 class="header-right-decoration" :reverse="false" />
<div class="center-title" :style="'font-size:'+$fontSize(0.3)+'px'">{{Name}}</div>
<!-- ({{ Times[0]+ ' 到 ' +Times[1] }}) -->
</div>
</template>
<script>
export default {
name: 'TopHeader',
props: ['Name', 'Times']
}
</script>
<style lang="less">
#top-header {
position: relative;
width: 100%;
height: 1rem;
display: flex;
justify-content: space-between;
flex-shrink: 0;
.header-center-decoration {
width: 40%;
height: 0.6rem;
}
.header-left-decoration, .header-right-decoration {
width: 25%;
height: 0.6rem;
}
.center-title {
position: absolute;
// font-size: 30px;
font-weight: bold;
left: 50%;
top: 0.15rem;
transform: translateX(-50%);
}
}
</style>