<template>
  <div
    v-if="props.item?.richText"
    class="logic-rich-text"
    v-html="props.item?.richText"
  ></div>
</template>
<script setup>
import { defineProps } from "vue";
const props = defineProps({
  item: Object
});
</script>
<style lang="scss">
.logic-rich-text {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 10px;
  img {
    max-width: 100%;
  }
}
</style>
