element-plus/packages/popper/index.ts
jeremywu ae5dcec1e8
fix(popper): Fix popper transition lost bug (#1190)
- Fix popper transition lost issue
2021-01-04 14:59:09 +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'