element-plus/packages/components/calendar/index.ts
Jeremy c7b8cf7e54
refactor(components): [calendar] (#10155)
* refactor(components): [calendar]

* Extract date-table logic code into a dedicated file.

* chore: add an alias type export
2022-10-20 12:03:02 +00:00

12 lines
287 B
TypeScript

import { withInstall } from '@element-plus/utils'
import Calendar from './src/calendar.vue'
export const ElCalendar = withInstall(Calendar)
export default ElCalendar
export * from './src/calendar'
export type {
CalendarDateTableInstance,
DateTableInstance,
} from './src/instance'