import{d as T,as as t,aW as E,e as x,r as y,aX as v,w as N,o as H,C as k,aY as S,a,A as i,m as j,aZ as A,a_ as G,aO as c,B as n,D as I,E as P,f as m,a$ as Q,aH as V,n as W,Q as X,aG as Y,b0 as Z,_ as q,__tla as F}from"./index-286756b9.js";let w,J=Promise.all([(()=>{try{return F}catch{}})()]).then(async()=>{let u,h,g,_;u={class:"my-header"},h={class:"my-header-left"},g={class:"my-header-right"},_=["onClick"],w=q(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 p=E(),l=d,$=x(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],s={...A(),...l};for(const r in s)e.indexOf(r)!==-1&&delete s[r];return s}),o=y(!1),b=()=>{o.value=!a(o)},f=y(v(l.maxHeight)?`${l.maxHeight}px`:l.maxHeight);N(()=>o.value,async e=>{if(await W(),e){const s=document.documentElement.offsetHeight;f.value=s-55-60-(p.footer?63:0)+"px"}else f.value=v(l.maxHeight)?`${l.maxHeight}px`:l.maxHeight},{immediate:!0});const D=x(()=>({height:a(f)}));return(e,s)=>{const r=X,z=Y,C=Z,O=G;return H(),k(O,j(a($),{"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:B})=>[n("div",u,[n("div",h,[c(e.$slots,"title",{},()=>[I(P(d.title),1)],!0)]),n("div",g,[n("span",{onClick:b},[m(r,{icon:a(o)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),n("span",{onClick:B},[m(z,null,{default:i(()=>[m(a(Q))]),_:1})],8,_)])])]),default:i(()=>[d.scroll?(H(),k(C,{key:0,style:V(a(D))},{default:i(()=>[c(e.$slots,"default",{},void 0,!0)]),_:3},8,["style"])):c(e.$slots,"default",{key:1},void 0,!0)]),_:2},[a(p).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-admin/src/components/Dialog/src/Dialog.vue"]])});export{w as _,J as __tla};