<!--
 * @Author: zhp
 * @Date: 2023-11-08 14:00:52
 * @LastEditTime: 2023-12-01 10:12:27
 * @LastEditors: DY
 * @Description:
-->
<template>
  <div v-html="content" />
</template>

<script>
export default {
  props: {
    injectData: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {
      content: ''
    }
  },
  mounted() {
    this.getContent()
  },

  methods: {
    getContent() {
      this.content = this.injectData[this.injectData.prop] ?? ''
    }
  }
}
</script>
