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

2 lines (1 loc) 592 B
import{DomHandler as e}from"primevue/utils";import{renderSlot as t,openBlock as n,createBlock as o,Teleport as d,createCommentVNode as i}from"vue";var u={name:"Portal",props:{appendTo:{type:String,default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=e.isClient()},computed:{inline:function(){return this.disabled||"self"===this.appendTo}}};u.render=function(e,u,r,a,l,p){return p.inline?t(e.$slots,"default",{key:0}):l.mounted?(n(),o(d,{key:1,to:r.appendTo},[t(e.$slots,"default")],8,["to"])):i("",!0)};export{u as default};