增加 3d 展示区块
This commit is contained in:
@@ -12,6 +12,7 @@ import LayoutTitleMedia from './layouts/LayoutTitleMedia.vue';
|
||||
import LayoutMosaic from './layouts/LayoutMosaic.vue';
|
||||
import LayoutMarquee from './layouts/LayoutMarquee.vue';
|
||||
import LayoutSpecTable from './layouts/LayoutSpecTable.vue';
|
||||
import LayoutModel3d from './layouts/LayoutModel3d.vue';
|
||||
|
||||
const props = defineProps<{ section: SectionBlock }>();
|
||||
|
||||
@@ -26,7 +27,8 @@ const layoutComponents: Record<SectionLayout, unknown> = {
|
||||
title_media: LayoutTitleMedia,
|
||||
mosaic: LayoutMosaic,
|
||||
marquee: LayoutMarquee,
|
||||
spec_table: LayoutSpecTable
|
||||
spec_table: LayoutSpecTable,
|
||||
model3d: LayoutModel3d
|
||||
};
|
||||
|
||||
const layoutComponent = computed(() => layoutComponents[props.section.layout] ?? null);
|
||||
|
||||
Reference in New Issue
Block a user