mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
79938178dd
* build: use vue-tsc to generate dts * reduce inline type declaration * fix: type checking failed * apply suggestions from code review * address PR comments
22 lines
668 B
TypeScript
22 lines
668 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
import Carousel from './src/carousel.vue'
|
|
import CarouselItem from './src/carousel-item.vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElCarousel: SFCWithInstall<typeof Carousel> & {
|
|
CarouselItem: typeof CarouselItem
|
|
} = withInstall(Carousel, {
|
|
CarouselItem,
|
|
})
|
|
|
|
export default ElCarousel
|
|
|
|
export const ElCarouselItem: SFCWithInstall<typeof CarouselItem> =
|
|
withNoopInstall(CarouselItem)
|
|
|
|
export * from './src/carousel'
|
|
export * from './src/carousel-item'
|
|
export * from './src/constants'
|
|
|
|
export type { CarouselInstance, CarouselItemInstance } from './src/instance'
|