UNPKG

@fish-render/carousel

Version:
50 lines (40 loc) 1.22 kB
declare module '@fish-render/carousel' { import { App, DefineComponent } from 'vue' export interface InstallFunction { (app: App): void } export interface FishCarouselPlugin { install: InstallFunction } const install: InstallFunction const FishCarousel: FishCarouselPlugin export default FishCarousel export { install } // 直接定义类型,避免引用问题 export interface CarouselProps { interval?: number autoplay?: boolean indicatorPosition?: '' | 'none' | 'outside' | 'inside' loop?: boolean height?: | string | number | { xs?: number | string sm?: number | string md?: number | string lg?: number | string xl?: number | string } } export interface CarouselItemProps { // CarouselItem 组件属性类型定义 } export const Carousel: DefineComponent<CarouselProps, any, any> export const CarouselItem: DefineComponent<CarouselItemProps, any, any> } declare module '@fish-render/carousel/types' { // 重新导出主模块的类型,避免重复定义 export type { CarouselProps } from '@fish-render/carousel' export type { CarouselItemProps } from '@fish-render/carousel' }