fix. 타입 경고 수정

This commit is contained in:
clkim
2025-09-23 21:33:11 +09:00
parent 34a8248731
commit c0c7c40001
5 changed files with 49 additions and 79 deletions

View File

@@ -65,7 +65,7 @@ watchEffect(() => {
<component
:is="registry[template.template_code]?.component"
:components="template.components"
:page-ver-tmpl-seq="template.page_ver_tmpl_seq"
:page-ver-tmpl-seq="template.page_ver_tmpl_seq.toString()"
/>
</template>
</main>

View File

@@ -2,21 +2,9 @@
import { Splide, SplideSlide } from '@splidejs/vue-splide'
import type { Splide as SplideType } from '@splidejs/splide'
import type { ListOperateGroupItem } from '#layers/types/api/resourcesData'
import type { BannerMode, BannerSize } from '#layers/types/components/banner'
interface BannerSizeItem {
width: number
height: number
gap: number
}
interface BannerSize {
mo: BannerSizeItem
pc: BannerSizeItem
}
type BannerMode = 'auto' | 'fixed'
interface Props {
interface BannerListProps {
bannerList: ListOperateGroupItem[]
bannerMode?: BannerMode
bannerSize?: BannerSize
@@ -28,7 +16,7 @@ interface Props {
breakpoints?: Record<number, { perPage: number; gap?: string }>
}
const props = withDefaults(defineProps<Props>(), {
const props = withDefaults(defineProps<BannerListProps>(), {
bannerMode: 'fixed',
arrows: true,
pagination: true,