UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 1.14 kB
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/popover/index.ts"],"sourcesContent":["import Popover from './src/index.vue'\nimport PopoverDirective, { VPopover } from './src/directive'\n\nimport type { App } from 'vue'\nimport type { SFCWithInstall } from '@element-plus/utils/types'\n\nPopover.install = (app: App): void => {\n app.component(Popover.name, Popover)\n}\n;(PopoverDirective as SFCWithInstall<typeof PopoverDirective>).install = (\n app: App\n) => {\n app.directive(VPopover, PopoverDirective)\n}\n\nconst _PopoverDirective = PopoverDirective as SFCWithInstall<\n typeof PopoverDirective\n>\n\nPopover.directive = _PopoverDirective\n\nconst _Popover = Popover as any as SFCWithInstall<typeof Popover> & {\n directive: typeof _PopoverDirective\n}\n\nexport default _Popover\nexport const ElPopover = _Popover\nexport const ElPopoverDirective = _PopoverDirective\n"],"names":["Popover"],"mappings":";;;;AAMAA,OAAQ,UAAU,CAAC,QAAmB;AACpC,MAAI,UAAUA,OAAQ,MAAMA;AAAA;AAE7B,iBAA8D,UAAU,CACvE,QACG;AACH,MAAI,UAAU,UAAU;AAAA;AAG1B,MAAM,oBAAoB;AAI1BA,OAAQ,YAAY;MAEd,WAAWA;MAKJ,YAAY;MACZ,qBAAqB;;;;"}