mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* build: use vue-tsc to generate dts * reduce inline type declaration * fix: type checking failed * apply suggestions from code review * address PR comments
19 lines
579 B
TypeScript
19 lines
579 B
TypeScript
import { withInstall, withNoopInstall } from '@element-plus/utils'
|
|
import Tour from './src/tour.vue'
|
|
import TourStep from './src/step.vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils'
|
|
|
|
export const ElTour: SFCWithInstall<typeof Tour> & {
|
|
TourStep: typeof TourStep
|
|
} = withInstall(Tour, {
|
|
TourStep,
|
|
})
|
|
export const ElTourStep: SFCWithInstall<typeof TourStep> =
|
|
withNoopInstall(TourStep)
|
|
export default ElTour
|
|
|
|
export * from './src/tour'
|
|
export * from './src/step'
|
|
export * from './src/content'
|
|
export type { TourMask, TourGap, TourBtnProps } from './src/types'
|