element-plus/packages/popover/index.ts
zazzaz b19d2fc374
fix: correct bundle export (#630)
* fix: correct bundle export

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update

* chore: update
2020-11-20 20:24:16 +08:00

11 lines
311 B
TypeScript

import { App } from 'vue'
import Popover from './src/index.vue'
import PopoverDirective, { VPopover } from './src/directive'
Popover.install = (app: App): void => {
app.component(Popover.name, Popover)
app.directive(VPopover, PopoverDirective)
}
Popover.directive = PopoverDirective
export default Popover