All Downloads are FREE. Search and download functionalities are using the official Maven repository.

admin.assets.detail-drawer-CQjfY8zD.js Maven / Gradle / Ivy

The newest version!
import{d as b,Z as f,a0 as L,cT as M,L as W,p as $,r as C,a as D,ap as N,n as B,o as d,c as u,w as i,f as E,cU as U,cn as h,g as T,t as z,h as A,b as q,ai as F,de as I,df as P,cP as Q,cQ as Z,l as j}from"./index-D2gfy4BV.js";const G=b({name:"DetailDrawer",__name:"detail-drawer",props:f({title:{},width:{}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:f(["update:modelValue","update:show","afterLeave"],["update:modelValue"]),setup(p,{emit:v}){const t=p,r=v,m=L(p,"modelValue"),x=M(),_=W(),a=$({width:0}),n=C(!1),y=D(()=>{if(t.width)return n.value?t.width[1]:t.width[0];const e=360,o=600;if(_.isMobile)return a.width*.9>=e?`${e}px`:"90%";let s=a.width*.3>=e?`${e}px`:"30%";s=a.width<=420?"90%":s;let l=a.width*.5>=o?`${o}px`:"50%";return l=a.width<=420?"90%":l,n.value?l:s}),c=()=>{a.width=document.documentElement.clientWidth};N(()=>{c(),window.addEventListener("resize",c)}),B(()=>{window.removeEventListener("resize",c)});const g=e=>{r("update:modelValue",e),r("update:show",e)},k=()=>{r("afterLeave")};return(e,o)=>{const s=I,l=P,S=Q,V=Z;return d(),u(V,{show:m.value,"onUpdate:show":[o[1]||(o[1]=w=>m.value=w),g],"display-directive":"if",width:y.value,onAfterLeave:k},{default:i(()=>[E(S,{title:t.title,"native-scrollbar":!1,closable:"","header-class":"operate-dawer-header"},U({header:i(()=>[T(z(t.title)+" ",1),!A(_).isMobile&&(!t.width||t.width&&t.width[0]!==t.width[1])?(d(),q("div",{key:0,quaternary:"",class:"fullscreen text-18px color-#6a6a6a",onClick:o[0]||(o[0]=w=>n.value=!n.value)},[n.value?(d(),u(s,{key:0})):(d(),u(l,{key:1}))])):F("",!0)]),default:i(()=>[h(e.$slots,"default",{},void 0,!0)]),_:2},[x.footer?{name:"footer",fn:i(()=>[h(e.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1032,["title"])]),_:3},8,["show","width"])}}}),J=j(G,[["__scopeId","data-v-ef3922d0"]]);export{J as _};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy