2021-08-24 13:36:48 +08:00
|
|
|
import Popper from './src/index.vue'
|
|
|
|
|
2020-08-18 18:02:28 +08:00
|
|
|
import type { App } from 'vue'
|
2020-12-23 14:07:15 +08:00
|
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
2020-08-18 18:02:28 +08:00
|
|
|
|
2020-11-20 20:24:16 +08:00
|
|
|
Popper.install = (app: App): void => {
|
2020-08-18 18:02:28 +08:00
|
|
|
app.component(Popper.name, Popper)
|
|
|
|
}
|
2020-08-18 20:23:39 +08:00
|
|
|
|
2021-08-24 13:36:48 +08:00
|
|
|
const _Popper = Popper as SFCWithInstall<typeof Popper>
|
2020-12-23 14:07:15 +08:00
|
|
|
|
|
|
|
export default _Popper
|
2021-08-24 13:36:48 +08:00
|
|
|
export const ElPopper = _Popper
|
2020-11-20 20:24:16 +08:00
|
|
|
|
2021-09-04 19:29:28 +08:00
|
|
|
export {
|
|
|
|
default as popperDefaultProps,
|
|
|
|
Effect,
|
|
|
|
} from './src/use-popper/defaults'
|
2021-08-24 13:36:48 +08:00
|
|
|
export * from './src/renderers'
|
|
|
|
export { default as usePopper } from './src/use-popper'
|
2021-01-04 14:59:09 +08:00
|
|
|
export type { Placement, Options } from '@popperjs/core'
|
2021-08-24 13:36:48 +08:00
|
|
|
export type { EmitType } from './src/use-popper'
|
2021-09-04 19:29:28 +08:00
|
|
|
export type {
|
|
|
|
TriggerType,
|
|
|
|
IPopperOptions,
|
|
|
|
PopperInstance,
|
|
|
|
} from './src/use-popper/defaults'
|