zxl
3 天以前 b1c9a5d056e85fe8b0ee6e92f10e6e2c5495b356
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>
  <div class="layout">
    <div class="background">
      <div class="title" :style="{ color: res.list[0].color }">
        {{ res.list[0].title }}
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  title: "标题栏",
  props: ["res"]
};
</script>
<style lang="scss" scoped>
@import "./tpl.scss";
.background {
  background: url("../../../../assets/title.png") no-repeat;
  position: absolute;
  z-index: 2;
  width: 100%;
 
  height: 42px;
  background-size: cover;
}
.layout {
  text-align: center;
  position: relative;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
 
  background: #ffffff;
}
.title {
  line-height: 42px;
  font-size: 15px;
  font-weight: bold;
}
</style>