Files
web-temp/layers/templates/GrGallery01/index.vue
2025-09-29 11:48:27 +09:00

46 lines
1.1 KiB
Vue

<script setup lang="ts">
import { getComponentGroup } from '#layers/utils/dataUtil'
interface Props {
components: Record<string, any>
pageVerTmplSeq: string
}
const props = defineProps<Props>()
const backgroundData = computed(() =>
getComponentGroup(props.components, 'background')
)
const mainTitleData = computed(() =>
getComponentGroup(props.components, 'mainTitle')
)
const slideData = computed(() => {
if (props.components.group_sets.length < 3) {
return [...props.components.group_sets, ...props.components.group_sets]
}
return props.components.group_sets
})
const videoPlayData = computed(() =>
getComponentGroup(props.components, 'videoPlay')
)
</script>
<template>
<section class="section-container">
<WidgetsBackground v-if="backgroundData" :resources-data="backgroundData" />
<div class="section-content">
<WidgetsMainTitle
v-if="mainTitleData"
:resources-data="mainTitleData"
class="title-sm"
/>
<BlocksSlideThumbnail
:slide-data="slideData"
:video-play="videoPlayData"
class="mt-[24px] md:mt-[32px]"
/>
</div>
</section>
</template>