detail page port
This commit is contained in:
17
components/prismic/RichText.vue
Normal file
17
components/prismic/RichText.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div class="prismic-rich-text" v-html="html" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed } from 'vue'
|
||||
import * as prismicH from '@prismicio/helpers'
|
||||
|
||||
const props = defineProps({
|
||||
field: {
|
||||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
})
|
||||
|
||||
const html = computed(() => prismicH.asHTML(props.field))
|
||||
</script>
|
||||
Reference in New Issue
Block a user