zjf
2023-02-24 2126cd24b8a0174ac0597340917c0a4595f72254
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>
  <flexbox class="reminder-wrapper">
    <flexbox
      align="stretch"
      class="reminder-body">
      <i class="wukong wukong-reminder reminder-icon"/>
      <div
        :style="{'font-size': fontSize + 'px'}"
        class="reminder-content">
        {{ content }}
      </div>
    </flexbox>
  </flexbox>
</template>
 
<script type="text/javascript">
// 警示信息
 
export default {
  name: 'Reminder',
  components: {},
  props: {
    content: {
      type: String,
      default: '内容'
    },
    fontSize: {
      type: String,
      default: '13'
    }
  },
  data () {
    return {}
  },
  computed: {},
  mounted () {},
  destroyed () {},
  methods: {}
}
</script>
<style lang="less" scoped>
.reminder-wrapper {
  .reminder-body {
    width: auto;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #fff4e7;
    .reminder-icon {
      color: #ff7922;
      flex-shrink: 0;
      margin-right: 8px;
    }
 
    .reminder-content {
      color: #9c9c9b;
      line-height: 17px;
    }
  }
}
</style>