大屏标题组件封装
This commit is contained in:
parent
665b6a49f1
commit
0064f8362e
BIN
src/assets/images/titleIcon.png
Normal file
BIN
src/assets/images/titleIcon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
BIN
src/assets/images/titleImg.png
Normal file
BIN
src/assets/images/titleImg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 436 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 519 KiB |
@ -1,7 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="h-card">
|
<div class="h-card">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<i>{{ title }}</i>
|
<div><img src="@/assets/images/titleIcon.png" alt="" /></div>
|
||||||
|
<div class="titltText">
|
||||||
|
<i>{{ title }}</i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
@ -10,12 +13,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref } from "vue";
|
|
||||||
export default {
|
export default {
|
||||||
props: ["title"],
|
props: ["title"],
|
||||||
setup(props) {
|
setup(props) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -24,22 +26,27 @@ export default {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.title {
|
.title {
|
||||||
height: 15%;
|
background: url("@/assets/images/titleImg.png") no-repeat;
|
||||||
line-height: 4vh;
|
|
||||||
text-align: left;
|
|
||||||
font-size: calc(100vw * 18 / 1920);
|
|
||||||
color: #ffffff;
|
|
||||||
background: url("@/assets/images/titleImg.webp") no-repeat;
|
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
display: flex;
|
||||||
i {
|
div {
|
||||||
margin-left: 45px;
|
font-size: calc(100vw * 18 / 1920);
|
||||||
font-family: OPPOSansH;
|
color: #ffffff;
|
||||||
|
img {
|
||||||
|
width: 110%;
|
||||||
|
margin-left: 30%;
|
||||||
|
}
|
||||||
|
i {
|
||||||
|
font-family: OPPOSansH;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.titltText {
|
||||||
|
margin: 1% 0 0 2%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
margin-top: 10px;
|
margin-top: 2%;
|
||||||
height: calc(100% - 34px);
|
height: 88%;
|
||||||
background: url("@/assets/images/cardImg.png") no-repeat;
|
background: url("@/assets/images/cardImg.png") no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user