mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
5afe23c18c
- Update legacy syntax to script setup for popper - Update tests due to changes - Move popper/token to element-plus/tokens
23 lines
810 B
TypeScript
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>
|