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

21 lines
566 B
TypeScript
Raw Normal View History

import Timeline from './src/index.vue'
import TimelineItem from './src/item.vue'
import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
Timeline.install = (app: App): void => {
app.component(Timeline.name, Timeline)
app.component(TimelineItem.name, TimelineItem)
}
Timeline.TimelineItem = TimelineItem
const _Timeline = Timeline as any as SFCWithInstall<typeof Timeline> & {
TimelineItem: typeof TimelineItem
}
export default _Timeline
export const ElTimeline = _Timeline
export const ElTimelineItem = TimelineItem