23 lines
582 B
Vue
23 lines
582 B
Vue
<script setup lang="ts">
|
|
import { ResumeComponentPlacement } from '@/types/resume';
|
|
import { defineAsyncComponent } from 'vue';
|
|
|
|
const props = defineProps<{
|
|
componentPlacement: ResumeComponentPlacement | null
|
|
}>();
|
|
|
|
const componentFile = defineAsyncComponent(
|
|
() => import(
|
|
/* @vite-ignore */
|
|
`./resumeComponents/${props.componentPlacement?.component_data?.component?.vue_component_name}`
|
|
)
|
|
);
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<div class="w-full">
|
|
<component :is="componentFile" :componentPlacement="props.componentPlacement" />
|
|
</div>
|
|
</template>
|