describe.vue 482 B

12345678910111213141516171819202122232425262728
  1. <!-- -->
  2. <template>
  3. <div class="detailsBox">
  4. <span v-if="props.content.indexOf('style')" v-html="props.content"></span>
  5. </div>
  6. </template>
  7. <script setup>
  8. defineOptions({name: 'goods-details-describe'})
  9. const props = defineProps({
  10. content: {
  11. type: String,
  12. default: '',
  13. },
  14. });
  15. // console.log('content:', props.content)
  16. </script>
  17. <style lang="scss" scoped>
  18. .detailsBox {
  19. width: 100%;
  20. }
  21. :deep(img) {
  22. max-width: 100%;
  23. }
  24. :deep(ol) {
  25. margin: 0 20px;
  26. }
  27. </style>