import { withInstall, withInstallDirective } from '@element-plus/utils' import Popover from './src/popover.vue' import PopoverDirective, { VPopover } from './src/directive' import type { SFCWithInstall } from '@element-plus/utils' export const ElPopoverDirective: SFCWithInstall = withInstallDirective(PopoverDirective, VPopover) export const ElPopover: SFCWithInstall & { directive: typeof ElPopoverDirective } = withInstall(Popover, { directive: ElPopoverDirective, }) export default ElPopover export * from './src/popover'