element-plus/packages/components/carousel/index.ts

21 lines
560 B
TypeScript
Raw Normal View History

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<typeof Carousel> & {
CarouselItem: typeof CarouselItem
}
export default _Carousel
export const ElCarousel = _Carousel
export const ElCarouselItem = CarouselItem