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'
|
||||
|
||||
interface BannerListProps {
|
||||
slideItemList: ListOperateGroupItem[]
|
||||
resourcesData: ListOperateGroupItem[]
|
||||
slideItemSize: SlideItemSize
|
||||
arrows?: boolean
|
||||
pagination?: boolean
|
||||
@@ -17,7 +17,7 @@ const props = withDefaults(defineProps<BannerListProps>(), {
|
||||
})
|
||||
|
||||
const isMultipleItems = computed(() => {
|
||||
return props.slideItemList.length > 1
|
||||
return props.resourcesData.length > 1
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -30,7 +30,7 @@ const isMultipleItems = computed(() => {
|
||||
class="mt-[36px] md:mt-[60px]"
|
||||
>
|
||||
<SplideSlide
|
||||
v-for="(item, index) in props.slideItemList"
|
||||
v-for="(item, index) in props.resourcesData"
|
||||
:key="index"
|
||||
class="splide-slide"
|
||||
>
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
import type { PageDataResourceGroup } from '#layers/types/api/pageData'
|
||||
|
||||
const props = defineProps<{
|
||||
groupsData: PageDataResourceGroup[]
|
||||
resourcesData: PageDataResourceGroup[]
|
||||
buttonType?: string
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
v-if="props.groupsData"
|
||||
v-if="props.resourcesData"
|
||||
class="flex flex-wrap justify-center gap-3 md:gap-4"
|
||||
>
|
||||
<AtomsButton
|
||||
v-for="button in props.groupsData"
|
||||
v-for="button in props.resourcesData"
|
||||
:key="button.group_code"
|
||||
:button-type="props.buttonType"
|
||||
class="size-extra-small md:size-medium"
|
||||
|
||||
Reference in New Issue
Block a user