mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
21 lines
566 B
TypeScript
21 lines
566 B
TypeScript
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
|