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

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