1 |
- import{d as O,ai as t,b0 as B,L as x,r as y,b1 as v,M as I,o as b,x as k,aI as M,a,w as i,al as S,b2 as q,aN as E,aB as c,h as n,q as J,t as L,g as u,aJ as P,au as R,ao as U,k as V,aM as X,b3 as j,_ as A,__tla as F}from"./index-57157669.js";let H,G=Promise.all([(()=>{try{return F}catch{}})()]).then(async()=>{let m,h,g,p;m={class:"my-header"},h={class:"my-header-left"},g={class:"my-header-right"},p=["onClick"],H=A(O({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(r){const _=B(),s=r,w=x(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],l={...q(),...s};for(const d in l)e.indexOf(d)!==-1&&delete l[d];return l}),o=y(!1),$=()=>{o.value=!a(o)},f=y(v(s.maxHeight)?`${s.maxHeight}px`:s.maxHeight);I(()=>o.value,async e=>{if(await U(),e){const l=document.documentElement.offsetHeight;f.value=l-55-60-(_.footer?63:0)+"px"}else f.value=v(s.maxHeight)?`${s.maxHeight}px`:s.maxHeight},{immediate:!0});const D=x(()=>({height:a(f)}));return(e,l)=>{const d=V,T=X,z=j,C=E;return b(),k(C,S(a(w),{"close-on-click-modal":!0,fullscreen:a(o),width:r.width,"destroy-on-close":"","lock-scroll":"",draggable:"",class:"dialog","show-close":!1}),M({header:i(({close:N})=>[n("div",m,[n("div",h,[c(e.$slots,"title",{},()=>[J(L(r.title),1)],!0)]),n("div",g,[n("span",{onClick:$},[u(d,{icon:a(o)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),n("span",{onClick:N},[u(T,null,{default:i(()=>[u(a(P))]),_:1})],8,p)])])]),default:i(()=>[r.scroll?(b(),k(z,{key:0,style:R(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(_).footer?{name:"footer",fn:i(()=>[c(e.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["fullscreen","width"])}}}),[["__scopeId","data-v-f1034e22"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-business/src/components/Dialog/src/Dialog.vue"]])});export{H as _,G as __tla};
|