fix. 페이지네이션 스타일 적용

This commit is contained in:
clkim
2025-10-21 19:59:25 +09:00
parent 118bec5dde
commit c9c39a06dd
15 changed files with 117 additions and 64 deletions

View File

@@ -6,6 +6,7 @@ import {
getComponentGroup,
hasComponentGroup,
} from '#layers/utils/dataUtil'
import { getPaginationClass } from '#layers/utils/styleUtil'
import type { PageDataTemplateComponents } from '#layers/types/api/pageData'
interface Props {
@@ -21,6 +22,9 @@ const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
const slideData = computed(() => {
return getComponentContainer(props.components, 'group_sets')
})
const paginationData = computed(() => {
return getComponentGroupAry(props.components, 'pagination')
})
const onArrowClick = direction => {
const arrowGroupAry = getComponentGroupAry(props.components, 'arrow')
@@ -36,6 +40,7 @@ const onArrowClick = direction => {
:arrows="true"
:pagination="true"
class="h-full"
:pagination-data="paginationData"
@arrow-click="onArrowClick"
>
<SplideSlide v-for="(item, index) in slideData" :key="index">
@@ -57,7 +62,6 @@ const onArrowClick = direction => {
<WidgetsDescription
v-if="hasComponentGroup(item, 'description')"
:resources-data="getComponentGroup(item, 'description')"
class="description-lg"
/>
<WidgetsButtonList
v-if="hasComponentGroup(item, 'buttonList')"