element-plus/packages/popper/index.ts
jeremywu e9ea4b4ee2
Fix/revert changes for fixing issue (#2313)
* Revert "fix(project): fix beta 49 build issue (#2310)"

This reverts commit 7d39b37f00.

* Revert "feat(hooks): feat: Encapsulate function for rendering teleport element"

This reverts commit 74ec002d23.

* Revert "refactor(popper): refactor extract common props for props (#2300)"

This reverts commit 45982cff8a.

Co-authored-by: jeremywuuuuu <jeremywuuuuu@no-reply.github.com>
2021-06-23 21:08:31 +08:00

18 lines
617 B
TypeScript

import type { App } from 'vue'
import type { SFCWithInstall } from '@element-plus/utils/types'
import Popper from './src/index.vue'
Popper.install = (app: App): void => {
app.component(Popper.name, Popper)
}
const _Popper: SFCWithInstall<typeof Popper> = Popper
export default _Popper
export { default as defaultProps, Effect } from './src/use-popper/defaults'
export type { Placement, Options } from '@popperjs/core'
export type { TriggerType, IPopperOptions, PopperInstance } from './src/use-popper/defaults'
export { default as usePopper } from './src/use-popper/index'
export * from './src/renderers/index'