Blame view

src/views/analysis/page/components/info.vue 771 Bytes
a61d16e2   jack   1.更新文件
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
  <template>
    <div class="info">
      <div class="box-l">
        <i :class="icon" />
      </div>
      <div class="box-r">
        <p>{{ label }}</p>
        <p>{{ value }}</p>
      </div>
    </div>
  </template>
  <script>
  export default {
    name: 'Info',
    props: {
      icon: {
        type: String,
        default: ''
      },
      label: {
        type: String,
        default: ''
      },
      value: {
        type: String,
        default: ''
      }
    }
  }
  </script>
  <style scoped>
  .info{
      display: inline-block;
      overflow: hidden;
  }
  .box-l{
      float: left;
      font-size:24px;
      color:#666;
      line-height: 47px;
  }
  .box-r{
      float: left;
      padding-left: 10px;
  }
  .box-r p{
      margin:0;
      line-height: 23.5px;
      font-size: 14px;
  }
  .box-r p:first-child{
      color:#888;
  }
  </style>