12345 |
- <<<<<<<< HEAD:dist/assets/Dialog-386bf3a6.js
- import{d as j,ag as t,aU as N,K as x,r as y,bm as v,L as S,o as b,v as H,aY as B,a,w as i,aj as E,bn as I,b0 as K,aD as c,g as n,n as L,t as P,f as m,aZ as U,au as V,an as Y,j as Z,aT as q,bo as A,_ as F,__tla as G}from"./index-d75b4e4d.js";let k,J=Promise.all([(()=>{try{return G}catch{}})()]).then(async()=>{let u,g,h,_;u={class:"my-header"},g={class:"my-header-left"},h={class:"my-header-right"},_=["onClick"],k=F(j({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=N(),l=d,w=x(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],s={...I(),...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);S(()=>o.value,async e=>{if(await Y(),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 $=x(()=>({height:a(f)}));return(e,s)=>{const r=Z,z=q,O=A,T=K;return b(),H(T,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:C})=>[n("div",u,[n("div",g,[c(e.$slots,"title",{},()=>[L(P(d.title),1)],!0)]),n("div",h,[n("span",{onClick:D},[m(r,{icon:a(o)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),n("span",{onClick:C},[m(z,null,{default:i(()=>[m(a(U))]),_:1})],8,_)])])]),default:i(()=>[d.scroll?(b(),H(O,{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(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{k as _,J as __tla};
- ========
- import{d as j,ag as t,aU as N,K as x,r as y,bm as v,L as S,o as b,v as H,aY as B,a,w as i,aj as E,bn as I,b0 as K,aD as c,g as n,n as L,t as P,f as m,aZ as U,au as V,an as Y,j as Z,aT as q,bo as A,_ as F,__tla as G}from"./index-c9fff140.js";let k,J=Promise.all([(()=>{try{return G}catch{}})()]).then(async()=>{let u,g,h,_;u={class:"my-header"},g={class:"my-header-left"},h={class:"my-header-right"},_=["onClick"],k=F(j({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=N(),l=d,w=x(()=>{const e=["fullscreen","title","maxHeight","appendToBody"],s={...I(),...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);S(()=>o.value,async e=>{if(await Y(),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 $=x(()=>({height:a(f)}));return(e,s)=>{const r=Z,z=q,O=A,T=K;return b(),H(T,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:C})=>[n("div",u,[n("div",g,[c(e.$slots,"title",{},()=>[L(P(d.title),1)],!0)]),n("div",h,[n("span",{onClick:D},[m(r,{icon:a(o)?"zmdi:fullscreen-exit":"zmdi:fullscreen"},null,8,["icon"])]),n("span",{onClick:C},[m(z,null,{default:i(()=>[m(a(U))]),_:1})],8,_)])])]),default:i(()=>[d.scroll?(b(),H(O,{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(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{k as _,J as __tla};
- >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/Dialog-f1f78bbe.js
|