import{d as O,p as s,cs as j,b as x,r as g,b9 as v,aP as C,o as u,l as d,ct as T,a as l,w as n,ai as E,bk as N,cu as P,aF as c,g as y,j as S,t as A,a2 as B,i as F,ar as G,am as Q,v as V,aQ as q,_ as z,__tla as I}from"./index-2c56227b.js";let _,J=Promise.all([(()=>{try{return I}catch{}})()]).then(async()=>{let m,p;m={class:"relative h-54px flex items-center justify-between pl-15px pr-15px"},p={class:"absolute right-15px top-[50%] h-54px flex translate-y-[-50%] items-center justify-between"},_=z(O({name:"Dialog",__name:"Dialog",props:{modelValue:s.bool.def(!1),title:s.string.def("Dialog"),fullscreen:s.bool.def(!0),width:s.oneOfType([String,Number]).def("40%"),scroll:s.bool.def(!1),maxHeight:s.oneOfType([String,Number]).def("400px")},setup(t){const h=j(),o=t,b=x(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],a={...N(),...o};for(const i in a)e.indexOf(i)!==-1&&delete a[i];return a}),r=g(!1),k=()=>{r.value=!l(r)},f=g(v(o.maxHeight)?`${o.maxHeight}px`:o.maxHeight);C(()=>r.value,async e=>{if(await Q(),e){const a=document.documentElement.offsetHeight;f.value=a-55-60-(h.footer?63:0)+"px"}else f.value=v(o.maxHeight)?`${o.maxHeight}px`:o.maxHeight},{immediate:!0});const w=x(()=>({height:l(f)}));return(e,a)=>{const i=V,H=q,$=P;return u(),d($,E(l(b),{"close-on-click-modal":!0,fullscreen:l(r),width:t.width,"destroy-on-close":"","lock-scroll":"",draggable:"",class:"com-dialog","show-close":!1}),T({header:n(({close:D})=>[y("div",m,[c(e.$slots,"title",{},()=>[S(A(t.title),1)]),y("div",p,[t.fullscreen?(u(),d(i,{key:0,class:"is-hover mr-10px cursor-pointer",icon:l(r)?"radix-icons:exit-full-screen":"radix-icons:enter-full-screen",color:"var(--el-color-info)","hover-color":"var(--el-color-primary)",onClick:k},null,8,["icon"])):B("",!0),F(i,{class:"is-hover cursor-pointer",icon:"ep:close","hover-color":"var(--el-color-primary)",color:"var(--el-color-info)",onClick:D},null,8,["onClick"])])])]),default:n(()=>[t.scroll?(u(),d(H,{key:0,style:G(l(w))},{default:n(()=>[c(e.$slots,"default")]),_:3},8,["style"])):c(e.$slots,"default",{key:1})]),_:2},[l(h).footer?{name:"footer",fn:n(()=>[c(e.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","width"])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/components/Dialog/src/Dialog.vue"]])});export{_,J as __tla};
