This commit is contained in:
nguyen van thai
2024-07-10 17:39:38 +07:00
parent 212e6d357c
commit 7da82c9101
12 changed files with 553 additions and 153 deletions
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { enumPageComponentTemplate, enumPageComponentKey, enumPageComponentLayouts } from "@/definitions/enum";
import { Default_Collection, Audio_Collection } from "./index";
import { Default_Collection, Audio_Collection, Video_Collection } from "./index";
const _props = defineProps<{
settings: any;
@@ -10,6 +10,7 @@ const _props = defineProps<{
const definedDynamicComponent: Record<string, any> = {
[enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]["ARTICLE"]}`]["ARTICLE_COLLECTION_DEFAULT"]]: Default_Collection,
[enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]["ARTICLE"]}`]["ARTICLE_COLLECTION_AUDIO"]]: Audio_Collection,
[enumPageComponentLayouts[`${enumPageComponentTemplate[enumPageComponentKey.COLLECTION]["ARTICLE"]}`]["ARTICLE_COLLECTION_VIDEO"]]: Video_Collection,
};
const getCurrentComponent = computed(() => _props.settings.layout);