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.

74 lines
1.4 KiB

4 years ago
<template>
<div class="v-header">
<div class="v-left-text" :style="{color:variables.primaryColor,
'border-bottom': '2px solid'+ variables.primaryColor}">
<Icon size="20" :type="icon" />
<span>{{text}}</span>
</div>
<div class="content">
<slot name="content"></slot>
</div>
<!-- <div class="v-right-content">
<slot></slot>
</div> -->
<div class="selerchcontent">
<slot></slot>
</div>
</div>
</template>
<script>
import variables from '@/styles/variables.scss'
export default {
props: {
icon: {
type: String,
default: ""
},
text: {
type: String,
default: "未定义名称"
}
},
computed: {
variables() {
return variables
}
}
};
</script>
<style lang="less" scoped>
.v-header {
display: flex;
border-bottom: 1px solid #dcdee2;
flex-direction: column;
.v-left-text {
margin-top: 3px;
padding-bottom: 6px;
// padding-top: 10px;
font-weight: bold;
font-size: 15px;
white-space: nowrap;
>span {
position: relative;
top: 2px;
}
}
.content {
line-height: 25px;
padding-left: 10px;
padding: 6px 0 0 10px;
}
.v-right-content {
flex: 1;
}
.selerchcontent {
flex: 1;
}
}
4 years ago
</style>