mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
21 lines
560 B
TypeScript
21 lines
560 B
TypeScript
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
|