UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 2.81 kB
{"version":3,"file":"index.mjs","sources":["../../src/portal/Portal.vue","../../src/portal/Portal.vue?vue&type=template&id=01dba075&lang.js"],"sourcesContent":["<template>\n <template v-if=\"inline\">\n <slot></slot>\n </template>\n <template v-else-if=\"mounted\">\n <Teleport :to=\"appendTo\">\n <slot></slot>\n </Teleport>\n </template>\n</template>\n\n<script>\nimport { isClient } from '@primeuix/utils/dom';\n\nexport default {\n name: 'Portal',\n props: {\n appendTo: {\n type: [String, Object],\n default: 'body'\n },\n disabled: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n mounted: false\n };\n },\n mounted() {\n this.mounted = isClient();\n },\n computed: {\n inline() {\n return this.disabled || this.appendTo === 'self';\n }\n }\n};\n</script>\n","<template>\n <template v-if=\"inline\">\n <slot></slot>\n </template>\n <template v-else-if=\"mounted\">\n <Teleport :to=\"appendTo\">\n <slot></slot>\n </Teleport>\n </template>\n</template>\n\n<script>\nimport { isClient } from '@primeuix/utils/dom';\n\nexport default {\n name: 'Portal',\n props: {\n appendTo: {\n type: [String, Object],\n default: 'body'\n },\n disabled: {\n type: Boolean,\n default: false\n }\n },\n data() {\n return {\n mounted: false\n };\n },\n mounted() {\n this.mounted = isClient();\n },\n computed: {\n inline() {\n return this.disabled || this.appendTo === 'self';\n }\n }\n};\n</script>\n"],"names":["name","props","appendTo","type","String","Object","disabled","Boolean","data","mounted","isClient","computed","inline","$options","_renderSlot","_ctx","$slots","key","$data","_createBlock","_Teleport","to","$props"],"mappings":";;;AAcA,aAAe;AACXA,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,KAAK,EAAE;AACHC,IAAAA,QAAQ,EAAE;AACNC,MAAAA,IAAI,EAAE,CAACC,MAAM,EAAEC,MAAM,CAAC;MACtB,SAAS,EAAA;KACZ;AACDC,IAAAA,QAAQ,EAAE;AACNH,MAAAA,IAAI,EAAEI,OAAO;MACb,SAAS,EAAA;AACb;GACH;EACDC,IAAI,EAAA,SAAJA,IAAIA,GAAG;IACH,OAAO;AACHC,MAAAA,OAAO,EAAE;KACZ;GACJ;EACDA,OAAO,EAAA,SAAPA,OAAOA,GAAG;AACN,IAAA,IAAI,CAACA,UAAUC,QAAQ,EAAE;GAC5B;AACDC,EAAAA,QAAQ,EAAE;IACNC,MAAM,EAAA,SAANA,MAAMA,GAAG;MACL,OAAO,IAAI,CAACN,YAAY,IAAI,CAACJ,QAAS,KAAI,MAAM;AACpD;AACJ;AACJ,CAAC;;;SCtCmBW,QAAM,CAAAD,MAAA,GAClBE,UAAY,CAAAC,IAAA,CAAAC,MAAA,EAAA,SAAA,EAAA;AAAAC,IAAAA,GAAA,EAAA;AAAA,GAAA,CAAA,GAEKC,KAAO,CAAAT,OAAA,iBACxBU,WAEU,CAAAC,QAAA,EAAA;;IAFCC,EAAE,EAAEC,MAAQ,CAAApB;MACnBY,UAAY,CAAAC,IAAA,CAAAC,MAAA,EAAA,SAAA,CAAA;;;;;;;"}