UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

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};