element-plus/packages/components/carousel/index.ts
三咲智子 0636e1e240
style: add import and stricter lint (#3440)
* style: add import lint

* chore: apply eslint rules

* chore: add stricter lint

* chore: lint all files

* auto fix

* manually fix

* restore build-indices.ts
2021-09-17 15:27:31 +08:00

21 lines
565 B
TypeScript

import Carousel from './src/main.vue'
import CarouselItem from './src/item.vue'
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
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