wangyanshen
2023-01-09 695c5a332e4bf10b6b93c9973e1634730b4a60df
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!--  -->
<template>
  <div class="titlebox">
    <div class="left">
      <div class="title-icon"></div>
      <span class="title">{{ title }}</span>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "titleBox",
  components: {},
  props: {
    title: String,
  },
  data() {
    return {};
  },
  created() {},
  mounted() {},
  computed: {},
  watch: {},
  methods: {},
};
</script>
<style scoped>
.titlebox {
  display: flex;
  justify-content: space-between;
  height: 40px;
  line-height: 40px;
  align-items: center;
}
.titlebox .left{
    display: flex;
    align-items: center;
}
.titlebox .left .title {
  color: #191919;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  display: inline-block;
}
 
.titlebox .right {
  flex: 1;
  text-align: right;
  padding-right: 5px;
}
.title-icon{
  width: 20px;
    height: 20px;
    background: #D8E8FF;
    position: relative;
    margin-right: 5px;
}
.title-icon:before {
    content: " ";
    display: block;
    width: 8px;
    height: 9px;
    background: #3c8efd;
    position: absolute;
    bottom: 0;
}
</style>