fix. [PWT-93] 이미지 타입형 컨텐츠 리스트 미노출 수정

This commit is contained in:
clkim
2025-12-01 14:34:54 +09:00
parent 9b3b7b4ee3
commit 4cfb85b045
6 changed files with 75 additions and 90 deletions

View File

@@ -28,13 +28,16 @@ const slideData = computed(() => {
maxLength: 10,
})
})
const thumbnailData = computed(() => {
return slideData.value.map(item => item.pagenaviThumbnail?.groups?.[0])
})
const paginationData = computed(() => {
return getComponentGroupAry(props.components, 'pagination')
})
const videoSrc = (item: PageDataTemplateComponent) => {
const src = getComponentGroup(item, 'video')?.res_path
return getCurrentSrc(src, { resourcesType: 'video' })
return getCurrentSrc(src)
}
const handleSplideMove = (_splide: SplideType, newIndex: number) => {
@@ -45,7 +48,7 @@ const handleSplideMove = (_splide: SplideType, newIndex: number) => {
<template>
<section class="section-standard">
<BlocksSlideThumbnail
:slide-data="slideData"
:thumbnail-data="thumbnailData"
:pagination-data="paginationData"
@move="handleSplideMove"
>