submit
This commit is contained in:
parent
52b35116bf
commit
fa425e8b23
@ -1,8 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="content1" :style="{marginTop:`${statusBarHeight}px`}">
|
<div class="content1" :style="{marginTop:`${statusBarHeight}px`}">
|
||||||
<div class="wrap1">
|
<div class="wrap1"> <slot name="left"></slot></div>
|
||||||
<slot name="left"></slot>
|
|
||||||
</div>
|
|
||||||
<div class="wrap2">{{title}}</div>
|
<div class="wrap2">{{title}}</div>
|
||||||
<div class="wrap3"></div>
|
<div class="wrap3"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -12,18 +10,20 @@ export default {
|
|||||||
name: "title-block",
|
name: "title-block",
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 4
|
statusBarHeight:uni.getSystemInfoSync().statusBarHeight+5
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
title:String
|
title:String
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.content1{
|
.content1{
|
||||||
|
height: 52rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
.wrap1{
|
.wrap1{
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex-basis: 0;
|
flex-basis: 0;
|
||||||
@ -37,8 +37,10 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
color: #4e964d;
|
flex-basis: 0;
|
||||||
|
color:#4E964D ;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user