zhangzengfei
2020-07-20 6efd5fd74bdaa5497968a2938a1dba984c8a4068
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
<template>
  <div class="notice">
    <div class="notice-header">
      <span class="notice-header-icon">
        <slot name="notice-header-icon"></slot>
      </span>
      <span class="notice-header-title">
        <slot name="notice-header-title"></slot>
      </span>
    </div>
    <div class="notice-body">
      <slot name="notice-body"></slot>
    </div>
  </div>
</template>
 
<script>
  export default {
    name: "Notice"
  }
</script>
 
<style scoped>
  .notice {
    width: 100%;
    margin: 5px 0;
  }
 
  .notice .notice-header {
    background-color: #dee7e7;
    height: 25px;
    border-radius: 5px 5px 0 0;
    line-height: 25px;
  }
 
  .notice-header-icon {
    margin: 2px 5px;
    vertical-align: middle;
  }
 
  .notice-header-icon >>> img {
    width: 15px;
    height: 15px;
  }
 
  .notice-header-title {
    font-size: 10px;
    margin: 0 5px;
  }
 
  .notice .notice-body {
    background-color: #eff0f2;
    border-radius: 0 0 5px 5px;
  }
 
  .notice .notice-header, .notice .notice-body {
    width: 95%;
    margin: 0 auto;
  }
</style>