feat: AcfProse
This commit is contained in:
12
wp-content/themes/headless/app/components/acf/AcfProse.vue
Normal file
12
wp-content/themes/headless/app/components/acf/AcfProse.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import type { AcfProseFragment } from "#graphql/types";
|
||||
|
||||
defineProps<{ prose: AcfProseFragment }>();
|
||||
|
||||
const refContent = useTemplateRef("refContent");
|
||||
useProseLinks(refContent);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div ref="refContent" class="prose" v-html="prose.content" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user