generated from pascalmartineau/wp-skeleton
feat: Initial TheSections
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<script setup lang="ts">
|
||||
import type { TheSectionFragment } from "#graphql-operations";
|
||||
|
||||
const props = defineProps<{ sections: (TheSectionFragment)[] }>();
|
||||
const sections = props.sections.map(useSection);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<component :is="component" v-for="({ component, attrs }, i) in sections" :key="i" v-bind="attrs" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user