UNPKG

ideaz-element

Version:

<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>

1 lines 633 B
{"version":3,"file":"withInstall.cjs","sources":["../../../packages/utils/withInstall.ts"],"sourcesContent":["import type { App, Component } from 'vue'\n\ntype SFCWithInstall = Component & {\n install: (app: App, options?: Record<keyof any, any>) => void\n}\n\nexport function withInstall(sfc: Component): SFCWithInstall {\n (sfc as SFCWithInstall).install = (app: App): void => {\n app.component(sfc.name as string, sfc as object)\n }\n\n return sfc as SFCWithInstall\n}\n"],"names":["withInstall","sfc","app"],"mappings":"gFAMO,SAAAA,EAAAC,EAAA,CACL,OAAAA,EAAA,QAAAC,GAAA,CACEA,EAAA,UAAAD,EAAA,KAAAA,CAAA,CAA+C,EAGjDA,CACF"}