import { App } from 'vue' import type { SFCWithInstall } from '@element-plus/utils/types' import Carousel from './src/main.vue' import CarouselItem from './src/item.vue' Carousel.install = (app: App): void => { app.component(Carousel.name, Carousel) app.component(CarouselItem.name, CarouselItem) } Carousel.CarouselItem = CarouselItem const _Carousel = Carousel as any as SFCWithInstall & { CarouselItem: typeof CarouselItem } export default _Carousel export const ElCarousel = _Carousel export const ElCarouselItem = CarouselItem