1 |
- import{d as C,ac as s,bc as j,Y as h,r as g,bE as y,aM as N,o as d,x as u,bq as O,a as l,w as n,af as T,bF as z,bk as E,aC as c,g as v,y as S,t as q,a0 as B,f as F,ao as M,aj as P,j as V,aN as Y,_ as A,__tla as G}from"./index-327f993b.js";let _,I=Promise.all([(()=>{try{return G}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"},_=A(C({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 x=j(),o=t,b=h(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],a={...z(),...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(y(o.maxHeight)?`${o.maxHeight}px`:o.maxHeight);N(()=>r.value,async e=>{if(await P(),e){const a=document.documentElement.offsetHeight;f.value=a-55-60-(x.footer?63:0)+"px"}else f.value=y(o.maxHeight)?`${o.maxHeight}px`:o.maxHeight},{immediate:!0});const w=h(()=>({height:l(f)}));return(e,a)=>{const i=V,H=Y,D=E;return d(),u(D,T(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}),O({header:n(({close:$})=>[v("div",m,[c(e.$slots,"title",{},()=>[S(q(t.title),1)]),v("div",p,[t.fullscreen?(d(),u(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:$},null,8,["onClick"])])])]),default:n(()=>[t.scroll?(d(),u(H,{key:0,style:M(l(w))},{default:n(()=>[c(e.$slots,"default")]),_:3},8,["style"])):c(e.$slots,"default",{key:1})]),_:2},[l(x).footer?{name:"footer",fn:n(()=>[c(e.$slots,"footer")]),key:"0"}:void 0]),1040,["fullscreen","width"])}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/components/Dialog/src/Dialog.vue"]])});export{_,I as __tla};
|