You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
824 B
Vue

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