mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +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
17 lines
552 B
TypeScript
17 lines
552 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
import Timeline from './src/timeline'
|
|
import TimelineItem from './src/timeline-item.vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElTimeline: SFCWithInstall<typeof Timeline> & {
|
|
TimelineItem: typeof TimelineItem
|
|
} = withInstall(Timeline, {
|
|
TimelineItem,
|
|
})
|
|
export default ElTimeline
|
|
export const ElTimelineItem: SFCWithInstall<typeof TimelineItem> =
|
|
withNoopInstall(TimelineItem)
|
|
|
|
export * from './src/timeline'
|
|
export * from './src/timeline-item'
|