You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.4 KiB
81 lines
1.4 KiB
<template>
|
|
<view>
|
|
|
|
<view class="statHeader indexheader">
|
|
<view class="indexheaderLeft">
|
|
<text class="indexheaderLeftText">{{title}}</text>
|
|
<view class="headerBorder"></view>
|
|
</view>
|
|
<view class="indexheaderRight">
|
|
<slot></slot>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "boxtitle",
|
|
props: {
|
|
title: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
};
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.indexheader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-bottom: 22rpx;
|
|
border-bottom: 2rpx solid #F0F0F0;
|
|
align-items: center;
|
|
min-height: 40rpx;
|
|
}
|
|
|
|
.indexheader .indexheaderLeft .indexheaderLeftText {
|
|
font-family: SourceHanSansCN-Medium;
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
line-height: 40rpx;
|
|
font-weight: bold;
|
|
position: absolute;
|
|
z-index: 2;
|
|
bottom: -22rpx;
|
|
left: 0;
|
|
|
|
}
|
|
|
|
.indexheader .indexheaderRight .indexheaderMoreText {
|
|
opacity: 0.6;
|
|
font-family: SourceHanSansCN-Normal;
|
|
font-size: 24rpx;
|
|
color: #666666;
|
|
line-height: 40rpx;
|
|
}
|
|
|
|
|
|
.indexheaderLeft {
|
|
position: relative;
|
|
flex: 1;
|
|
}
|
|
|
|
.headerBorder {
|
|
background-image: linear-gradient(90deg, rgba(91, 215, 171, 0.6) 0%, rgba(238, 238, 238, 0.00) 100%);
|
|
border-radius: 8rpx;
|
|
width: 60rpx;
|
|
height: 16rpx;
|
|
position: absolute;
|
|
bottom: -22rpx;
|
|
left: 0;
|
|
z-index: 1;
|
|
}
|
|
</style>
|