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
<template>
  <el-tooltip class="item" effect="dark" placement="top-start">
    <div slot="content" v-html="contents" />
    <svg-icon icon-class="help" />
  </el-tooltip>
</template>
 
<script>
export default {
  props: {
    content: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      contents: this.content
    }
  },
  watch: {
    content(v) {
      this.contents = v
    }
  },
  created() {
    this.contents = this.content
  }
}
</script>
 
<style scoped>
 
</style>