fix: [디자인QA] 슬라이드 인덱스 전환 시 영상이 처음부터 재생되도록 적용

This commit is contained in:
clkim
2025-12-03 15:43:21 +09:00
parent 73adfc9769
commit fd479483bb
15 changed files with 179 additions and 138 deletions

View File

@@ -18,6 +18,8 @@ const props = defineProps<Props>()
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
const currentSlideIndex = ref<number | null>(null)
const slideData = computed(() => {
return getComponentContainer(props.components, 'group_sets')
})
@@ -36,6 +38,7 @@ const onArrowClick = direction => {
<section class="section-standard">
<BlocksSlideFade
v-if="slideData"
v-model:index="currentSlideIndex"
:arrows="slideData.length > 1"
:pagination="slideData.length > 1"
class="h-full"
@@ -46,6 +49,7 @@ const onArrowClick = direction => {
<WidgetsBackground
v-if="hasComponentGroup(item, 'background')"
:resources-data="getComponentGroup(item, 'background')"
:video-play="currentSlideIndex === index"
/>
<div class="content-standard gap-3 md:gap-5">
<WidgetsSubTitle