element-plus/packages/components/popper/index.ts
JeremyWuuuuu 5afe23c18c
refactor(components): [el-popper] refactor popper to script setups (#6725)
- Update legacy syntax to script setup for popper
- Update tests due to changes
- Move popper/token to element-plus/tokens
2022-03-24 21:22:46 +08:00

23 lines
810 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 { useDeprecateAppendToBody } from './src/deprecation'
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>