Merge branch 'feature/20250910-all' into feature/20251001-gil

This commit is contained in:
“hyeonggkim”
2025-10-21 13:56:56 +09:00
7 changed files with 22 additions and 27 deletions

View File

@@ -18,9 +18,9 @@ const props = withDefaults(defineProps<Props>(), {
const emit = defineEmits(['mounted', 'move', 'moved', 'arrowClick'])
const splideRef = ref()
// Splide 화살표 로직을 위한 composable 사용
const { addArrowClickListeners } = useSplideArrow()
const splideRef = ref()
const options = computed((): ResponsiveOptions => {
return {

View File

@@ -14,17 +14,16 @@ interface Props {
drag?: boolean
}
const props = withDefaults(defineProps<Props>(), {
variant: 'default',
drag: true,
})
const emit = defineEmits(['arrowClick'])
// Splide 화살표 로직을 위한 composable 사용
const { addArrowClickListeners } = useSplideArrow()
const props = withDefaults(defineProps<Props>(), {
variant: 'default',
drag: true,
})
let mainInst: SplideType | null = null
let thumbsInst: SplideType | null = null
@@ -92,7 +91,6 @@ onMounted(() => {
if (mainInst && thumbsInst) {
mainInst.sync(thumbsInst)
// 썸네일 슬라이드의 화살표 버튼에 이벤트 리스너 추가
nextTick(() => {
addArrowClickListeners(thumbsInst, (direction, targetIndex) => {

View File

@@ -85,10 +85,9 @@ const stopVideo = () => {
}
const onArrowClick = (direction, targetIndex) => {
const logTraking = direction == 'prev' ?
getComponentGroupAry(props.components, 'arrow')[0] :
getComponentGroupAry(props.components, 'arrow')[1];
sendLog(locale.value, useAnalyticsLogDataDirect(logTraking, 1))
const arrowGroupAry = getComponentGroupAry(props.components, 'arrow')
const logTracking = arrowGroupAry?.[direction === 'prev' ? 0 : 1]
sendLog(locale.value, useAnalyticsLogDataDirect(logTracking, 1))
}
onMounted(() => {

View File

@@ -57,11 +57,9 @@ const handleChange = (
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
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))
const arrowGroupAry = getComponentGroupAry(props.components, 'arrow')
const logTracking = arrowGroupAry?.[direction === 'prev' ? 0 : 1]
sendLog(locale.value, useAnalyticsLogDataDirect(logTracking, 1))
}
</script>

View File

@@ -60,11 +60,12 @@ const handleChange = (
'buttonList'
)
}
const {locale} = useI18n()
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
const onArrowClick = (direction, targetIndex) => {
const logTraking = direction == 'prev' ? props.components.arrow.groups[0] : props.components.arrow.groups[1];
sendLog(locale.value, useAnalyticsLogDataDirect(logTraking, 1))
const arrowGroupAry = getComponentGroupAry(props.components, 'arrow')
const logTracking = arrowGroupAry?.[direction === 'prev' ? 0 : 1]
sendLog(locale.value, useAnalyticsLogDataDirect(logTracking, 1))
}
</script>

View File

@@ -71,11 +71,12 @@ const slideItemSize = {
gap: 32,
},
}
const {locale} = useI18n()
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
const onArrowClick = (direction, targetIndex) => {
const logTraking = direction == 'prev' ? props.components.arrow.groups[0] : props.components.arrow.groups[1];
sendLog(locale.value, useAnalyticsLogDataDirect(logTraking, 1))
const arrowGroupAry = getComponentGroupAry(props.components, 'arrow')
const logTracking = arrowGroupAry?.[direction === 'prev' ? 0 : 1]
sendLog(locale.value, useAnalyticsLogDataDirect(logTracking, 1))
}
console.log('resourcesData.value===', resourcesData.value)

View File

@@ -24,11 +24,9 @@ const slideData = computed(() => {
})
const onArrowClick = direction => {
const logTraking =
direction == 'prev'
? getComponentGroupAry(props.components, 'arrow')?.groups[0]
: getComponentGroupAry(props.components, 'arrow')?.groups[1]
sendLog(locale.value, useAnalyticsLogDataDirect(logTraking, 1))
const arrowGroupAry = getComponentGroupAry(props.components, 'arrow')
const logTracking = arrowGroupAry?.[direction === 'prev' ? 0 : 1]
sendLog(locale.value, useAnalyticsLogDataDirect(logTracking, 1))
}
</script>