<template>
  <div class="rich-text" v-html="html"></div>
</template>

<script>

export default {
  name: "RichText",
  props: {
    html: {
      type:String,
      default:()=>{
        return ''
      }
    }
  }
};
</script>
<style scoped>
  /* scoped穿透设置img宽度 */
  .rich-text >>> img{
    max-width: 100%
  }
</style>
