thainv-dev: sửa lại cấu trúc folder

This commit is contained in:
nguyen van thai
2024-06-13 17:24:46 +07:00
parent 8818c73cec
commit ecf4512cd3
22 changed files with 1056 additions and 55 deletions
@@ -17,6 +17,7 @@ const definedDynamicComponent: Record<string, any> = {
'TYPE:Detail-LAYOUT:image': Article_Detail_Image,
'TYPE:Detail-LAYOUT:video': Article_Detail_Video,
'TYPE:Detail-LAYOUT:podcast': Article_Detail_Podcast,
'TYPE:Card': Article_Card
};
const getCurrentComponent = computed(() => `${_props.settings.layout}`);
@@ -37,5 +38,5 @@ const GET_PROPS = computed(() => {
</script>
<template>
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="GET_PROPS()" />
<component :is="definedDynamicComponent[getCurrentComponent]" v-bind="GET_PROPS()" class="h-full"/>
</template>