2020-10-19 13:44:50 +08:00
|
|
|
import { App } from 'vue'
|
2020-12-23 14:07:15 +08:00
|
|
|
import type { SFCWithInstall } from '@element-plus/utils/types'
|
2020-10-19 13:44:50 +08:00
|
|
|
import Popover from './src/index.vue'
|
|
|
|
import PopoverDirective, { VPopover } from './src/directive'
|
|
|
|
|
2020-11-20 20:24:16 +08:00
|
|
|
Popover.install = (app: App): void => {
|
2020-10-19 13:44:50 +08:00
|
|
|
app.component(Popover.name, Popover)
|
|
|
|
app.directive(VPopover, PopoverDirective)
|
|
|
|
}
|
2020-11-20 20:24:16 +08:00
|
|
|
Popover.directive = PopoverDirective
|
2020-12-23 14:07:15 +08:00
|
|
|
|
|
|
|
const _Popover: SFCWithInstall<typeof Popover> = Popover
|
|
|
|
|
|
|
|
export default _Popover
|