import{d as T,ai as t,b2 as M,L as p,r as y,b3 as v,M as N,o as b,x as k,aL as S,a,w as i,al as P,b4 as j,aw as q,aD as c,h as n,q as B,t as E,g as u,aM as I,au as V,ao as A,k as F,aP as G,b5 as J,_ as K,__tla as Q}from"./index-d6d9d1db.js";let w,R=Promise.all([(()=>{try{return Q}catch{}})()]).then(async()=>{let m,h,g,x;m={class:"my-header"},h={class:"my-header-left"},g={class:"my-header-right"},x=["onClick"],w=K(T({name:"Dialog",__name:"Dialog",props:{modelValue:t.bool.def(!1),title:t.string.def("Dialog"),fullscreen:t.bool.def(!0),width:t.oneOfType([String,Number]).def("40%"),scroll:t.bool.def(!1),maxHeight:t.oneOfType([String,Number]).def("400px")},setup(d){const _=M(),l=d,H=p(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],s={...j(),...l};for(const r in s)e.indexOf(r)!==-1&&delete s[r];return s}),o=y(!1),D=()=>{o.value=!a(o)},f=y(v(l.maxHeight)?`${l.maxHeight}px`:l.maxHeight);N(()=>o.value,async e=>{if(await A(),e){const s=document.documentElement.offsetHeight;f.value=s-55-60-(_.footer?63:0)+"px"}else f.value=v(l.maxHeight)?`${l.maxHeight}px`:l.maxHeight},{immediate:!0});const $=p(()=>({height:a(f)}));return(e,s)=>{const r=F,z=G,C=J,L=q;return b(),k(L,P(a(H),{"close-on-click-modal":!0,fullscreen:a(o),width:d.width,"destroy-on-close":"","lock-scroll":"",draggable:"",class:"dialog","show-close":!1}),S({header:i(({close:O})=>[n("div",m,[n("div",h,[c(e.$slots,"title",{},()=>[B(E(d.title),1)],!0)]),n("div",g,[n("span",{onClick:D},[u(r,{icon:a(o)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),n("span",{onClick:O},[u(z,null,{default:i(()=>[u(a(I))]),_:1})],8,x)])])]),default:i(()=>[d.scroll?(b(),k(C,{key:0,style:V(a($))},{default:i(()=>[c(e.$slots,"default",{},void 0,!0)]),_:3},8,["style"])):c(e.$slots,"default",{key:1},void 0,!0)]),_:2},[a(_).footer?{name:"footer",fn:i(()=>[c(e.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["fullscreen","width"])}}}),[["__scopeId","data-v-f1034e22"],["__file","D:/zx/mall-newfeifan-zx-business/src/components/Dialog/src/Dialog.vue"]])});export{w as _,R as __tla};