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

22 lines
749 B
TypeScript

import { withInstall } from '@element-plus/utils'
import Popper from './src/popper.vue'
import ElPopperArrow from './src/arrow.vue'
import ElPopperTrigger from './src/trigger.vue'
import ElPopperContent from './src/content.vue'
export { ElPopperArrow, ElPopperTrigger, ElPopperContent }
export const ElPopper = withInstall(Popper)
export default ElPopper
export * from './src/popper'
export * from './src/trigger'
export * from './src/content'
export * from './src/arrow'
export type { Placement, Options } from '@popperjs/core'
export type ElPopperArrowInstance = InstanceType<typeof ElPopperArrow>
export type ElPopperArrowTrigger = InstanceType<typeof ElPopperTrigger>
export type ElPopperArrowContent = InstanceType<typeof ElPopperContent>