|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
@ -1,64 +1,73 @@
|
||||
<template>
|
||||
<div class="v-header">
|
||||
<div class="v-left-text">
|
||||
<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>
|
||||
export default {
|
||||
props: {
|
||||
icon: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
text: {
|
||||
type: String,
|
||||
default: "未定义名称"
|
||||
}
|
||||
}
|
||||
};
|
||||
</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;
|
||||
color: #122583;
|
||||
white-space: nowrap;
|
||||
border-bottom: 2px solid #122583;
|
||||
> 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;
|
||||
}
|
||||
}
|
||||
<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;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
@import '~view-design/src/styles/index.less';
|
||||
|
||||
// Here are the variables to cover, such as:
|
||||
@primary-color: #122583;
|
||||
@primary-color: #0a729b;
|
||||
|
||||