uni-Identify-quality/components/title-block/title-block.vue

45 lines
784 B
Vue
Raw Normal View History

2023-09-20 06:13:13 +00:00
<template>
<div class="content1" :style="{marginTop:`${statusBarHeight}px`}">
2023-09-22 06:24:51 +00:00
<div class="wrap1"> <slot name="left"></slot></div>
2023-09-20 06:13:13 +00:00
<div class="wrap2">{{title}}</div>
<div class="wrap3"></div>
</div>
</template>
<script>
export default {
name: "title-block",
data(){
return{
2023-09-22 06:31:17 +00:00
statusBarHeight:uni.getSystemInfoSync().statusBarHeight+4
2023-09-20 06:13:13 +00:00
}
},
props:{
title:String
}
}
</script>
<style scoped lang="scss">
.content1{
display: flex;
justify-content: space-between;
2023-09-22 06:24:51 +00:00
.wrap1{
flex-grow: 1;
flex-basis: 0;
}
2023-09-20 06:13:13 +00:00
.wrap3{
2023-09-22 06:24:51 +00:00
flex-grow: 1;
flex-basis: 0;
2023-09-20 06:13:13 +00:00
}
.wrap2{
2023-09-22 06:24:51 +00:00
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
flex-basis: 0;
2023-09-20 06:13:13 +00:00
color:#4E964D ;
font-size: 32rpx;
}
}
</style>