ViewContainer.vue
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!--
* @Description: 内容
* @Author: huyue
* @Date: 2023-07-04 16:12:38
* @LastEditors: huyue
* @LastEditTime: 2023-07-05 10:40:02
-->
<template>
<div class="ViewContainer">
<div class="ViewContainer-title">
<slot name="title" />
</div>
<div class="title-line"></div>
<div class="ViewContainer-body">
<slot name="content" />
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'ViewContainer',
props: {
},
data() {
return {
}
},
mounted() { },
methods: {}
}
</script>
<style scoped lang='scss'>
.ViewContainer {
// width: 100vw;
// height: 100vh;
&-title {
height: 6.1vh;
width:100%;
background-image: linear-gradient(90deg, #0A214A 0%, #061422 50%, #0A214A 100%);
// background-image: url('../assets/images/bg-title.jpg');
// background-repeat: no-repeat;
// background-size:cover;
}
&-body {
height: calc(93.9vh - 2px);
}
.title-line {
width: 100%;
height: 2px;
background-image: linear-gradient(90deg, #27B0FF 0%, #4792ff00 34%, #5784ff00 66%, #6379FF 100%);
}
}
</style>