mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
55348b30b6
* style: use prettier * style: just prettier format, no code changes * style: eslint fix object-shorthand, prefer-const * style: fix no-void * style: no-console
28 lines
707 B
TypeScript
28 lines
707 B
TypeScript
import Popper from './src/index.vue'
|
|
|
|
import type { App } from 'vue'
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
|
|
|
Popper.install = (app: App): void => {
|
|
app.component(Popper.name, Popper)
|
|
}
|
|
|
|
const _Popper = Popper as SFCWithInstall<typeof Popper>
|
|
|
|
export default _Popper
|
|
export const ElPopper = _Popper
|
|
|
|
export {
|
|
default as popperDefaultProps,
|
|
Effect,
|
|
} from './src/use-popper/defaults'
|
|
export * from './src/renderers'
|
|
export { default as usePopper } from './src/use-popper'
|
|
export type { Placement, Options } from '@popperjs/core'
|
|
export type { EmitType } from './src/use-popper'
|
|
export type {
|
|
TriggerType,
|
|
IPopperOptions,
|
|
PopperInstance,
|
|
} from './src/use-popper/defaults'
|