Merge branch 'all'

This commit is contained in:
clkim
2025-10-20 19:55:15 +09:00
13 changed files with 227 additions and 31 deletions

View File

@@ -12,6 +12,9 @@ interface Props {
const props = defineProps<Props>()
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
const slideThumbnailRef = ref<any>(null)
const playingSlideIndex = ref<number | null>(null)
@@ -61,6 +64,14 @@ const stopVideo = () => {
playingSlideIndex.value = null
}
const onArrowClick = (direction, targetIndex) => {
const logTraking =
direction == 'prev'
? getComponentGroupAry(props.components, 'arrow')?.groups[0]
: getComponentGroupAry(props.components, 'arrow')?.groups[1]
sendLog(locale.value, useAnalyticsLogDataDirect(logTraking, 1))
}
onMounted(() => {
nextTick(() => {
const mainInst = slideThumbnailRef.value?.mainInst
@@ -86,6 +97,7 @@ onMounted(() => {
variant="media"
:drag="false"
class="mt-[24px] md:mt-[32px]"
@arrow-click="onArrowClick"
>
<SplideSlide
v-for="(item, index) in slideData"