import{defineComponent as g,ref as C,createVNode as o,Transition as b}from"vue";import h from"../../_util/classNames.mjs";import{flattenChildren as v}from"../../_util/props-util/index.mjs";import{mobileProps as N}from"./interface.mjs";const P=g({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:N,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(r,{expose:s,slots:p}){const t=C();return s({forceAlign:()=>{},getElement:()=>t.value}),()=>{const{zIndex:i,visible:m,prefixCls:n,mobile:{popupClassName:a,popupStyle:f,popupMotion:u={},popupRender:l}={}}=r,d={zIndex:i,...f};let e=v(p.default?.());e.length>1&&(e=o("div",{class:`${n}-content`},[e])),l&&(e=l(e));const c=h(n,a);return o(b,{ref:t,...u},{default:()=>[m?o("div",{class:c,style:d},[e]):null]})}}});export{P as default};
