feat: 轮播图组件

This commit is contained in:
2026-05-14 15:10:57 +08:00
parent 5668ec3747
commit 89ea954743
9 changed files with 361 additions and 400 deletions

18
src/types/kagol-vue-carousel.d.ts vendored Normal file
View File

@@ -0,0 +1,18 @@
declare module '@kagol/vue-carousel' {
import type { Component, Plugin } from 'vue'
export const Carousel: Component
export const CarouselIndicator: Component
export const CarouselPrev: Component
export const CarouselNext: Component
export const usePage: (initialPage?: number) => {
pageIndex: { value: number }
setPageIndex: (pageIndex: number) => void
jumpPage: (step: number) => void
prevPage: () => void
nextPage: () => void
}
const plugin: Plugin
export default plugin
}