Blame view

src/components/titlesection.vue 1.03 KB
eb6d1150   liuqimichale   title 总计 简单封装
1
  <template>
841f35d2   liuqimichale   filter
2
    <div class="title">
667dd190   liuqimichale   地磁
3
      <span>{{title}}</span>
841f35d2   liuqimichale   filter
4
    </div>
eb6d1150   liuqimichale   title 总计 简单封装
5
6
7
8
  </template>
  
  <script>
  export default {
667dd190   liuqimichale   地磁
9
10
11
    name: 'titlesection',
    props:['title'],
    created() {
0e3a2706   liuqimichale   地图 title
12
      // console.log(this.title)
667dd190   liuqimichale   地磁
13
    }
eb6d1150   liuqimichale   title 总计 简单封装
14
15
16
17
  }
  </script>
  
  <style scoped>
841f35d2   liuqimichale   filter
18
    .title {
eb6d1150   liuqimichale   title 总计 简单封装
19
20
      height: 30px;
      line-height: 30px;
841f35d2   liuqimichale   filter
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
      padding-left: 60px;
      background: url("../assets/img/titlebg.png") no-repeat;
      background-size: 100% 100%;
      font-size: 14px;
      font-weight:500;
      color:rgba(255,255,255,1);
  
    }
    .title span{
      position: relative;
      display: inline-block;
      box-sizing: border-box;
    }
    .title span:before{
      content: '';
      position: absolute;
      top:0;
      left: -55px;
      width: 50px;
      height: 30px;
      background: url("../assets/img/titletexticon.png") no-repeat 0 center;
      background-size: 100% 35%;
    }
    .title span:after{
      content: '';
      position: absolute;
      top:0;
      right: -55px;
      width: 50px;
      height: 30px;
      background: url("../assets/img/titletexticon.png") no-repeat 0 center;
      background-size: 100% 35%;
eb6d1150   liuqimichale   title 总计 简单封装
53
54
    }
  </style>