1 |
- import{d as T,ah as t,b2 as S,e as x,r as y,b3 as v,O as j,o as b,j as k,aN as B,a,w as i,ak as E,b4 as P,az as G,aG as c,k as n,m as I,t as V,i as m,aO as q,ax as A,ao as F,_ as J,aP as K,b5 as L,__tla as M}from"./index-20ebf448.js";import{_ as Q}from"./_plugin-vue_export-helper-1b428a4d.js";let H,R=Promise.all([(()=>{try{return M}catch{}})()]).then(async()=>{let u,h,g,p;u={class:"my-header"},h={class:"my-header-left"},g={class:"my-header-right"},p=["onClick"],H=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 _=S(),l=d,w=x(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],s={...P(),...l};for(const r in s)e.indexOf(r)!==-1&&delete s[r];return s}),o=y(!1),O=()=>{o.value=!a(o)},f=y(v(l.maxHeight)?`${l.maxHeight}px`:l.maxHeight);j(()=>o.value,async e=>{if(await F(),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 $=x(()=>({height:a(f)}));return(e,s)=>{const r=J,N=K,z=L,C=G;return b(),k(C,E(a(w),{"close-on-click-modal":!0,fullscreen:a(o),width:d.width,"destroy-on-close":"","lock-scroll":"",draggable:"",class:"dialog","show-close":!1}),B({header:i(({close:D})=>[n("div",u,[n("div",h,[c(e.$slots,"title",{},()=>[I(V(d.title),1)],!0)]),n("div",g,[n("span",{onClick:O},[m(r,{icon:a(o)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),n("span",{onClick:D},[m(N,null,{default:i(()=>[m(a(q))]),_:1})],8,p)])])]),default:i(()=>[d.scroll?(b(),k(z,{key:0,style:A(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-4ac59f17"]])});export{H as _,R as __tla};
|