element-plus/packages/components/popper/index.ts
jeremywu dbb00ef4b6
fix(components): [el-popper] append to body compatability (#5755)
* fix(components): [el-popper] append to body compatability

- Add a new hook for deprecation warning
- Add deprecation warnings for previous used `append-to-body` API
- Add test for the API.

* Address PR comments

* Update documentations for deprecated

* Fix formatting issue
2022-02-04 14:59:58 +08:00

16 lines
534 B
TypeScript

import { withInstall } from '@element-plus/utils/with-install'
import Popper from './src/popper.vue'
export { default as ElPopperArrow } from './src/arrow.vue'
export { default as ElPopperTrigger } from './src/trigger.vue'
export { default as ElPopperContent } from './src/content.vue'
export const ElPopper = withInstall(Popper)
export default ElPopper
export * from './src/popper'
export * from './src/tokens'
export { useDeprecateAppendToBody } from './src/deprecation'
export type { Placement, Options } from '@popperjs/core'