shikeying
2023-04-07 c192f834c4e092bc7c0f2722c343c25c1be619ab
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
 
<template>
  <div class="fonts">
    <span><i :class="getIcon" :style="'font-size:'+getSize" />{{ content }}</span>
  </div>
</template>
 
<script>
 
export default {
  components: {
  },
  props: {
    content: {
      type: String,
      default: ''
    },
    icons: {
      type: String,
      default: ''
    },
    fontsize: {
      type: String,
      default: '14'
    }
  },
  computed: {
    getIcon() {
      return 'iconfont ' + this.icons
    },
    getSize() {
      return this.fontsize + 'px'
    }
  },
  methods: {
  }
}
</script>
<style src="./index.css"></style>
<style scoped>
  .fonts{
    color: black;
    font-size: 13px;
  }
</style>