feat(admin): 新增管理后台前端资源文件 feat(api): 实现获取用户统计数据的API接口 - 添加获取用户道具卡数量、优惠券数量和积分余额的接口 - 实现设置默认地址和删除地址的接口 feat(service): 新增用户统计服务方法 - 实现GetUserStats方法查询用户统计数据 - 添加地址管理相关服务方法 fix(core): 修复静态资源路由问题 - 调整静态资源路由配置 - 优化404路由处理逻辑 chore: 更新前端构建配置 - 添加Windows平台构建命令 - 更新README构建说明
2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
var e=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,r=(a,s,t)=>s in a?e(a,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[s]=t,i=(e,a)=>{for(var s in a||(a={}))l.call(a,s)&&r(e,s,a[s]);if(t)for(var s of t(a))o.call(a,s)&&r(e,s,a[s]);return e},d=(e,t)=>a(e,s(t));import{a2 as n,dp as u,c,dq as f,a as v,w as p,c4 as b,b as y,by as m,_ as h,d as g,aY as w,X as k,bI as z,y as C,f as A,z as E,p as R,Z as j,u as x,J as O,h as _,Y as F,aG as L,e as P,k as $,i as I,j as S,m as T,ab as B,b4 as H,g as q,ac as D,ap as Y}from"./index-ip5gDR6L.js";import{E as X}from"./index-D17cYxP7.js";import{E as N,b as G}from"./index-CHAf6FpU.js";import{c as J,e as M,u as U}from"./use-dialog-Cj8YneNA.js";import{u as W}from"./index-D-iZIej9.js";const Z=n(d(i({},M),{direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}})),K=J;function Q(e,a){const{width:s,height:t}=u(),l=c(()=>["ltr","rtl"].includes(e.direction)),o=c(()=>["ltr","ttb"].includes(e.direction)?1:-1),r=c(()=>l.value?s.value:t.value),i=c(()=>f(d.value+o.value*n.value,4,r.value)),d=v(0),n=v(0),h=v(!1),g=v(!1);let w=[],k=[];p(()=>[e.size,e.resizable],()=>{g.value=!1,d.value=0,n.value=0,C()});const z=e=>{const{pageX:a,pageY:s}=e,t=a-w[0],o=s-w[1];n.value=l.value?t:o},C=()=>{w=[],d.value=i.value,n.value=0,h.value=!1,k.forEach(e=>null==e?void 0:e()),k=[]},A=b(a,"mousedown",s=>{e.resizable&&(g.value||(d.value=(()=>{var e;const s=null==(e=a.value)?void 0:e.closest('[aria-modal="true"]');return s?l.value?s.offsetWidth:s.offsetHeight:100})(),g.value=!0),w=[s.pageX,s.pageY],h.value=!0,k.push(b(window,"mouseup",C),b(window,"mousemove",z)))});return y(()=>{A(),C()}),{size:c(()=>g.value?`${i.value}px`:m(e.size)),isResizing:h,isHorizontal:l}}const V=g({name:"ElDrawer",inheritAttrs:!1});const ee=Y(h(g(d(i({},V),{props:Z,emits:K,setup(e,{expose:a}){const s=e,t=w();W({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},c(()=>!!t.title));const l=v(),o=v(),r=v(),i=k("drawer"),{t:d}=z(),{afterEnter:n,afterLeave:u,beforeLeave:f,visible:p,rendered:b,titleId:y,bodyId:m,zIndex:h,onModalClick:g,onOpenAutoFocus:Y,onCloseAutoFocus:J,onFocusoutPrevented:M,onCloseRequested:Z,handleClose:K}=U(s,l),{isHorizontal:V,size:ee,isResizing:ae}=Q(s,r);return a({handleClose:K,afterEnter:n,afterLeave:u}),(e,a)=>(A(),C(x(G),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:E(()=>[R(j,{name:x(i).b("fade"),onAfterEnter:x(n),onAfterLeave:x(u),onBeforeLeave:x(f),persisted:""},{default:E(()=>{var a;return[O(R(x(X),{mask:e.modal,"overlay-class":[x(i).is("drawer"),null!=(a=e.modalClass)?a:""],"z-index":x(h),onClick:x(g)},{default:E(()=>[R(x(N),{loop:"",trapped:x(p),"focus-trap-el":l.value,"focus-start-el":o.value,onFocusAfterTrapped:x(Y),onFocusAfterReleased:x(J),onFocusoutPrevented:x(M),onReleaseRequested:x(Z)},{default:E(()=>[_("div",F({ref_key:"drawerRef",ref:l,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:x(y),"aria-describedby":x(m)},e.$attrs,{class:[x(i).b(),e.direction,x(p)&&"open",x(i).is("dragging",x(ae))],style:{[x(V)?"width":"height"]:x(ee)},role:"dialog",onClick:L(()=>{},["stop"])}),[_("span",{ref_key:"focusStartRef",ref:o,class:I(x(i).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(A(),P("header",{key:0,class:I([x(i).e("header"),e.headerClass])},[e.$slots.title?S(e.$slots,"title",{key:1},()=>[$(" DEPRECATED SLOT ")]):S(e.$slots,"header",{key:0,close:x(K),titleId:x(y),titleClass:x(i).e("title")},()=>[_("span",{id:x(y),role:"heading","aria-level":e.headerAriaLevel,class:I(x(i).e("title"))},T(e.title),11,["id","aria-level"])]),e.showClose?(A(),P("button",{key:2,"aria-label":x(d)("el.drawer.close"),class:I(x(i).e("close-btn")),type:"button",onClick:x(K)},[R(x(B),{class:I(x(i).e("close"))},{default:E(()=>[R(x(H))]),_:1},8,["class"])],10,["aria-label","onClick"])):$("v-if",!0)],2)):$("v-if",!0),x(b)?(A(),P("div",{key:1,id:x(m),class:I([x(i).e("body"),e.bodyClass])},[S(e.$slots,"default")],10,["id"])):$("v-if",!0),e.$slots.footer?(A(),P("div",{key:2,class:I([x(i).e("footer"),e.footerClass])},[S(e.$slots,"footer")],2)):$("v-if",!0),e.resizable?(A(),P("div",{key:3,ref_key:"draggerRef",ref:r,style:q({zIndex:x(h)}),class:I(x(i).e("dragger"))},null,6)):$("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[D,x(p)]])]}),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}})),[["__file","drawer.vue"]]));export{ee as E};
|