fix. 프롭스 네이밍 통일
This commit is contained in:
@@ -4,7 +4,7 @@ import type { ListOperateGroupItem } from '#layers/types/api/resourcesData'
|
|||||||
import type { SlideItemSize } from '#layers/types/components/slide'
|
import type { SlideItemSize } from '#layers/types/components/slide'
|
||||||
|
|
||||||
interface BannerListProps {
|
interface BannerListProps {
|
||||||
slideItemList: ListOperateGroupItem[]
|
resourcesData: ListOperateGroupItem[]
|
||||||
slideItemSize: SlideItemSize
|
slideItemSize: SlideItemSize
|
||||||
arrows?: boolean
|
arrows?: boolean
|
||||||
pagination?: boolean
|
pagination?: boolean
|
||||||
@@ -17,7 +17,7 @@ const props = withDefaults(defineProps<BannerListProps>(), {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const isMultipleItems = computed(() => {
|
const isMultipleItems = computed(() => {
|
||||||
return props.slideItemList.length > 1
|
return props.resourcesData.length > 1
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ const isMultipleItems = computed(() => {
|
|||||||
class="mt-[36px] md:mt-[60px]"
|
class="mt-[36px] md:mt-[60px]"
|
||||||
>
|
>
|
||||||
<SplideSlide
|
<SplideSlide
|
||||||
v-for="(item, index) in props.slideItemList"
|
v-for="(item, index) in props.resourcesData"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="splide-slide"
|
class="splide-slide"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -2,18 +2,18 @@
|
|||||||
import type { PageDataResourceGroup } from '#layers/types/api/pageData'
|
import type { PageDataResourceGroup } from '#layers/types/api/pageData'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
groupsData: PageDataResourceGroup[]
|
resourcesData: PageDataResourceGroup[]
|
||||||
buttonType?: string
|
buttonType?: string
|
||||||
}>()
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="props.groupsData"
|
v-if="props.resourcesData"
|
||||||
class="flex flex-wrap justify-center gap-3 md:gap-4"
|
class="flex flex-wrap justify-center gap-3 md:gap-4"
|
||||||
>
|
>
|
||||||
<AtomsButton
|
<AtomsButton
|
||||||
v-for="button in props.groupsData"
|
v-for="button in props.resourcesData"
|
||||||
:key="button.group_code"
|
:key="button.group_code"
|
||||||
:button-type="props.buttonType"
|
:button-type="props.buttonType"
|
||||||
class="size-extra-small md:size-medium"
|
class="size-extra-small md:size-medium"
|
||||||
|
|||||||
@@ -43,10 +43,14 @@ const buttonListData = computed(() =>
|
|||||||
:resources-data="descriptionData"
|
:resources-data="descriptionData"
|
||||||
class="w-[355px] md:w-[944px]"
|
class="w-[355px] md:w-[944px]"
|
||||||
/>
|
/>
|
||||||
<WidgetsVideoPlay v-if="videoPlayData" :resources-data="videoPlayData" />
|
<WidgetsVideoPlay
|
||||||
|
v-if="videoPlayData"
|
||||||
|
:resources-data="videoPlayData"
|
||||||
|
:page-ver-tmpl-seq="Number(props.pageVerTmplSeq)"
|
||||||
|
/>
|
||||||
<WidgetsButtonList
|
<WidgetsButtonList
|
||||||
v-if="buttonListData.length > 0"
|
v-if="buttonListData.length > 0"
|
||||||
:groups-data="buttonListData"
|
:resources-data="buttonListData"
|
||||||
button-type="market"
|
button-type="market"
|
||||||
class="mt-[28px] md:mt-[52px]"
|
class="mt-[28px] md:mt-[52px]"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -90,15 +90,19 @@ const bannerSize = {
|
|||||||
:resources-data="descriptionData"
|
:resources-data="descriptionData"
|
||||||
class="w-[355px] md:w-[944px]"
|
class="w-[355px] md:w-[944px]"
|
||||||
/>
|
/>
|
||||||
<WidgetsVideoPlay v-if="videoPlayData" :resources-data="videoPlayData" />
|
<WidgetsVideoPlay
|
||||||
|
v-if="videoPlayData"
|
||||||
|
:resources-data="videoPlayData"
|
||||||
|
:page-ver-tmpl-seq="Number(props.pageVerTmplSeq)"
|
||||||
|
/>
|
||||||
<WidgetsButtonList
|
<WidgetsButtonList
|
||||||
v-if="buttonListData.length > 0"
|
v-if="buttonListData.length > 0"
|
||||||
:groups-data="buttonListData"
|
:resources-data="buttonListData"
|
||||||
class="mt-[48px] md:mt-[72px]"
|
class="mt-[48px] md:mt-[72px]"
|
||||||
/>
|
/>
|
||||||
<WidgetsBannerList
|
<WidgetsBannerList
|
||||||
v-if="bannerListData.length > 0"
|
v-if="bannerListData.length > 0"
|
||||||
:slide-item-list="bannerListData"
|
:resources-data="bannerListData"
|
||||||
:slide-item-size="bannerSize"
|
:slide-item-size="bannerSize"
|
||||||
:arrows="true"
|
:arrows="true"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const props = defineProps<Props>()
|
|||||||
/>
|
/>
|
||||||
<WidgetsButtonList
|
<WidgetsButtonList
|
||||||
v-if="hasComponentGroup(item, 'buttonList')"
|
v-if="hasComponentGroup(item, 'buttonList')"
|
||||||
:groups-data="getComponentGroupAry(item, 'buttonList')"
|
:resources-data="getComponentGroupAry(item, 'buttonList')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</SplideSlide>
|
</SplideSlide>
|
||||||
|
|||||||
Reference in New Issue
Block a user