element-plus/packages/popper/index.ts
jeremywu 45982cff8a
refactor(popper): refactor extract common props for props (#2300)
- Extract some common props out of prop

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

16 lines
448 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 type { Placement, Options } from '@popperjs/core'
export { default as usePopper } from './src/use-popper/index'
export * from './src/renderers/index'