index.vue
701 Bytes
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
<template lang="pug">
.title-line
.header-wrapper
.left
slot(name="title")
.info
slot(name="info")
.right
slot(name="right")
.main
slot
</template>
<script>
export default {
name: 'TitleLine'
}
</script>
<style lang="scss" scoped>
.title-line{
width: 100%;
font-size: 18px;
.header-wrapper{
color: #fff;
display: flex;
justify-content: flex-start;
align-items: center;
background: #a3add8;
height: 30px;
padding: 5px 10px;
.left{
padding-right: 5px;
}
.right{
flex: auto;
display: flex;
justify-content: flex-end;
}
}
.main{
padding: 10px 5px;
}
}
</style>