diff --git a/assets/403-BL5SyUD8.js b/assets/403-CXpBO8I5.js similarity index 99% rename from assets/403-BL5SyUD8.js rename to assets/403-CXpBO8I5.js index 6ccd3911..352c6d0f 100644 --- a/assets/403-BL5SyUD8.js +++ b/assets/403-CXpBO8I5.js @@ -1 +1 @@ -import{L as r}from"./Layout-DAGLo1Y6.js";import{v as e,x as s,aE as l,t as i,I as h,J as n,L as p,u as c}from"./vue-V9u7w0-f.js";import"./index-isqCupv6.js";import"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";/* empty css */import"./_plugin-vue_export-helper-DlAUqK2U.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},j=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{j as default}; +import{L as r}from"./Layout-zRFymBYJ.js";import{v as e,x as s,aE as l,t as i,I as h,J as n,L as p,u as c}from"./vue-V9u7w0-f.js";import"./index-CnTyAQzS.js";import"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";/* empty css */import"./_plugin-vue_export-helper-DlAUqK2U.js";const k={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(o,t){return e(),s("svg",k,t[0]||(t[0]=[l('',50)]))}const a={render:d},j=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{j as default}; diff --git a/assets/404-BYJWNwhn.js b/assets/404-BoeoD8VL.js similarity index 99% rename from assets/404-BYJWNwhn.js rename to assets/404-BoeoD8VL.js index d4b36b50..bd72eb4c 100644 --- a/assets/404-BYJWNwhn.js +++ b/assets/404-BoeoD8VL.js @@ -1 +1 @@ -import{L as c}from"./Layout-DAGLo1Y6.js";import{v as l,x as h,aE as e,t as s,I as p,J as M,L as f,u as i}from"./vue-V9u7w0-f.js";import"./index-isqCupv6.js";import"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";/* empty css */import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},H=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{H as default}; +import{L as c}from"./Layout-zRFymBYJ.js";import{v as l,x as h,aE as e,t as s,I as p,J as M,L as f,u as i}from"./vue-V9u7w0-f.js";import"./index-CnTyAQzS.js";import"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";/* empty css */import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"};function d(t,a){return l(),h("svg",y,a[0]||(a[0]=[e('',141)]))}const r={render:d},H=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{H as default}; diff --git a/assets/Layout-DAGLo1Y6.js b/assets/Layout-zRFymBYJ.js similarity index 89% rename from assets/Layout-DAGLo1Y6.js rename to assets/Layout-zRFymBYJ.js index 499facc6..073a9550 100644 --- a/assets/Layout-DAGLo1Y6.js +++ b/assets/Layout-zRFymBYJ.js @@ -1 +1 @@ -import"./index-isqCupv6.js";/* empty css */import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{t as c}from"./element-zW3XFg-9.js";import{ac as _,v as d,x as i,A as l,y as m,L as e,J as o,a2 as p}from"./vue-V9u7w0-f.js";const u={},f={class:"error"},v={class:"error-svg"};function x(r,t){const s=c,a=_("router-link");return d(),i("div",f,[l("div",v,[m(r.$slots,"default",{},void 0,!0)]),e(a,{to:"/"},{default:o(()=>[e(s,{type:"primary"},{default:o(()=>t[0]||(t[0]=[p(" 回到首页 ")])),_:1})]),_:1})])}const V=n(u,[["render",x],["__scopeId","data-v-19cd37a7"]]);export{V as L}; +import"./index-CnTyAQzS.js";/* empty css */import{_ as n}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{t as c}from"./element-zW3XFg-9.js";import{ac as _,v as d,x as i,A as l,y as m,L as e,J as o,a2 as p}from"./vue-V9u7w0-f.js";const u={},f={class:"error"},v={class:"error-svg"};function x(r,t){const s=c,a=_("router-link");return d(),i("div",f,[l("div",v,[m(r.$slots,"default",{},void 0,!0)]),e(a,{to:"/"},{default:o(()=>[e(s,{type:"primary"},{default:o(()=>t[0]||(t[0]=[p(" 回到首页 ")])),_:1})]),_:1})])}const V=n(u,[["render",x],["__scopeId","data-v-19cd37a7"]]);export{V as L}; diff --git a/assets/SwitchRoles-CO69hybb.js b/assets/SwitchRoles-BKiprZJR.js similarity index 94% rename from assets/SwitchRoles-CO69hybb.js rename to assets/SwitchRoles-BKiprZJR.js index 80cc7680..6335ff55 100644 --- a/assets/SwitchRoles-CO69hybb.js +++ b/assets/SwitchRoles-BKiprZJR.js @@ -1 +1 @@ -import{e as v}from"./index-isqCupv6.js";/* empty css *//* empty css */import{n as w,ak as g,al as R,o as x}from"./element-zW3XFg-9.js";import{t as S,r as V,w as h,v as l,I as u,J as r,A as a,x as k,G as B,ai as E,u as _,a2 as b,O as C,L as n,h as N}from"./vue-V9u7w0-f.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const G={class:"switch-roles"},I=S({__name:"SwitchRoles",setup(L){const t=v(),o=V(t.roles[0]);return h(o,i=>{t.changeRoles(i)}),(i,e)=>{const c=w,d=g,p=R,m=x;return l(),u(m,{shadow:"never"},{default:r(()=>[a("div",null,[e[1]||(e[1]=a("span",null,"你的角色:",-1)),(l(!0),k(B,null,E(_(t).roles,(s,f)=>(l(),u(c,{key:f,effect:"plain",size:"large"},{default:r(()=>[b(C(s),1)]),_:2},1024))),128))]),a("div",G,[e[2]||(e[2]=a("span",null,"切换用户:",-1)),n(p,{modelValue:_(o),"onUpdate:modelValue":e[0]||(e[0]=s=>N(o)?o.value=s:null)},{default:r(()=>[n(d,{label:"editor",value:"editor"}),n(d,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])]),_:1})}}}),J=y(I,[["__scopeId","data-v-93f990ce"]]);export{J as S}; +import{e as v}from"./index-CnTyAQzS.js";/* empty css *//* empty css */import{n as w,ak as g,al as R,o as x}from"./element-zW3XFg-9.js";import{t as S,r as V,w as h,v as l,I as u,J as r,A as a,x as k,G as B,ai as E,u as _,a2 as b,O as C,L as n,h as N}from"./vue-V9u7w0-f.js";import{_ as y}from"./_plugin-vue_export-helper-DlAUqK2U.js";const G={class:"switch-roles"},I=S({__name:"SwitchRoles",setup(L){const t=v(),o=V(t.roles[0]);return h(o,i=>{t.changeRoles(i)}),(i,e)=>{const c=w,d=g,p=R,m=x;return l(),u(m,{shadow:"never"},{default:r(()=>[a("div",null,[e[1]||(e[1]=a("span",null,"你的角色:",-1)),(l(!0),k(B,null,E(_(t).roles,(s,f)=>(l(),u(c,{key:f,effect:"plain",size:"large"},{default:r(()=>[b(C(s),1)]),_:2},1024))),128))]),a("div",G,[e[2]||(e[2]=a("span",null,"切换用户:",-1)),n(p,{modelValue:_(o),"onUpdate:modelValue":e[0]||(e[0]=s=>N(o)?o.value=s:null)},{default:r(()=>[n(d,{label:"editor",value:"editor"}),n(d,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])]),_:1})}}}),J=y(I,[["__scopeId","data-v-93f990ce"]]);export{J as S}; diff --git a/assets/button-level-mBvJG59v.js b/assets/button-level-CGMVZUjY.js similarity index 93% rename from assets/button-level-mBvJG59v.js rename to assets/button-level-CGMVZUjY.js index cb1b97bc..6e09a5f1 100644 --- a/assets/button-level-mBvJG59v.js +++ b/assets/button-level-CGMVZUjY.js @@ -1 +1 @@ -import{j as g,e as x}from"./index-isqCupv6.js";/* empty css *//* empty css *//* empty css *//* empty css */import{S as E}from"./SwitchRoles-CO69hybb.js";import{t as P,o as w,aj as h,n as y,w as T,s as B}from"./element-zW3XFg-9.js";import{t as C,ak as z,v as a,x as D,L as o,J as t,R as p,I as r,a2 as s,u,F as f}from"./vue-V9u7w0-f.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";function v(n){if(g(n)&&n.length>0){const{roles:i}=x();return i.some(e=>n.includes(e))}else return console.error("参数必须是一个数组且长度大于 0,参考:checkPermission(['admin','editor'])"),!1}const S={class:"app-container"},V=C({__name:"button-level",setup(n){return(i,e)=>{const l=P,m=w,b=h,d=y,c=T,k=B,_=z("permission");return a(),D("div",S,[o(E),o(m,{header:"权限指令 v-permission 示例",shadow:"never",class:"margin-top-20"},{default:t(()=>[p((a(),r(l,null,{default:t(()=>e[0]||(e[0]=[s(" admin ")])),_:1})),[[_,["admin"]]]),p((a(),r(l,null,{default:t(()=>e[1]||(e[1]=[s(" admin 和 editor ")])),_:1})),[[_,["admin","editor"]]])]),_:1}),o(m,{header:"权限函数 checkPermission 示例",shadow:"never",class:"margin-top-20"},{default:t(()=>[o(b,{type:"warning",size:"large"},{default:t(()=>e[2]||(e[2]=[s(" Element Plus 的 el-tab-pane 和 el-table-column 以及其它动态渲染 DOM 的场景不适合使用 v-permission 这种情况下你可以通过 v-if + checkPermission 来实现 ")])),_:1}),o(k,{type:"border-card",class:"margin-top-20"},{default:t(()=>[u(v)(["admin"])?(a(),r(c,{key:0,label:"admin"},{default:t(()=>[o(d,{size:"large"},{default:t(()=>e[3]||(e[3]=[s(` v-if="checkPermission(['admin'])" `)])),_:1})]),_:1})):f("",!0),u(v)(["admin","editor"])?(a(),r(c,{key:1,label:"admin 和 editor"},{default:t(()=>[o(d,{size:"large"},{default:t(()=>e[4]||(e[4]=[s(` v-if="checkPermission(['admin', 'editor'])" `)])),_:1})]),_:1})):f("",!0)]),_:1})]),_:1})])}}}),G=N(V,[["__scopeId","data-v-3d1bb89f"]]);export{G as default}; +import{j as g,e as x}from"./index-CnTyAQzS.js";/* empty css *//* empty css *//* empty css *//* empty css */import{S as E}from"./SwitchRoles-BKiprZJR.js";import{t as P,o as w,aj as h,n as y,w as T,s as B}from"./element-zW3XFg-9.js";import{t as C,ak as z,v as a,x as D,L as o,J as t,R as p,I as r,a2 as s,u,F as f}from"./vue-V9u7w0-f.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";function v(n){if(g(n)&&n.length>0){const{roles:i}=x();return i.some(e=>n.includes(e))}else return console.error("参数必须是一个数组且长度大于 0,参考:checkPermission(['admin','editor'])"),!1}const S={class:"app-container"},V=C({__name:"button-level",setup(n){return(i,e)=>{const l=P,m=w,b=h,d=y,c=T,k=B,_=z("permission");return a(),D("div",S,[o(E),o(m,{header:"权限指令 v-permission 示例",shadow:"never",class:"margin-top-20"},{default:t(()=>[p((a(),r(l,null,{default:t(()=>e[0]||(e[0]=[s(" admin ")])),_:1})),[[_,["admin"]]]),p((a(),r(l,null,{default:t(()=>e[1]||(e[1]=[s(" admin 和 editor ")])),_:1})),[[_,["admin","editor"]]])]),_:1}),o(m,{header:"权限函数 checkPermission 示例",shadow:"never",class:"margin-top-20"},{default:t(()=>[o(b,{type:"warning",size:"large"},{default:t(()=>e[2]||(e[2]=[s(" Element Plus 的 el-tab-pane 和 el-table-column 以及其它动态渲染 DOM 的场景不适合使用 v-permission 这种情况下你可以通过 v-if + checkPermission 来实现 ")])),_:1}),o(k,{type:"border-card",class:"margin-top-20"},{default:t(()=>[u(v)(["admin"])?(a(),r(c,{key:0,label:"admin"},{default:t(()=>[o(d,{size:"large"},{default:t(()=>e[3]||(e[3]=[s(` v-if="checkPermission(['admin'])" `)])),_:1})]),_:1})):f("",!0),u(v)(["admin","editor"])?(a(),r(c,{key:1,label:"admin 和 editor"},{default:t(()=>[o(d,{size:"large"},{default:t(()=>e[4]||(e[4]=[s(` v-if="checkPermission(['admin', 'editor'])" `)])),_:1})]),_:1})):f("",!0)]),_:1})]),_:1})])}}}),G=N(V,[["__scopeId","data-v-3d1bb89f"]]);export{G as default}; diff --git a/assets/el-message-box-_1IsF84Y.js b/assets/el-message-box-CkuiReOM.js similarity index 79% rename from assets/el-message-box-_1IsF84Y.js rename to assets/el-message-box-CkuiReOM.js index c6207ce7..b3e58fa7 100644 --- a/assets/el-message-box-_1IsF84Y.js +++ b/assets/el-message-box-CkuiReOM.js @@ -1 +1 @@ -import{f as e}from"./index-isqCupv6.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u}; +import{f as e}from"./index-CnTyAQzS.js";function r(t){return e({url:"table",method:"post",data:t})}function u(t){return e({url:`table/${t}`,method:"delete"})}function l(t){return e({url:"table",method:"put",data:t})}function n(t){return e({url:"table",method:"get",params:t})}export{r as c,u as d,n as g,l as u}; diff --git a/assets/index-DeRo-7E2.js b/assets/index-CiPLmEPz.js similarity index 99% rename from assets/index-DeRo-7E2.js rename to assets/index-CiPLmEPz.js index 438c9b7d..78291492 100644 --- a/assets/index-DeRo-7E2.js +++ b/assets/index-CiPLmEPz.js @@ -1 +1 @@ -import{g as ft,S as Xe,D as se,s as Be,a as pt,u as Y,L as le,b as Ke,c as ke,d as Ie,i as he,e as mt,r as _t}from"./index-isqCupv6.js";import{av as vt,U as ht,r as z,w as Ge,c as P,t as B,ac as G,v,x as V,A as E,L as _,J as k,T as Je,I as $,K as ge,u as n,ax as gt,F,ay as Se,az as xe,ai as ee,G as K,O as U,M as _e,H as X,a2 as Z,h as de,b as ye,aA as yt,aB as Ye,a0 as Qe,f as Ze,Q as et,g as bt,P as tt,s as wt,al as me,aC as ie,aD as nt,y as be,ab as kt,n as St,R as Ce,S as $e}from"./vue-V9u7w0-f.js";import{u as xt}from"./useWatermark-XzwShjbX.js";/* empty css *//* empty css *//* empty css */import{_ as Ct}from"./index.vue_vue_type_script_setup_true_lang-BX7o_nwo.js";/* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as $t,f as Et,h as Tt,i as Mt,j as Vt,k as fe,l as ot,n as Lt,o as It,p as At,E as we,q as pe,r as Rt,s as Dt,t as st,u as Pt,v as Ee,w as Ft,x as at,y as rt,z as lt,A as Bt,B as zt,C as Wt,D as Nt,F as Ut,G as Ot,H as qt,I as Ht,J as jt,K as Xt,L as Kt,M as Gt,N as Jt,O as Yt,P as Qt,g as Zt,Q as en,R as tn,S as nn,T as on,U as sn,V as an}from"./element-zW3XFg-9.js";import{_ as W}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";function rn(u){u?Be(pt):Be(Xe)}const ce=vt("app",()=>{const u=ht({opened:ft()!==Xe,withoutAnimation:!1}),a=z(se.Desktop);return Ge(()=>u.opened,e=>{rn(e)}),{device:a,sidebar:u,toggleSidebar:e=>{u.opened=!u.opened,u.withoutAnimation=e},closeSidebar:e=>{u.opened=!1,u.withoutAnimation=e},toggleDevice:e=>{a.value=e}}}),it=ce(),ln=P(()=>it.device===se.Mobile),cn=P(()=>it.device===se.Desktop);function ue(){return{isMobile:ln,isDesktop:cn}}const Te=Y(),un=P(()=>Te.layoutMode===le.Left),dn=P(()=>Te.layoutMode===le.Top),fn=P(()=>Te.layoutMode===le.LeftTop);function pn(u){Te.layoutMode=u}function ae(){return{isLeft:un,isTop:dn,isLeftTop:fn,setLayoutMode:pn}}function ve(u,a=document.documentElement){return u!=null&&u.startsWith("--")?getComputedStyle(a).getPropertyValue(u):(console.error("CSS 变量名应以 '--' 开头"),"")}function ze(u,a,m=document.documentElement){if(!(u!=null&&u.startsWith("--"))){console.error("CSS 变量名应以 '--' 开头");return}m.style.setProperty(u,a)}const mn={class:"app-main"},_n={class:"app-scrollbar"},vn=B({__name:"index",setup(u){const a=Ke(),m=Y();return(p,c)=>{const e=G("router-view"),t=$t;return v(),V("section",mn,[E("div",_n,[_(e,null,{default:k(({Component:o,route:s})=>[_(Je,{name:"el-fade-in",mode:"out-in"},{default:k(()=>[(v(),$(gt,{include:n(a).cachedViews},[(v(),$(ge(o),{key:s.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),n(m).showFooter?(v(),$(n(Cn),{key:0})):F("",!0)]),_(t),_(t,{target:".app-scrollbar"})])}}}),Ae=W(vn,[["__scopeId","data-v-131b72d1"]]);var J={},We;function hn(){if(We)return J;We=1,Object.defineProperty(J,"__esModule",{value:!0}),J.TokenData=void 0,J.parse=h,J.compile=S,J.match=w,J.pathToRegexp=L,J.stringify=q;const u="/",a=f=>f,m=/^[$_\p{ID_Start}]$/u,p=/^[$\u200c\u200d\p{ID_Continue}]$/u,c="https://git.new/pathToRegexpError",e={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function t(f){return f.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function o(f){return f.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*s(f){const l=[...f];let i=0;function C(){let x="";if(m.test(l[++i]))for(x+=l[i];p.test(l[++i]);)x+=l[i];else if(l[i]==='"'){let g=i;for(;ib(x,l,i));return x=>{const g=[""];for(const M of C){const[D,...H]=M(x);g[0]+=D,g.push(...H)}return g}}function b(f,l,i){if(f.type==="text")return()=>[f.value];if(f.type==="group"){const x=y(f.tokens,l,i);return g=>{const[M,...D]=x(g);return D.length?[""]:[M]}}const C=i||a;return f.type==="wildcard"&&i!==!1?x=>{const g=x[f.name];if(g==null)return["",f.name];if(!Array.isArray(g)||g.length===0)throw new TypeError(`Expected "${f.name}" to be a non-empty array`);return[g.map((M,D)=>{if(typeof M!="string")throw new TypeError(`Expected "${f.name}/${D}" to be a string`);return C(M)}).join(l)]}:x=>{const g=x[f.name];if(g==null)return["",f.name];if(typeof g!="string")throw new TypeError(`Expected "${f.name}" to be a string`);return[C(g)]}}function w(f,l={}){const{decode:i=decodeURIComponent,delimiter:C=u}=l,{regexp:x,keys:g}=L(f,l),M=g.map(D=>i===!1?a:D.type==="param"?i:H=>H.split(C).map(i));return function(H){const j=x.exec(H);if(!j)return!1;const re=j[0],te=Object.create(null);for(let ne=1;neoe instanceof r?oe:h(oe,l));for(const{tokens:oe}of re)for(const Me of A(oe,0,[])){const dt=I(Me,i,M);D.push(dt)}let te=`^(?:${D.join("|")})`;return g&&(te+=`(?:${o(i)}$)?`),te+=C?"$":`(?=${o(i)}|$)`,{regexp:new RegExp(te,H),keys:M}}function*A(f,l,i){if(l===f.length)return yield i;const C=f[l];if(C.type==="group"){const x=i.slice();for(const g of A(C.tokens,0,x))yield*A(f,l+1,g)}else i.push(C);yield*A(f,l+1,i)}function I(f,l,i){let C="",x="",g=!0;for(let M=0;Mp.test(C)):!1}function T(f){return(f==null?void 0:f.type)!=="text"?!0:!p.test(f.value[0])}return J}var gn=hn();const yn={key:0,class:"no-redirect"},bn=["onClick"],wn=B({__name:"index",setup(u){const a=Se(),m=xe(),{listenerRouteChange:p}=ke(),c=z([]);function e(){c.value=a.matched.filter(s=>{var d,r;return((d=s.meta)==null?void 0:d.title)&&((r=s.meta)==null?void 0:r.breadcrumb)!==!1})}function t(s){return gn.compile(s)(a.params)}function o(s){const{redirect:d,path:r}=s;if(d)return m.push(d);m.push(t(r))}return p(s=>{s.path.startsWith("/redirect/")||e()},!0),(s,d)=>{const r=Tt,h=Et;return v(),$(h,null,{default:k(()=>[(v(!0),V(K,null,ee(n(c),(S,y)=>(v(),$(r,{key:S.path},{default:k(()=>[S.redirect==="noRedirect"||y===n(c).length-1?(v(),V("span",yn,U(S.meta.title),1)):(v(),V("a",{key:1,onClick:_e(b=>o(S),["prevent"])},U(S.meta.title),9,bn))]),_:2},1024))),128))]),_:1})}}}),kn=W(wn,[["__scopeId","data-v-148b927d"]]),Sn={class:"layout-footer"},xn=B({__name:"index",setup(u){const a="V3 Admin Vite";return(m,p)=>(v(),V("footer",Sn," MIT © 2021-PRESENT "+U(n(a)),1))}}),Cn=W(xn,[["__scopeId","data-v-b41fd828"]]),$n=B({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(u,{emit:a}){const m=u,p=a;function c(){p("toggleClick")}return(e,t)=>{const o=fe;return v(),V("div",{onClick:c},[_(o,{size:20,class:"icon"},{default:k(()=>[m.isActive?(v(),$(n(Mt),{key:0})):(v(),$(n(Vt),{key:1}))]),_:1})])}}}),En=W($n,[["__scopeId","data-v-1b10002f"]]),Tn="/v3-admin-vite/assets/logo-text-1-CHuEm79x.png",Mn="/v3-admin-vite/assets/logo-text-2-CVewf8RJ.png",Vn="/v3-admin-vite/assets/logo-BY3URNHQ.png",Ln=["src"],In=["src"],An=B({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(u){const a=u,{isLeft:m,isTop:p}=ae();return(c,e)=>{const t=G("router-link");return v(),V("div",{class:X(["layout-logo-container",{collapse:a.collapse,"layout-mode-top":n(p)}])},[_(Je,{name:"layout-logo-fade"},{default:k(()=>[a.collapse?(v(),$(t,{key:"collapse",to:"/"},{default:k(()=>[E("img",{src:n(Vn),class:"layout-logo"},null,8,Ln)]),_:1})):(v(),$(t,{key:"expand",to:"/"},{default:k(()=>[E("img",{src:n(m)?n(Tn):n(Mn),class:"layout-logo-text"},null,8,In)]),_:1}))]),_:1})],2)}}}),Re=W(An,[["__scopeId","data-v-4c7a3e57"]]),Rn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"两年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"三年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],Dn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],Pn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Fn={class:"card-header"},Bn={class:"card-title"},zn={class:"card-time"},Wn={key:0,class:"card-avatar"},Nn=["src"],Un={class:"card-body"},On=B({__name:"List",props:{data:{}},setup(u){const a=u;return(m,p)=>{const c=ot,e=Lt,t=It;return a.data.length===0?(v(),$(c,{key:0})):(v(!0),V(K,{key:1},ee(a.data,(o,s)=>(v(),$(t,{key:s,shadow:"never",class:"card-container"},{header:k(()=>[E("div",Fn,[E("div",null,[E("span",null,[E("span",Bn,U(o.title),1),o.extra?(v(),$(e,{key:0,type:o.status,effect:"plain",size:"small"},{default:k(()=>[Z(U(o.extra),1)]),_:2},1032,["type"])):F("",!0)]),E("div",zn,U(o.datetime),1)]),o.avatar?(v(),V("div",Wn,[E("img",{src:o.avatar,width:"34"},null,8,Nn)])):F("",!0)])]),default:k(()=>[E("div",Un,U(o.description??"No Data"),1)]),_:2},1024))),128))}}}),qn=W(On,[["__scopeId","data-v-ef66ab12"]]),Hn={class:"notify"},jn={class:"notify-history"},Ne=99,Xn=350,Kn=B({__name:"index",setup(u){const a=P(()=>p.value.reduce((e,t)=>e+t.list.length,0)),m=z("通知"),p=z([{name:"通知",type:"primary",list:Rn},{name:"消息",type:"danger",list:Dn},{name:"待办",type:"warning",list:Pn}]);function c(){we.success(`跳转到${m.value}历史页面`)}return(e,t)=>{const o=fe,s=pe,d=Rt,r=Ee,h=Ft,S=Dt,y=st,b=Pt;return v(),V("div",Hn,[_(b,{placement:"bottom",width:Xn,trigger:"click"},{reference:k(()=>[_(d,{value:n(a),max:Ne,hidden:n(a)===0},{default:k(()=>[_(s,{effect:"dark",content:"消息通知",placement:"bottom"},{default:k(()=>[_(o,{size:20},{default:k(()=>[_(n(At))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:k(()=>[_(S,{modelValue:n(m),"onUpdate:modelValue":t[0]||(t[0]=w=>de(m)?m.value=w:null),class:"demo-tabs",stretch:""},{default:k(()=>[(v(!0),V(K,null,ee(n(p),(w,L)=>(v(),$(h,{key:L,name:w.name},{label:k(()=>[Z(U(w.name)+" ",1),_(d,{value:w.list.length,max:Ne,type:w.type},null,8,["value","type"])]),default:k(()=>[_(r,{height:"400px"},{default:k(()=>[_(qn,{data:w.list},null,8,["data"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),E("div",jn,[_(y,{link:"",onClick:c},{default:k(()=>[Z(" 查看"+U(n(m))+"历史 ",1)]),_:1})])]),_:1})])}}}),Gn=W(Kn,[["__scopeId","data-v-8e50dccb"]]),Ue=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Q=(()=>{if(typeof document>"u")return!1;const u=Ue[0],a={};for(const m of Ue)if((m==null?void 0:m[1])in document){for(const[c,e]of m.entries())a[u[c]]=e;return a}return!1})(),Oe={change:Q.fullscreenchange,error:Q.fullscreenerror};let N={request(u=document.documentElement,a){return new Promise((m,p)=>{const c=()=>{N.off("change",c),m()};N.on("change",c);const e=u[Q.requestFullscreen](a);e instanceof Promise&&e.then(c).catch(p)})},exit(){return new Promise((u,a)=>{if(!N.isFullscreen){u();return}const m=()=>{N.off("change",m),u()};N.on("change",m);const p=document[Q.exitFullscreen]();p instanceof Promise&&p.then(m).catch(a)})},toggle(u,a){return N.isFullscreen?N.exit():N.request(u,a)},onchange(u){N.on("change",u)},onerror(u){N.on("error",u)},on(u,a){const m=Oe[u];m&&document.addEventListener(m,a,!1)},off(u,a){const m=Oe[u];m&&document.removeEventListener(m,a,!1)},raw:Q};Object.defineProperties(N,{isFullscreen:{get:()=>!!document[Q.fullscreenElement]},element:{enumerable:!0,get:()=>document[Q.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Q.fullscreenEnabled]}});Q||(N={isEnabled:!1});const qe="content-large",He="content-full",Jn=B({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(u){const a=u,m=document.body.classList,p=N.isEnabled,c=z(!1),e=P(()=>c.value?a.exitTips:a.openTips),t=P(()=>c.value?"fullscreen-exit":"fullscreen");function o(){const b=document.querySelector(a.element)||void 0;p?N.toggle(b):we.warning("您的浏览器无法工作")}function s(){c.value=N.isFullscreen,c.value||m.remove(qe,He)}ye(b=>{p&&(N.on("change",s),b(()=>{N.off("change",s)}))});const d=z(!1),r=P(()=>d.value?"内容区复原":"内容区放大"),h=P(()=>d.value?"fullscreen-exit":"fullscreen");function S(){d.value=!d.value,m.toggle(qe,d.value)}function y(){d.value&&S(),m.add(He),o()}return(b,w)=>{const L=G("SvgIcon"),A=pe,I=at,O=rt,q=lt;return v(),V("div",null,[a.content?(v(),$(q,{key:1,disabled:n(c)},{dropdown:k(()=>[_(O,null,{default:k(()=>[_(I,{onClick:S},{default:k(()=>[Z(U(n(r)),1)]),_:1}),_(I,{onClick:y},{default:k(()=>w[0]||(w[0]=[Z(" 内容区全屏 ")])),_:1})]),_:1})]),default:k(()=>[_(L,{name:n(h),class:"svg-icon"},null,8,["name"])]),_:1},8,["disabled"])):(v(),$(A,{key:0,effect:"dark",content:n(e),placement:"bottom"},{default:k(()=>[_(L,{name:n(t),onClick:o,class:"svg-icon"},null,8,["name"])]),_:1},8,["content"]))])}}}),ct=W(Jn,[["__scopeId","data-v-d803794b"]]),Yn={class:"search-footer"},Qn={class:"search-footer-item"},Zn={class:"search-footer-item"},eo={class:"search-footer-item"},to={class:"search-footer-total"},no=B({__name:"Footer",props:{total:{}},setup(u){const a=u,{isMobile:m}=ue();return(p,c)=>{const e=G("SvgIcon");return v(),V("div",Yn,[n(m)?F("",!0):(v(),V(K,{key:0},[E("span",Qn,[_(e,{name:"keyboard-enter",class:"svg-icon"}),c[0]||(c[0]=E("span",null,"确认",-1))]),E("span",Zn,[_(e,{name:"keyboard-up",class:"svg-icon"}),_(e,{name:"keyboard-down",class:"svg-icon"}),c[1]||(c[1]=E("span",null,"切换",-1))]),E("span",eo,[_(e,{name:"keyboard-esc",class:"svg-icon"}),c[2]||(c[2]=E("span",null,"关闭",-1))])],64)),E("span",to,"共 "+U(a.total)+" 项",1)])}}}),oo=W(no,[["__scopeId","data-v-03526223"]]),so=["onMouseenter"],ao={class:"result-item-title"},ro=B({__name:"Result",props:yt({data:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(u,{expose:a}){const m=u,p=Ye(u,"modelValue"),c=bt(),e=z(0);function t(r){const h=r.name===p.value;return{background:h?"var(--el-color-primary)":"",color:h?"#ffffff":""}}function o(r){m.isPressUpOrDown||(p.value=r.name)}function s(){e.value=Number((window.innerHeight*.4).toFixed(1))}function d(r){var b;const h=(b=c==null?void 0:c.proxy)==null?void 0:b.$refs[`resultItemRef${r}`];if(!h)return 0;const y=h[0].offsetTop+128;return y>e.value?y-e.value:0}return Qe(()=>{window.addEventListener("resize",s)}),Ze(()=>{s()}),et(()=>{window.removeEventListener("resize",s)}),a({getScrollTop:d}),(r,h)=>{const S=G("SvgIcon");return v(),V("div",null,[(v(!0),V(K,null,ee(m.data,(y,b)=>{var w,L,A;return v(),V("div",{key:b,ref_for:!0,ref:`resultItemRef${b}`,class:"result-item",style:tt(t(y)),onMouseenter:I=>o(y)},[(w=y.meta)!=null&&w.svgIcon?(v(),$(S,{key:0,name:y.meta.svgIcon,class:"svg-icon"},null,8,["name"])):(L=y.meta)!=null&&L.elIcon?(v(),$(ge(y.meta.elIcon),{key:1,class:"el-icon"})):F("",!0),E("span",ao,U((A=y.meta)==null?void 0:A.title),1),p.value&&p.value===y.name?(v(),$(S,{key:2,name:"keyboard-enter",class:"svg-icon"})):F("",!0)],44,so)}),128))])}}}),lo=W(ro,[["__scopeId","data-v-3d2f9eb3"]]),io=B({__name:"Modal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(u){const a=Ye(u,"modelValue"),m=xe(),{isMobile:p}=ue(),c=z(null),e=z(null),t=z(null),o=z(""),s=wt([]),d=z(void 0),r=z(!1),h=P(()=>p.value?"80vw":"40vw"),S=P(()=>Bt(Ie().routes)),y=zt(()=>{var l;const R=b(S.value),T=o.value.toLocaleLowerCase().trim();s.value=R.filter(i=>{var C,x;return o.value?(x=(C=i.meta)==null?void 0:C.title)==null?void 0:x.toLocaleLowerCase().includes(T):!1});const f=(l=s.value)==null?void 0:l.length;d.value=f>0?s.value[0].name:void 0},500);function b(R,T=[]){return R.forEach(f=>{T.push(f),f.children&&b(f.children,T)}),T}function w(){a.value=!1,setTimeout(()=>{o.value="",s.value=[]},200)}function L(R){var f;if(!t.value)return;const T=t.value.getScrollTop(R);(f=e.value)==null||f.setScrollTop(T)}function A(){r.value=!0;const{length:R}=s.value;if(R===0)return;const T=s.value.findIndex(f=>f.name===d.value);if(T===0){const f=s.value[R-1].name;d.value===f&&R>1?(d.value=s.value[R-2].name,L(R-2)):(d.value=f,L(R-1))}else d.value=s.value[T-1].name,L(T-1)}function I(){r.value=!0;const{length:R}=s.value;if(R===0)return;const T=s.value.map(f=>f.name).lastIndexOf(d.value);if(T===R-1){const f=s.value[0].name;d.value===f&&R>1?(d.value=s.value[1].name,L(1)):(d.value=f,L(0))}else d.value=s.value[T+1].name,L(T+1)}function O(){var l;const{length:R}=s.value;if(R===0)return;const T=d.value,f=(l=s.value.find(i=>i.name===T))==null?void 0:l.path;if(f&&he(f))return window.open(f,"_blank","noopener, noreferrer");if(!T)return we.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");try{m.push({name:T})}catch{return we.warning("该菜单有必填的动态参数,无法通过搜索进入")}w()}function q(){r.value=!1}return(R,T)=>{const f=G("SvgIcon"),l=Wt,i=ot,C=Ee,x=Nt;return v(),$(x,{modelValue:a.value,"onUpdate:modelValue":T[2]||(T[2]=g=>a.value=g),"before-close":w,width:n(h),top:"5vh",class:"search-modal__private","append-to-body":"",onOpened:T[3]||(T[3]=g=>{var M;return(M=n(c))==null?void 0:M.focus()}),onClosed:T[4]||(T[4]=g=>{var M;return(M=n(c))==null?void 0:M.blur()}),onKeydown:[me(A,["up"]),me(I,["down"]),me(O,["enter"])],onKeyup:me(q,["up","down"])},{footer:k(()=>[_(oo,{total:n(s).length},null,8,["total"])]),default:k(()=>[_(l,{ref_key:"inputRef",ref:c,modelValue:n(o),"onUpdate:modelValue":T[0]||(T[0]=g=>de(o)?o.value=g:null),placeholder:"搜索菜单",size:"large",clearable:"",onInput:n(y)},{prefix:k(()=>[_(f,{name:"search",class:"svg-icon"})]),_:1},8,["modelValue","onInput"]),n(s).length===0?(v(),$(i,{key:0,description:"暂无搜索结果","image-size":100})):(v(),V(K,{key:1},[T[5]||(T[5]=E("p",null,"搜索结果",-1)),_(C,{ref_key:"scrollbarRef",ref:e,"max-height":"40vh",always:""},{default:k(()=>[_(lo,{ref_key:"resultRef",ref:t,modelValue:n(d),"onUpdate:modelValue":T[1]||(T[1]=g=>de(d)?d.value=g:null),data:n(s),"is-press-up-or-down":n(r),onClick:O},null,8,["modelValue","data","is-press-up-or-down"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),co=B({__name:"index",setup(u){const a=z(!1);function m(){a.value=!0}return(p,c)=>{const e=G("SvgIcon"),t=pe;return v(),V("div",null,[_(t,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:k(()=>[_(e,{name:"search",onClick:m,class:"svg-icon"})]),_:1}),_(io,{modelValue:n(a),"onUpdate:modelValue":c[0]||(c[0]=o=>de(a)?a.value=o:null)},null,8,["modelValue"])])}}}),uo=W(co,[["__scopeId","data-v-3f918a22"]]),fo={class:"navigation-bar"},po={class:"right-menu"},mo={class:"right-menu-avatar"},_o={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},vo={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},ho=B({__name:"index",setup(u){const{isMobile:a}=ue(),{isTop:m}=ae(),p=xe(),c=ce(),e=mt(),t=Y(),{showNotify:o,showThemeSwitch:s,showScreenfull:d,showSearchMenu:r}=ie(t);function h(){c.toggleSidebar(!1)}function S(){e.logout(),p.push("/login")}return(y,b)=>{const w=Ot,L=at,A=rt,I=lt;return v(),V("div",fo,[!n(m)||n(a)?(v(),$(n(En),{key:0,"is-active":n(c).sidebar.opened,class:"hamburger",onToggleClick:h},null,8,["is-active"])):F("",!0),!n(m)||n(a)?(v(),$(n(kn),{key:1,class:"breadcrumb"})):F("",!0),n(m)&&!n(a)?(v(),$(n(Pe),{key:2,class:"sidebar"})):F("",!0),E("div",po,[n(r)?(v(),$(uo,{key:0,class:"right-menu-item"})):F("",!0),n(d)?(v(),$(ct,{key:1,class:"right-menu-item"})):F("",!0),n(s)?(v(),$(Ct,{key:2,class:"right-menu-item"})):F("",!0),n(o)?(v(),$(Gn,{key:3,class:"right-menu-item"})):F("",!0),_(I,{class:"right-menu-item"},{dropdown:k(()=>[_(A,null,{default:k(()=>[E("a",_o,[_(L,null,{default:k(()=>b[0]||(b[0]=[Z("GitHub")])),_:1})]),E("a",vo,[_(L,null,{default:k(()=>b[1]||(b[1]=[Z("Gitee")])),_:1})]),_(L,{divided:"",onClick:S},{default:k(()=>b[2]||(b[2]=[E("span",{style:{display:"block"}},"退出登录",-1)])),_:1})]),_:1})]),default:k(()=>[E("div",mo,[_(w,{icon:n(Ut),size:30},null,8,["icon"]),E("span",null,U(n(e).username),1)])]),_:1})])])}}}),De=W(ho,[["__scopeId","data-v-0e5dcec9"]]),go=B({__name:"index",props:{buttonTop:{default:350}},setup(u){nt(c=>({cd254d9c:m}));const m=`${u.buttonTop}px`,p=z(!1);return(c,e)=>{const t=fe,o=Ht;return v(),V(K,null,[E("div",{class:"handle-button",onClick:e[0]||(e[0]=s=>p.value=!0)},[_(t,{size:24},{default:k(()=>[_(n(qt))]),_:1})]),_(o,{modelValue:n(p),"onUpdate:modelValue":e[1]||(e[1]=s=>de(p)?p.value=s:null),size:"300px","with-header":!1},{default:k(()=>[be(c.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),yo=W(go,[["__scopeId","data-v-10c7604c"]]),bo={class:"select-layout-mode"},wo=B({__name:"SelectLayoutMode",setup(u){const{isLeft:a,isTop:m,isLeftTop:p,setLayoutMode:c}=ae();return(e,t)=>{const o=jt,s=Xt,d=Kt,r=Gt,h=pe;return v(),V("div",bo,[_(h,{content:"左侧模式"},{default:k(()=>[_(r,{class:X(["layout-mode left",{active:n(a)}]),onClick:t[0]||(t[0]=S=>n(c)(n(le).Left))},{default:k(()=>[_(o),_(r,null,{default:k(()=>[_(s),_(d)]),_:1})]),_:1},8,["class"])]),_:1}),_(h,{content:"顶部模式"},{default:k(()=>[_(r,{class:X(["layout-mode top",{active:n(m)}]),onClick:t[1]||(t[1]=S=>n(c)(n(le).Top))},{default:k(()=>[_(s),_(d)]),_:1},8,["class"])]),_:1}),_(h,{content:"混合模式"},{default:k(()=>[_(r,{class:X(["layout-mode left-top",{active:n(p)}]),onClick:t[2]||(t[2]=S=>n(c)(n(le).LeftTop))},{default:k(()=>[_(s),_(r,null,{default:k(()=>[_(o),_(d)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),ko=W(wo,[["__scopeId","data-v-97e756dd"]]),So={class:"setting-container"},xo={class:"setting-name"},Co=B({__name:"index",setup(u){const{isLeft:a}=ae(),m=Y(),{showTagsView:p,showLogo:c,fixedHeader:e,showFooter:t,showNotify:o,showThemeSwitch:s,showScreenfull:d,showSearchMenu:r,cacheTagsView:h,showWatermark:S,showGreyMode:y,showColorWeakness:b}=ie(m),w={显示标签栏:p,"显示 Logo":c,"固定 Header":e,显示页脚:t,显示消息通知:o,显示切换主题按钮:s,显示全屏按钮:d,显示搜索按钮:r,是否缓存标签栏:h,开启系统水印:S,显示灰色模式:y,显示色弱模式:b};ye(()=>{!a.value&&(e.value=!0)});function L(){_t(),location.reload()}return(A,I)=>{const O=Yt,q=Qt,R=st;return v(),V("div",So,[I[1]||(I[1]=E("h4",null,"布局配置",-1)),_(ko),_(O),I[2]||(I[2]=E("h4",null,"功能配置",-1)),(v(),V(K,null,ee(w,(T,f,l)=>E("div",{key:l,class:"setting-item"},[E("span",xo,U(f),1),_(q,{modelValue:T.value,"onUpdate:modelValue":i=>T.value=i,disabled:!n(a)&&f==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),_(R,{type:"danger",icon:n(Jt),onClick:L},{default:k(()=>I[0]||(I[0]=[Z(" 重 置 ")])),_:1},8,["icon"])])}}}),$o=W(Co,[["__scopeId","data-v-19e104fe"]]);var Ve,je;function Eo(){if(je)return Ve;je=1;function u(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function a(c,e){for(var t="",o=0,s=-1,d=0,r,h=0;h<=c.length;++h){if(h2){var S=t.lastIndexOf("/");if(S!==t.length-1){S===-1?(t="",o=0):(t=t.slice(0,S),o=t.length-1-t.lastIndexOf("/")),s=h,d=0;continue}}else if(t.length===2||t.length===1){t="",o=0,s=h,d=0;continue}}e&&(t.length>0?t+="/..":t="..",o=2)}else t.length>0?t+="/"+c.slice(s+1,h):t=c.slice(s+1,h),o=h-s-1;s=h,d=0}else r===46&&d!==-1?++d:d=-1}return t}function m(c,e){var t=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+o:t+c+o:o}var p={resolve:function(){for(var e="",t=!1,o,s=arguments.length-1;s>=-1&&!t;s--){var d;s>=0?d=arguments[s]:(o===void 0&&(o=process.cwd()),d=o),u(d),d.length!==0&&(e=d+"/"+e,t=d.charCodeAt(0)===47)}return e=a(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(u(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return e=a(e,!t),e.length===0&&!t&&(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return u(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":p.normalize(e)},relative:function(e,t){if(u(e),u(t),e===t||(e=p.resolve(e),t=p.resolve(t),e===t))return"";for(var o=1;oy){if(t.charCodeAt(r+w)===47)return t.slice(r+w+1);if(w===0)return t.slice(r+w)}else d>y&&(e.charCodeAt(o+w)===47?b=w:w===0&&(b=0));break}var L=e.charCodeAt(o+w),A=t.charCodeAt(r+w);if(L!==A)break;L===47&&(b=w)}var I="";for(w=o+b+1;w<=s;++w)(w===s||e.charCodeAt(w)===47)&&(I.length===0?I+="..":I+="/..");return I.length>0?I+t.slice(r+b):(r+=b,t.charCodeAt(r)===47&&++r,t.slice(r))},_makeLong:function(e){return e},dirname:function(e){if(u(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,s=-1,d=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),t===47){if(!d){s=r;break}}else d=!1;return s===-1?o?"/":".":o&&s===1?"//":e.slice(0,s)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');u(e);var o=0,s=-1,d=!0,r;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var h=t.length-1,S=-1;for(r=e.length-1;r>=0;--r){var y=e.charCodeAt(r);if(y===47){if(!d){o=r+1;break}}else S===-1&&(d=!1,S=r+1),h>=0&&(y===t.charCodeAt(h)?--h===-1&&(s=r):(h=-1,s=S))}return o===s?s=S:s===-1&&(s=e.length),e.slice(o,s)}else{for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!d){o=r+1;break}}else s===-1&&(d=!1,s=r+1);return s===-1?"":e.slice(o,s)}},extname:function(e){u(e);for(var t=-1,o=0,s=-1,d=!0,r=0,h=e.length-1;h>=0;--h){var S=e.charCodeAt(h);if(S===47){if(!d){o=h+1;break}continue}s===-1&&(d=!1,s=h+1),S===46?t===-1?t=h:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||s===-1||r===0||r===1&&t===s-1&&t===o+1?"":e.slice(t,s)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return m("/",e)},parse:function(e){u(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o=e.charCodeAt(0),s=o===47,d;s?(t.root="/",d=1):d=0;for(var r=-1,h=0,S=-1,y=!0,b=e.length-1,w=0;b>=d;--b){if(o=e.charCodeAt(b),o===47){if(!y){h=b+1;break}continue}S===-1&&(y=!1,S=b+1),o===46?r===-1?r=b:w!==1&&(w=1):r!==-1&&(w=-1)}return r===-1||S===-1||w===0||w===1&&r===S-1&&r===h+1?S!==-1&&(h===0&&s?t.base=t.name=e.slice(1,S):t.base=t.name=e.slice(h,S)):(h===0&&s?(t.name=e.slice(1,r),t.base=e.slice(1,S)):(t.name=e.slice(h,r),t.base=e.slice(h,S)),t.ext=e.slice(r,S)),h>0?t.dir=e.slice(0,h-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return p.posix=p,Ve=p,Ve}var To=Eo();const ut=Zt(To),Mo=["href"],Vo=B({__name:"Link",props:{to:{}},setup(u){const a=u;return(m,p)=>{const c=G("router-link");return n(he)(a.to)?(v(),V("a",{key:0,href:a.to,target:"_blank",rel:"noopener"},[be(m.$slots,"default")],8,Mo)):(v(),$(c,{key:1,to:a.to},{default:k(()=>[be(m.$slots,"default")]),_:3},8,["to"]))}}}),Lo={class:"title"},Io={key:2,class:"title"},Ao=B({__name:"Item",props:{item:{},basePath:{default:""}},setup(u){const a=u,m=P(()=>{var o;return(o=a.item.meta)==null?void 0:o.alwaysShow}),p=P(()=>{var o;return((o=a.item.children)==null?void 0:o.filter(s=>{var d;return!((d=s.meta)!=null&&d.hidden)}))??[]}),c=P(()=>p.value.length),e=P(()=>{const o=c.value;switch(!0){case o>1:return null;case o===1:return p.value[0];default:return{...a.item,path:""}}});function t(o){switch(!0){case he(o):return o;case he(a.basePath):return a.basePath;default:return ut.resolve(a.basePath,o)}}return(o,s)=>{const d=G("SvgIcon"),r=en,h=G("Item",!0),S=tn;return!n(m)&&n(e)&&!n(e).children?(v(),V(K,{key:0},[n(e).meta?(v(),$(Vo,{key:0,to:t(n(e).path)},{default:k(()=>[_(r,{index:t(n(e).path)},kt({default:k(()=>[n(e).meta.svgIcon?(v(),$(d,{key:0,name:n(e).meta.svgIcon,class:"svg-icon"},null,8,["name"])):n(e).meta.elIcon?(v(),$(ge(n(e).meta.elIcon),{key:1,class:"el-icon"})):F("",!0)]),_:2},[n(e).meta.title?{name:"title",fn:k(()=>[E("span",Lo,U(n(e).meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):F("",!0)],64)):(v(),$(S,{key:1,index:t(a.item.path),teleported:""},{title:k(()=>{var y,b,w;return[(y=a.item.meta)!=null&&y.svgIcon?(v(),$(d,{key:0,name:a.item.meta.svgIcon,class:"svg-icon"},null,8,["name"])):(b=a.item.meta)!=null&&b.elIcon?(v(),$(ge(a.item.meta.elIcon),{key:1,class:"el-icon"})):F("",!0),(w=a.item.meta)!=null&&w.title?(v(),V("span",Io,U(a.item.meta.title),1)):F("",!0)]}),default:k(()=>[a.item.children?(v(!0),V(K,{key:0},ee(n(p),y=>(v(),$(h,{key:y.path,item:y,"base-path":t(y.path)},null,8,["item","base-path"]))),128)):F("",!0)]),_:1},8,["index"]))}}}),Ro=W(Ao,[["__scopeId","data-v-c9384764"]]),Do=B({__name:"index",setup(u){nt(R=>({"7f569421":n(q),a27f636a:n(I),"708f3133":n(O),"1fdaa946":n(A)}));const a=ve("--v3-sidebar-menu-bg-color"),m=ve("--v3-sidebar-menu-text-color"),p=ve("--v3-sidebar-menu-active-text-color"),{isMobile:c}=ue(),{isLeft:e,isTop:t}=ae(),o=Se(),s=ce(),d=Ie(),r=Y(),h=P(()=>o.meta.activeMenu||o.path),S=P(()=>d.routes.filter(R=>{var T;return!((T=R.meta)!=null&&T.hidden)})),y=P(()=>!s.sidebar.opened),b=P(()=>e.value&&r.showLogo),w=P(()=>e.value?a:void 0),L=P(()=>e.value?m:void 0),A=P(()=>e.value?p:void 0),I=P(()=>t.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),O=P(()=>t.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),q=P(()=>t.value?"0px":"2px");return(R,T)=>{const f=nn,l=Ee;return v(),V("div",{class:X({"has-logo":n(b)})},[n(b)?(v(),$(n(Re),{key:0,collapse:n(y)},null,8,["collapse"])):F("",!0),_(l,{"wrap-class":"scrollbar-wrapper"},{default:k(()=>[_(f,{"default-active":n(h),collapse:n(y)&&!n(t),"background-color":n(w),"text-color":n(L),"active-text-color":n(A),"collapse-transition":!1,mode:n(t)&&!n(c)?"horizontal":"vertical"},{default:k(()=>[(v(!0),V(K,null,ee(n(S),i=>(v(),$(Ro,{key:i.path,item:i,"base-path":i.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Pe=W(Do,[["__scopeId","data-v-363344d5"]]),Po={class:"scroll-container"},Fo=200,Bo=B({__name:"ScrollPane",props:{tagRefs:{}},setup(u){const a=u,m=Se(),p=Y(),{listenerRouteChange:c}=ke(),e=z(),t=z();let o=0;function s({scrollLeft:y}){o=y}function d({deltaY:y}){y.toString().startsWith("-")?h("left"):h("right")}function r(){const y=t.value.clientWidth,b=e.value.wrapRef.clientWidth,w=y-b-o;return{scrollbarContentRefWidth:y,scrollbarRefWidth:b,lastDistance:w}}function h(y,b=Fo){let w=0;const{scrollbarContentRefWidth:L,scrollbarRefWidth:A,lastDistance:I}=r();A>L||(y==="left"?w=Math.max(0,o-b):w=Math.min(o+b,o+I),e.value.setScrollLeft(w))}function S(){const y=a.tagRefs;for(let b=0;bO){const q=A-O;h("right",q);return}}}return c(()=>{St(S)}),(y,b)=>{const w=fe,L=pe,A=Ee;return v(),V("div",Po,[_(L,{content:"向左滚动标签(超出最大宽度可点击)"},{default:k(()=>[_(w,{class:"arrow left",onClick:b[0]||(b[0]=I=>h("left"))},{default:k(()=>[_(n(on))]),_:1})]),_:1}),_(A,{ref_key:"scrollbarRef",ref:e,onWheelPassive:d,onScroll:s},{default:k(()=>[E("div",{ref_key:"scrollbarContentRef",ref:t,class:"scrollbar-content"},[be(y.$slots,"default",{},void 0,!0)],512)]),_:3},512),_(L,{content:"向右滚动标签(超出最大宽度可点击)"},{default:k(()=>[_(w,{class:"arrow right",onClick:b[1]||(b[1]=I=>h("right"))},{default:k(()=>[_(n(sn))]),_:1})]),_:1}),n(p).showScreenfull?(v(),$(ct,{key:0,content:!0,class:"screenfull"})):F("",!0)])}}}),zo=W(Bo,[["__scopeId","data-v-33b7505c"]]),Wo={class:"tags-view-container"},No=B({__name:"index",setup(u){const a=xe(),m=Se(),p=Ke(),c=Ie(),{listenerRouteChange:e}=ke(),t=z([]),o=z(!1),s=z(0),d=z(0),r=z({});let h=[];function S(l){return l.path===m.path}function y(l){var i;return(i=l.meta)==null?void 0:i.affix}function b(l,i="/"){const C=[];return l.forEach(x=>{if(y(x)){const g=ut.resolve(i,x.path);C.push({fullPath:g,path:g,name:x.name,meta:{...x.meta}})}if(x.children){const g=b(x.children,x.path);C.push(...g)}}),C}function w(){h=b(c.routes);for(const l of h)l.name&&p.addVisitedView(l)}function L(l){l.name&&(p.addVisitedView(l),p.addCachedView(l))}function A(l){p.delCachedView(l),a.replace({path:`/redirect${l.path}`,query:l.query})}function I(l){p.delVisitedView(l),p.delCachedView(l),S(l)&&R(p.visitedViews,l)}function O(){const l=r.value.fullPath;l!==m.path&&l!==void 0&&a.push(l),p.delOthersVisitedViews(r.value),p.delOthersCachedViews(r.value)}function q(l){p.delAllVisitedViews(),p.delAllCachedViews(),!h.some(i=>i.path===m.path)&&R(p.visitedViews,l)}function R(l,i){const C=l.slice(-1)[0],x=C==null?void 0:C.fullPath;x!==void 0?a.push(x):i.name==="Dashboard"?a.push({path:`/redirect${i.path}`,query:i.query}):a.push("/")}function T(l,i){const g=document.body.offsetWidth-100,M=i.clientX+10;d.value=M>g?g:M,s.value=i.clientY,o.value=!0,r.value=l}function f(){o.value=!1}return Ge(o,l=>{l?document.body.addEventListener("click",f):document.body.removeEventListener("click",f)}),w(),e(l=>{L(l)},!0),(l,i)=>{const C=fe,x=G("router-link");return v(),V("div",Wo,[_(zo,{class:"tags-view-wrapper","tag-refs":n(t)},{default:k(()=>[(v(!0),V(K,null,ee(n(p).visitedViews,g=>(v(),$(x,{key:g.path,ref_for:!0,ref_key:"tagRefs",ref:t,class:X([{active:S(g)},"tags-view-item"]),to:{path:g.path,query:g.query},onMouseup:_e(M=>!y(g)&&I(g),["middle"]),onContextmenu:_e(M=>T(g,M),["prevent"])},{default:k(()=>{var M;return[Z(U((M=g.meta)==null?void 0:M.title)+" ",1),y(g)?F("",!0):(v(),$(C,{key:0,size:12,onClick:_e(D=>I(g),["prevent","stop"])},{default:k(()=>[_(n(an))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),Ce(E("ul",{class:"contextmenu",style:tt({left:`${n(d)}px`,top:`${n(s)}px`})},[E("li",{onClick:i[0]||(i[0]=g=>A(n(r)))}," 刷新 "),y(n(r))?F("",!0):(v(),V("li",{key:0,onClick:i[1]||(i[1]=g=>I(n(r)))}," 关闭 ")),E("li",{onClick:O}," 关闭其它 "),E("li",{onClick:i[2]||(i[2]=g=>q(n(r)))}," 关闭所有 ")],4),[[$e,n(o)]])])}}}),Fe=W(No,[["__scopeId","data-v-81d5bd42"]]),Uo=992;function Oo(){const u=ce(),{listenerRouteChange:a}=ke(),m=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const c=m();u.toggleDevice(c?se.Mobile:se.Desktop),c&&u.closeSidebar(!0)}};a(()=>{u.device===se.Mobile&&u.sidebar.opened&&u.closeSidebar(!1)}),Qe(()=>{window.addEventListener("resize",p)}),Ze(()=>{m()&&(u.toggleDevice(se.Mobile),u.closeSidebar(!0))}),et(()=>{window.removeEventListener("resize",p)})}const qo=B({__name:"LeftMode",setup(u){const{isMobile:a}=ue(),{isLeft:m}=ae(),p=ce(),c=Y(),{showTagsView:e,fixedHeader:t}=ie(c),o=P(()=>({hideSidebar:!p.sidebar.opened,openSidebar:p.sidebar.opened,withoutAnimation:p.sidebar.withoutAnimation,mobile:a.value,noLeft:!m.value}));function s(){p.closeSidebar(!1)}return(d,r)=>(v(),V("div",{class:X([n(o),"app-wrapper"])},[n(o).mobile&&n(o).openSidebar?(v(),V("div",{key:0,class:"drawer-bg",onClick:s})):F("",!0),_(n(Pe),{class:"sidebar-container"}),E("div",{class:X([{hasTagsView:n(e)},"main-container"])},[E("div",{class:X([{"fixed-header":n(t)},"layout-header"])},[_(n(De)),Ce(_(n(Fe),null,null,512),[[$e,n(e)]])],2),_(n(Ae),{class:"app-main"})],2)],2))}}),Ho=W(qo,[["__scopeId","data-v-5b4077ad"]]),jo={class:"fixed-header layout-header"},Xo={class:"content"},Ko=B({__name:"LeftTopMode",setup(u){const a=ce(),m=Y(),{showTagsView:p,showLogo:c}=ie(m),e=P(()=>({hideSidebar:!a.sidebar.opened}));return(t,o)=>(v(),V("div",{class:X([n(e),"app-wrapper"])},[E("div",jo,[n(c)?(v(),$(n(Re),{key:0,collapse:!1,class:"logo"})):F("",!0),E("div",Xo,[_(n(De)),Ce(_(n(Fe),null,null,512),[[$e,n(p)]])])]),E("div",{class:X([{hasTagsView:n(p)},"main-container"])},[_(n(Pe),{class:"sidebar-container"}),_(n(Ae),{class:"app-main"})],2)],2))}}),Go=W(Ko,[["__scopeId","data-v-f307bb44"]]),Jo={class:"app-wrapper"},Yo={class:"fixed-header layout-header"},Qo={class:"content"},Zo=B({__name:"TopMode",setup(u){const a=Y(),{showTagsView:m,showLogo:p}=ie(a);return(c,e)=>(v(),V("div",Jo,[E("div",Yo,[E("div",Qo,[n(p)?(v(),$(n(Re),{key:0,collapse:!1,class:"logo"})):F("",!0),_(n(De),{class:"navigation-bar"})]),Ce(_(n(Fe),null,null,512),[[$e,n(m)]])]),E("div",{class:X([{hasTagsView:n(m)},"main-container"])},[_(n(Ae),{class:"app-main"})],2)]))}}),es=W(Zo,[["__scopeId","data-v-9a9151d9"]]),Le="--v3-tagsview-height",gs=B({__name:"index",setup(u){Oo();const{setWatermark:a,clearWatermark:m}=xt(),{isMobile:p}=ue(),{isLeft:c,isTop:e,isLeftTop:t}=ae(),o=Y(),{showSettings:s,showTagsView:d,showWatermark:r}=ie(o),h=ve(Le);return ye(()=>{d.value?ze(Le,h):ze(Le,"0px")}),ye(()=>{r.value?a("V3 Admin Vite"):m()}),(S,y)=>(v(),V("div",null,[n(c)||n(p)?(v(),$(Ho,{key:0})):n(e)?(v(),$(es,{key:1})):n(t)?(v(),$(Go,{key:2})):F("",!0),n(s)?(v(),$(n(yo),{key:3},{default:k(()=>[_(n($o))]),_:1})):F("",!0)]))}});export{gs as default}; +import{g as ft,S as Xe,D as se,s as Be,a as pt,u as Y,L as le,b as Ke,c as ke,d as Ie,i as he,e as mt,r as _t}from"./index-CnTyAQzS.js";import{av as vt,U as ht,r as z,w as Ge,c as P,t as B,ac as G,v,x as V,A as E,L as _,J as k,T as Je,I as $,K as ge,u as n,ax as gt,F,ay as Se,az as xe,ai as ee,G as K,O as U,M as _e,H as X,a2 as Z,h as de,b as ye,aA as yt,aB as Ye,a0 as Qe,f as Ze,Q as et,g as bt,P as tt,s as wt,al as me,aC as ie,aD as nt,y as be,ab as kt,n as St,R as Ce,S as $e}from"./vue-V9u7w0-f.js";import{u as xt}from"./useWatermark-XzwShjbX.js";/* empty css *//* empty css *//* empty css */import{_ as Ct}from"./index.vue_vue_type_script_setup_true_lang-E1oEHwr8.js";/* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as $t,f as Et,h as Tt,i as Mt,j as Vt,k as fe,l as ot,n as Lt,o as It,p as At,E as we,q as pe,r as Rt,s as Dt,t as st,u as Pt,v as Ee,w as Ft,x as at,y as rt,z as lt,A as Bt,B as zt,C as Wt,D as Nt,F as Ut,G as Ot,H as qt,I as Ht,J as jt,K as Xt,L as Kt,M as Gt,N as Jt,O as Yt,P as Qt,g as Zt,Q as en,R as tn,S as nn,T as on,U as sn,V as an}from"./element-zW3XFg-9.js";import{_ as W}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";function rn(u){u?Be(pt):Be(Xe)}const ce=vt("app",()=>{const u=ht({opened:ft()!==Xe,withoutAnimation:!1}),a=z(se.Desktop);return Ge(()=>u.opened,e=>{rn(e)}),{device:a,sidebar:u,toggleSidebar:e=>{u.opened=!u.opened,u.withoutAnimation=e},closeSidebar:e=>{u.opened=!1,u.withoutAnimation=e},toggleDevice:e=>{a.value=e}}}),it=ce(),ln=P(()=>it.device===se.Mobile),cn=P(()=>it.device===se.Desktop);function ue(){return{isMobile:ln,isDesktop:cn}}const Te=Y(),un=P(()=>Te.layoutMode===le.Left),dn=P(()=>Te.layoutMode===le.Top),fn=P(()=>Te.layoutMode===le.LeftTop);function pn(u){Te.layoutMode=u}function ae(){return{isLeft:un,isTop:dn,isLeftTop:fn,setLayoutMode:pn}}function ve(u,a=document.documentElement){return u!=null&&u.startsWith("--")?getComputedStyle(a).getPropertyValue(u):(console.error("CSS 变量名应以 '--' 开头"),"")}function ze(u,a,m=document.documentElement){if(!(u!=null&&u.startsWith("--"))){console.error("CSS 变量名应以 '--' 开头");return}m.style.setProperty(u,a)}const mn={class:"app-main"},_n={class:"app-scrollbar"},vn=B({__name:"index",setup(u){const a=Ke(),m=Y();return(p,c)=>{const e=G("router-view"),t=$t;return v(),V("section",mn,[E("div",_n,[_(e,null,{default:k(({Component:o,route:s})=>[_(Je,{name:"el-fade-in",mode:"out-in"},{default:k(()=>[(v(),$(gt,{include:n(a).cachedViews},[(v(),$(ge(o),{key:s.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),n(m).showFooter?(v(),$(n(Cn),{key:0})):F("",!0)]),_(t),_(t,{target:".app-scrollbar"})])}}}),Ae=W(vn,[["__scopeId","data-v-131b72d1"]]);var J={},We;function hn(){if(We)return J;We=1,Object.defineProperty(J,"__esModule",{value:!0}),J.TokenData=void 0,J.parse=h,J.compile=S,J.match=w,J.pathToRegexp=L,J.stringify=q;const u="/",a=f=>f,m=/^[$_\p{ID_Start}]$/u,p=/^[$\u200c\u200d\p{ID_Continue}]$/u,c="https://git.new/pathToRegexpError",e={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function t(f){return f.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function o(f){return f.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*s(f){const l=[...f];let i=0;function C(){let x="";if(m.test(l[++i]))for(x+=l[i];p.test(l[++i]);)x+=l[i];else if(l[i]==='"'){let g=i;for(;ib(x,l,i));return x=>{const g=[""];for(const M of C){const[D,...H]=M(x);g[0]+=D,g.push(...H)}return g}}function b(f,l,i){if(f.type==="text")return()=>[f.value];if(f.type==="group"){const x=y(f.tokens,l,i);return g=>{const[M,...D]=x(g);return D.length?[""]:[M]}}const C=i||a;return f.type==="wildcard"&&i!==!1?x=>{const g=x[f.name];if(g==null)return["",f.name];if(!Array.isArray(g)||g.length===0)throw new TypeError(`Expected "${f.name}" to be a non-empty array`);return[g.map((M,D)=>{if(typeof M!="string")throw new TypeError(`Expected "${f.name}/${D}" to be a string`);return C(M)}).join(l)]}:x=>{const g=x[f.name];if(g==null)return["",f.name];if(typeof g!="string")throw new TypeError(`Expected "${f.name}" to be a string`);return[C(g)]}}function w(f,l={}){const{decode:i=decodeURIComponent,delimiter:C=u}=l,{regexp:x,keys:g}=L(f,l),M=g.map(D=>i===!1?a:D.type==="param"?i:H=>H.split(C).map(i));return function(H){const j=x.exec(H);if(!j)return!1;const re=j[0],te=Object.create(null);for(let ne=1;neoe instanceof r?oe:h(oe,l));for(const{tokens:oe}of re)for(const Me of A(oe,0,[])){const dt=I(Me,i,M);D.push(dt)}let te=`^(?:${D.join("|")})`;return g&&(te+=`(?:${o(i)}$)?`),te+=C?"$":`(?=${o(i)}|$)`,{regexp:new RegExp(te,H),keys:M}}function*A(f,l,i){if(l===f.length)return yield i;const C=f[l];if(C.type==="group"){const x=i.slice();for(const g of A(C.tokens,0,x))yield*A(f,l+1,g)}else i.push(C);yield*A(f,l+1,i)}function I(f,l,i){let C="",x="",g=!0;for(let M=0;Mp.test(C)):!1}function T(f){return(f==null?void 0:f.type)!=="text"?!0:!p.test(f.value[0])}return J}var gn=hn();const yn={key:0,class:"no-redirect"},bn=["onClick"],wn=B({__name:"index",setup(u){const a=Se(),m=xe(),{listenerRouteChange:p}=ke(),c=z([]);function e(){c.value=a.matched.filter(s=>{var d,r;return((d=s.meta)==null?void 0:d.title)&&((r=s.meta)==null?void 0:r.breadcrumb)!==!1})}function t(s){return gn.compile(s)(a.params)}function o(s){const{redirect:d,path:r}=s;if(d)return m.push(d);m.push(t(r))}return p(s=>{s.path.startsWith("/redirect/")||e()},!0),(s,d)=>{const r=Tt,h=Et;return v(),$(h,null,{default:k(()=>[(v(!0),V(K,null,ee(n(c),(S,y)=>(v(),$(r,{key:S.path},{default:k(()=>[S.redirect==="noRedirect"||y===n(c).length-1?(v(),V("span",yn,U(S.meta.title),1)):(v(),V("a",{key:1,onClick:_e(b=>o(S),["prevent"])},U(S.meta.title),9,bn))]),_:2},1024))),128))]),_:1})}}}),kn=W(wn,[["__scopeId","data-v-148b927d"]]),Sn={class:"layout-footer"},xn=B({__name:"index",setup(u){const a="V3 Admin Vite";return(m,p)=>(v(),V("footer",Sn," MIT © 2021-PRESENT "+U(n(a)),1))}}),Cn=W(xn,[["__scopeId","data-v-b41fd828"]]),$n=B({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(u,{emit:a}){const m=u,p=a;function c(){p("toggleClick")}return(e,t)=>{const o=fe;return v(),V("div",{onClick:c},[_(o,{size:20,class:"icon"},{default:k(()=>[m.isActive?(v(),$(n(Mt),{key:0})):(v(),$(n(Vt),{key:1}))]),_:1})])}}}),En=W($n,[["__scopeId","data-v-1b10002f"]]),Tn="/v3-admin-vite/assets/logo-text-1-CHuEm79x.png",Mn="/v3-admin-vite/assets/logo-text-2-CVewf8RJ.png",Vn="/v3-admin-vite/assets/logo-BY3URNHQ.png",Ln=["src"],In=["src"],An=B({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(u){const a=u,{isLeft:m,isTop:p}=ae();return(c,e)=>{const t=G("router-link");return v(),V("div",{class:X(["layout-logo-container",{collapse:a.collapse,"layout-mode-top":n(p)}])},[_(Je,{name:"layout-logo-fade"},{default:k(()=>[a.collapse?(v(),$(t,{key:"collapse",to:"/"},{default:k(()=>[E("img",{src:n(Vn),class:"layout-logo"},null,8,Ln)]),_:1})):(v(),$(t,{key:"expand",to:"/"},{default:k(()=>[E("img",{src:n(m)?n(Tn):n(Mn),class:"layout-logo-text"},null,8,In)]),_:1}))]),_:1})],2)}}}),Re=W(An,[["__scopeId","data-v-4c7a3e57"]]),Rn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin Vite 上线啦",datetime:"两年前",description:"一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png",title:"V3 Admin 上线啦",datetime:"三年前",description:"一个中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus 和 Pinia"}],Dn=[{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自楚门的世界",description:"如果再也不能见到你,祝你早安、午安和晚安",datetime:"1998-06-05"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自大话西游",description:"如果非要在这份爱上加上一个期限,我希望是一万年",datetime:"1995-02-04"},{avatar:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png",title:"来自龙猫",description:"心存善意,定能途遇天使",datetime:"1988-04-16"}],Pn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Fn={class:"card-header"},Bn={class:"card-title"},zn={class:"card-time"},Wn={key:0,class:"card-avatar"},Nn=["src"],Un={class:"card-body"},On=B({__name:"List",props:{data:{}},setup(u){const a=u;return(m,p)=>{const c=ot,e=Lt,t=It;return a.data.length===0?(v(),$(c,{key:0})):(v(!0),V(K,{key:1},ee(a.data,(o,s)=>(v(),$(t,{key:s,shadow:"never",class:"card-container"},{header:k(()=>[E("div",Fn,[E("div",null,[E("span",null,[E("span",Bn,U(o.title),1),o.extra?(v(),$(e,{key:0,type:o.status,effect:"plain",size:"small"},{default:k(()=>[Z(U(o.extra),1)]),_:2},1032,["type"])):F("",!0)]),E("div",zn,U(o.datetime),1)]),o.avatar?(v(),V("div",Wn,[E("img",{src:o.avatar,width:"34"},null,8,Nn)])):F("",!0)])]),default:k(()=>[E("div",Un,U(o.description??"No Data"),1)]),_:2},1024))),128))}}}),qn=W(On,[["__scopeId","data-v-ef66ab12"]]),Hn={class:"notify"},jn={class:"notify-history"},Ne=99,Xn=350,Kn=B({__name:"index",setup(u){const a=P(()=>p.value.reduce((e,t)=>e+t.list.length,0)),m=z("通知"),p=z([{name:"通知",type:"primary",list:Rn},{name:"消息",type:"danger",list:Dn},{name:"待办",type:"warning",list:Pn}]);function c(){we.success(`跳转到${m.value}历史页面`)}return(e,t)=>{const o=fe,s=pe,d=Rt,r=Ee,h=Ft,S=Dt,y=st,b=Pt;return v(),V("div",Hn,[_(b,{placement:"bottom",width:Xn,trigger:"click"},{reference:k(()=>[_(d,{value:n(a),max:Ne,hidden:n(a)===0},{default:k(()=>[_(s,{effect:"dark",content:"消息通知",placement:"bottom"},{default:k(()=>[_(o,{size:20},{default:k(()=>[_(n(At))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:k(()=>[_(S,{modelValue:n(m),"onUpdate:modelValue":t[0]||(t[0]=w=>de(m)?m.value=w:null),class:"demo-tabs",stretch:""},{default:k(()=>[(v(!0),V(K,null,ee(n(p),(w,L)=>(v(),$(h,{key:L,name:w.name},{label:k(()=>[Z(U(w.name)+" ",1),_(d,{value:w.list.length,max:Ne,type:w.type},null,8,["value","type"])]),default:k(()=>[_(r,{height:"400px"},{default:k(()=>[_(qn,{data:w.list},null,8,["data"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),E("div",jn,[_(y,{link:"",onClick:c},{default:k(()=>[Z(" 查看"+U(n(m))+"历史 ",1)]),_:1})])]),_:1})])}}}),Gn=W(Kn,[["__scopeId","data-v-8e50dccb"]]),Ue=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Q=(()=>{if(typeof document>"u")return!1;const u=Ue[0],a={};for(const m of Ue)if((m==null?void 0:m[1])in document){for(const[c,e]of m.entries())a[u[c]]=e;return a}return!1})(),Oe={change:Q.fullscreenchange,error:Q.fullscreenerror};let N={request(u=document.documentElement,a){return new Promise((m,p)=>{const c=()=>{N.off("change",c),m()};N.on("change",c);const e=u[Q.requestFullscreen](a);e instanceof Promise&&e.then(c).catch(p)})},exit(){return new Promise((u,a)=>{if(!N.isFullscreen){u();return}const m=()=>{N.off("change",m),u()};N.on("change",m);const p=document[Q.exitFullscreen]();p instanceof Promise&&p.then(m).catch(a)})},toggle(u,a){return N.isFullscreen?N.exit():N.request(u,a)},onchange(u){N.on("change",u)},onerror(u){N.on("error",u)},on(u,a){const m=Oe[u];m&&document.addEventListener(m,a,!1)},off(u,a){const m=Oe[u];m&&document.removeEventListener(m,a,!1)},raw:Q};Object.defineProperties(N,{isFullscreen:{get:()=>!!document[Q.fullscreenElement]},element:{enumerable:!0,get:()=>document[Q.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Q.fullscreenEnabled]}});Q||(N={isEnabled:!1});const qe="content-large",He="content-full",Jn=B({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(u){const a=u,m=document.body.classList,p=N.isEnabled,c=z(!1),e=P(()=>c.value?a.exitTips:a.openTips),t=P(()=>c.value?"fullscreen-exit":"fullscreen");function o(){const b=document.querySelector(a.element)||void 0;p?N.toggle(b):we.warning("您的浏览器无法工作")}function s(){c.value=N.isFullscreen,c.value||m.remove(qe,He)}ye(b=>{p&&(N.on("change",s),b(()=>{N.off("change",s)}))});const d=z(!1),r=P(()=>d.value?"内容区复原":"内容区放大"),h=P(()=>d.value?"fullscreen-exit":"fullscreen");function S(){d.value=!d.value,m.toggle(qe,d.value)}function y(){d.value&&S(),m.add(He),o()}return(b,w)=>{const L=G("SvgIcon"),A=pe,I=at,O=rt,q=lt;return v(),V("div",null,[a.content?(v(),$(q,{key:1,disabled:n(c)},{dropdown:k(()=>[_(O,null,{default:k(()=>[_(I,{onClick:S},{default:k(()=>[Z(U(n(r)),1)]),_:1}),_(I,{onClick:y},{default:k(()=>w[0]||(w[0]=[Z(" 内容区全屏 ")])),_:1})]),_:1})]),default:k(()=>[_(L,{name:n(h),class:"svg-icon"},null,8,["name"])]),_:1},8,["disabled"])):(v(),$(A,{key:0,effect:"dark",content:n(e),placement:"bottom"},{default:k(()=>[_(L,{name:n(t),onClick:o,class:"svg-icon"},null,8,["name"])]),_:1},8,["content"]))])}}}),ct=W(Jn,[["__scopeId","data-v-d803794b"]]),Yn={class:"search-footer"},Qn={class:"search-footer-item"},Zn={class:"search-footer-item"},eo={class:"search-footer-item"},to={class:"search-footer-total"},no=B({__name:"Footer",props:{total:{}},setup(u){const a=u,{isMobile:m}=ue();return(p,c)=>{const e=G("SvgIcon");return v(),V("div",Yn,[n(m)?F("",!0):(v(),V(K,{key:0},[E("span",Qn,[_(e,{name:"keyboard-enter",class:"svg-icon"}),c[0]||(c[0]=E("span",null,"确认",-1))]),E("span",Zn,[_(e,{name:"keyboard-up",class:"svg-icon"}),_(e,{name:"keyboard-down",class:"svg-icon"}),c[1]||(c[1]=E("span",null,"切换",-1))]),E("span",eo,[_(e,{name:"keyboard-esc",class:"svg-icon"}),c[2]||(c[2]=E("span",null,"关闭",-1))])],64)),E("span",to,"共 "+U(a.total)+" 项",1)])}}}),oo=W(no,[["__scopeId","data-v-03526223"]]),so=["onMouseenter"],ao={class:"result-item-title"},ro=B({__name:"Result",props:yt({data:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(u,{expose:a}){const m=u,p=Ye(u,"modelValue"),c=bt(),e=z(0);function t(r){const h=r.name===p.value;return{background:h?"var(--el-color-primary)":"",color:h?"#ffffff":""}}function o(r){m.isPressUpOrDown||(p.value=r.name)}function s(){e.value=Number((window.innerHeight*.4).toFixed(1))}function d(r){var b;const h=(b=c==null?void 0:c.proxy)==null?void 0:b.$refs[`resultItemRef${r}`];if(!h)return 0;const y=h[0].offsetTop+128;return y>e.value?y-e.value:0}return Qe(()=>{window.addEventListener("resize",s)}),Ze(()=>{s()}),et(()=>{window.removeEventListener("resize",s)}),a({getScrollTop:d}),(r,h)=>{const S=G("SvgIcon");return v(),V("div",null,[(v(!0),V(K,null,ee(m.data,(y,b)=>{var w,L,A;return v(),V("div",{key:b,ref_for:!0,ref:`resultItemRef${b}`,class:"result-item",style:tt(t(y)),onMouseenter:I=>o(y)},[(w=y.meta)!=null&&w.svgIcon?(v(),$(S,{key:0,name:y.meta.svgIcon,class:"svg-icon"},null,8,["name"])):(L=y.meta)!=null&&L.elIcon?(v(),$(ge(y.meta.elIcon),{key:1,class:"el-icon"})):F("",!0),E("span",ao,U((A=y.meta)==null?void 0:A.title),1),p.value&&p.value===y.name?(v(),$(S,{key:2,name:"keyboard-enter",class:"svg-icon"})):F("",!0)],44,so)}),128))])}}}),lo=W(ro,[["__scopeId","data-v-3d2f9eb3"]]),io=B({__name:"Modal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(u){const a=Ye(u,"modelValue"),m=xe(),{isMobile:p}=ue(),c=z(null),e=z(null),t=z(null),o=z(""),s=wt([]),d=z(void 0),r=z(!1),h=P(()=>p.value?"80vw":"40vw"),S=P(()=>Bt(Ie().routes)),y=zt(()=>{var l;const R=b(S.value),T=o.value.toLocaleLowerCase().trim();s.value=R.filter(i=>{var C,x;return o.value?(x=(C=i.meta)==null?void 0:C.title)==null?void 0:x.toLocaleLowerCase().includes(T):!1});const f=(l=s.value)==null?void 0:l.length;d.value=f>0?s.value[0].name:void 0},500);function b(R,T=[]){return R.forEach(f=>{T.push(f),f.children&&b(f.children,T)}),T}function w(){a.value=!1,setTimeout(()=>{o.value="",s.value=[]},200)}function L(R){var f;if(!t.value)return;const T=t.value.getScrollTop(R);(f=e.value)==null||f.setScrollTop(T)}function A(){r.value=!0;const{length:R}=s.value;if(R===0)return;const T=s.value.findIndex(f=>f.name===d.value);if(T===0){const f=s.value[R-1].name;d.value===f&&R>1?(d.value=s.value[R-2].name,L(R-2)):(d.value=f,L(R-1))}else d.value=s.value[T-1].name,L(T-1)}function I(){r.value=!0;const{length:R}=s.value;if(R===0)return;const T=s.value.map(f=>f.name).lastIndexOf(d.value);if(T===R-1){const f=s.value[0].name;d.value===f&&R>1?(d.value=s.value[1].name,L(1)):(d.value=f,L(0))}else d.value=s.value[T+1].name,L(T+1)}function O(){var l;const{length:R}=s.value;if(R===0)return;const T=d.value,f=(l=s.value.find(i=>i.name===T))==null?void 0:l.path;if(f&&he(f))return window.open(f,"_blank","noopener, noreferrer");if(!T)return we.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");try{m.push({name:T})}catch{return we.warning("该菜单有必填的动态参数,无法通过搜索进入")}w()}function q(){r.value=!1}return(R,T)=>{const f=G("SvgIcon"),l=Wt,i=ot,C=Ee,x=Nt;return v(),$(x,{modelValue:a.value,"onUpdate:modelValue":T[2]||(T[2]=g=>a.value=g),"before-close":w,width:n(h),top:"5vh",class:"search-modal__private","append-to-body":"",onOpened:T[3]||(T[3]=g=>{var M;return(M=n(c))==null?void 0:M.focus()}),onClosed:T[4]||(T[4]=g=>{var M;return(M=n(c))==null?void 0:M.blur()}),onKeydown:[me(A,["up"]),me(I,["down"]),me(O,["enter"])],onKeyup:me(q,["up","down"])},{footer:k(()=>[_(oo,{total:n(s).length},null,8,["total"])]),default:k(()=>[_(l,{ref_key:"inputRef",ref:c,modelValue:n(o),"onUpdate:modelValue":T[0]||(T[0]=g=>de(o)?o.value=g:null),placeholder:"搜索菜单",size:"large",clearable:"",onInput:n(y)},{prefix:k(()=>[_(f,{name:"search",class:"svg-icon"})]),_:1},8,["modelValue","onInput"]),n(s).length===0?(v(),$(i,{key:0,description:"暂无搜索结果","image-size":100})):(v(),V(K,{key:1},[T[5]||(T[5]=E("p",null,"搜索结果",-1)),_(C,{ref_key:"scrollbarRef",ref:e,"max-height":"40vh",always:""},{default:k(()=>[_(lo,{ref_key:"resultRef",ref:t,modelValue:n(d),"onUpdate:modelValue":T[1]||(T[1]=g=>de(d)?d.value=g:null),data:n(s),"is-press-up-or-down":n(r),onClick:O},null,8,["modelValue","data","is-press-up-or-down"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),co=B({__name:"index",setup(u){const a=z(!1);function m(){a.value=!0}return(p,c)=>{const e=G("SvgIcon"),t=pe;return v(),V("div",null,[_(t,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:k(()=>[_(e,{name:"search",onClick:m,class:"svg-icon"})]),_:1}),_(io,{modelValue:n(a),"onUpdate:modelValue":c[0]||(c[0]=o=>de(a)?a.value=o:null)},null,8,["modelValue"])])}}}),uo=W(co,[["__scopeId","data-v-3f918a22"]]),fo={class:"navigation-bar"},po={class:"right-menu"},mo={class:"right-menu-avatar"},_o={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},vo={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},ho=B({__name:"index",setup(u){const{isMobile:a}=ue(),{isTop:m}=ae(),p=xe(),c=ce(),e=mt(),t=Y(),{showNotify:o,showThemeSwitch:s,showScreenfull:d,showSearchMenu:r}=ie(t);function h(){c.toggleSidebar(!1)}function S(){e.logout(),p.push("/login")}return(y,b)=>{const w=Ot,L=at,A=rt,I=lt;return v(),V("div",fo,[!n(m)||n(a)?(v(),$(n(En),{key:0,"is-active":n(c).sidebar.opened,class:"hamburger",onToggleClick:h},null,8,["is-active"])):F("",!0),!n(m)||n(a)?(v(),$(n(kn),{key:1,class:"breadcrumb"})):F("",!0),n(m)&&!n(a)?(v(),$(n(Pe),{key:2,class:"sidebar"})):F("",!0),E("div",po,[n(r)?(v(),$(uo,{key:0,class:"right-menu-item"})):F("",!0),n(d)?(v(),$(ct,{key:1,class:"right-menu-item"})):F("",!0),n(s)?(v(),$(Ct,{key:2,class:"right-menu-item"})):F("",!0),n(o)?(v(),$(Gn,{key:3,class:"right-menu-item"})):F("",!0),_(I,{class:"right-menu-item"},{dropdown:k(()=>[_(A,null,{default:k(()=>[E("a",_o,[_(L,null,{default:k(()=>b[0]||(b[0]=[Z("GitHub")])),_:1})]),E("a",vo,[_(L,null,{default:k(()=>b[1]||(b[1]=[Z("Gitee")])),_:1})]),_(L,{divided:"",onClick:S},{default:k(()=>b[2]||(b[2]=[E("span",{style:{display:"block"}},"退出登录",-1)])),_:1})]),_:1})]),default:k(()=>[E("div",mo,[_(w,{icon:n(Ut),size:30},null,8,["icon"]),E("span",null,U(n(e).username),1)])]),_:1})])])}}}),De=W(ho,[["__scopeId","data-v-0e5dcec9"]]),go=B({__name:"index",props:{buttonTop:{default:350}},setup(u){nt(c=>({cd254d9c:m}));const m=`${u.buttonTop}px`,p=z(!1);return(c,e)=>{const t=fe,o=Ht;return v(),V(K,null,[E("div",{class:"handle-button",onClick:e[0]||(e[0]=s=>p.value=!0)},[_(t,{size:24},{default:k(()=>[_(n(qt))]),_:1})]),_(o,{modelValue:n(p),"onUpdate:modelValue":e[1]||(e[1]=s=>de(p)?p.value=s:null),size:"300px","with-header":!1},{default:k(()=>[be(c.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),yo=W(go,[["__scopeId","data-v-10c7604c"]]),bo={class:"select-layout-mode"},wo=B({__name:"SelectLayoutMode",setup(u){const{isLeft:a,isTop:m,isLeftTop:p,setLayoutMode:c}=ae();return(e,t)=>{const o=jt,s=Xt,d=Kt,r=Gt,h=pe;return v(),V("div",bo,[_(h,{content:"左侧模式"},{default:k(()=>[_(r,{class:X(["layout-mode left",{active:n(a)}]),onClick:t[0]||(t[0]=S=>n(c)(n(le).Left))},{default:k(()=>[_(o),_(r,null,{default:k(()=>[_(s),_(d)]),_:1})]),_:1},8,["class"])]),_:1}),_(h,{content:"顶部模式"},{default:k(()=>[_(r,{class:X(["layout-mode top",{active:n(m)}]),onClick:t[1]||(t[1]=S=>n(c)(n(le).Top))},{default:k(()=>[_(s),_(d)]),_:1},8,["class"])]),_:1}),_(h,{content:"混合模式"},{default:k(()=>[_(r,{class:X(["layout-mode left-top",{active:n(p)}]),onClick:t[2]||(t[2]=S=>n(c)(n(le).LeftTop))},{default:k(()=>[_(s),_(r,null,{default:k(()=>[_(o),_(d)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),ko=W(wo,[["__scopeId","data-v-97e756dd"]]),So={class:"setting-container"},xo={class:"setting-name"},Co=B({__name:"index",setup(u){const{isLeft:a}=ae(),m=Y(),{showTagsView:p,showLogo:c,fixedHeader:e,showFooter:t,showNotify:o,showThemeSwitch:s,showScreenfull:d,showSearchMenu:r,cacheTagsView:h,showWatermark:S,showGreyMode:y,showColorWeakness:b}=ie(m),w={显示标签栏:p,"显示 Logo":c,"固定 Header":e,显示页脚:t,显示消息通知:o,显示切换主题按钮:s,显示全屏按钮:d,显示搜索按钮:r,是否缓存标签栏:h,开启系统水印:S,显示灰色模式:y,显示色弱模式:b};ye(()=>{!a.value&&(e.value=!0)});function L(){_t(),location.reload()}return(A,I)=>{const O=Yt,q=Qt,R=st;return v(),V("div",So,[I[1]||(I[1]=E("h4",null,"布局配置",-1)),_(ko),_(O),I[2]||(I[2]=E("h4",null,"功能配置",-1)),(v(),V(K,null,ee(w,(T,f,l)=>E("div",{key:l,class:"setting-item"},[E("span",xo,U(f),1),_(q,{modelValue:T.value,"onUpdate:modelValue":i=>T.value=i,disabled:!n(a)&&f==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),_(R,{type:"danger",icon:n(Jt),onClick:L},{default:k(()=>I[0]||(I[0]=[Z(" 重 置 ")])),_:1},8,["icon"])])}}}),$o=W(Co,[["__scopeId","data-v-19e104fe"]]);var Ve,je;function Eo(){if(je)return Ve;je=1;function u(c){if(typeof c!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(c))}function a(c,e){for(var t="",o=0,s=-1,d=0,r,h=0;h<=c.length;++h){if(h2){var S=t.lastIndexOf("/");if(S!==t.length-1){S===-1?(t="",o=0):(t=t.slice(0,S),o=t.length-1-t.lastIndexOf("/")),s=h,d=0;continue}}else if(t.length===2||t.length===1){t="",o=0,s=h,d=0;continue}}e&&(t.length>0?t+="/..":t="..",o=2)}else t.length>0?t+="/"+c.slice(s+1,h):t=c.slice(s+1,h),o=h-s-1;s=h,d=0}else r===46&&d!==-1?++d:d=-1}return t}function m(c,e){var t=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+o:t+c+o:o}var p={resolve:function(){for(var e="",t=!1,o,s=arguments.length-1;s>=-1&&!t;s--){var d;s>=0?d=arguments[s]:(o===void 0&&(o=process.cwd()),d=o),u(d),d.length!==0&&(e=d+"/"+e,t=d.charCodeAt(0)===47)}return e=a(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(u(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return e=a(e,!t),e.length===0&&!t&&(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return u(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":p.normalize(e)},relative:function(e,t){if(u(e),u(t),e===t||(e=p.resolve(e),t=p.resolve(t),e===t))return"";for(var o=1;oy){if(t.charCodeAt(r+w)===47)return t.slice(r+w+1);if(w===0)return t.slice(r+w)}else d>y&&(e.charCodeAt(o+w)===47?b=w:w===0&&(b=0));break}var L=e.charCodeAt(o+w),A=t.charCodeAt(r+w);if(L!==A)break;L===47&&(b=w)}var I="";for(w=o+b+1;w<=s;++w)(w===s||e.charCodeAt(w)===47)&&(I.length===0?I+="..":I+="/..");return I.length>0?I+t.slice(r+b):(r+=b,t.charCodeAt(r)===47&&++r,t.slice(r))},_makeLong:function(e){return e},dirname:function(e){if(u(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,s=-1,d=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),t===47){if(!d){s=r;break}}else d=!1;return s===-1?o?"/":".":o&&s===1?"//":e.slice(0,s)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');u(e);var o=0,s=-1,d=!0,r;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var h=t.length-1,S=-1;for(r=e.length-1;r>=0;--r){var y=e.charCodeAt(r);if(y===47){if(!d){o=r+1;break}}else S===-1&&(d=!1,S=r+1),h>=0&&(y===t.charCodeAt(h)?--h===-1&&(s=r):(h=-1,s=S))}return o===s?s=S:s===-1&&(s=e.length),e.slice(o,s)}else{for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!d){o=r+1;break}}else s===-1&&(d=!1,s=r+1);return s===-1?"":e.slice(o,s)}},extname:function(e){u(e);for(var t=-1,o=0,s=-1,d=!0,r=0,h=e.length-1;h>=0;--h){var S=e.charCodeAt(h);if(S===47){if(!d){o=h+1;break}continue}s===-1&&(d=!1,s=h+1),S===46?t===-1?t=h:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||s===-1||r===0||r===1&&t===s-1&&t===o+1?"":e.slice(t,s)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return m("/",e)},parse:function(e){u(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o=e.charCodeAt(0),s=o===47,d;s?(t.root="/",d=1):d=0;for(var r=-1,h=0,S=-1,y=!0,b=e.length-1,w=0;b>=d;--b){if(o=e.charCodeAt(b),o===47){if(!y){h=b+1;break}continue}S===-1&&(y=!1,S=b+1),o===46?r===-1?r=b:w!==1&&(w=1):r!==-1&&(w=-1)}return r===-1||S===-1||w===0||w===1&&r===S-1&&r===h+1?S!==-1&&(h===0&&s?t.base=t.name=e.slice(1,S):t.base=t.name=e.slice(h,S)):(h===0&&s?(t.name=e.slice(1,r),t.base=e.slice(1,S)):(t.name=e.slice(h,r),t.base=e.slice(h,S)),t.ext=e.slice(r,S)),h>0?t.dir=e.slice(0,h-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return p.posix=p,Ve=p,Ve}var To=Eo();const ut=Zt(To),Mo=["href"],Vo=B({__name:"Link",props:{to:{}},setup(u){const a=u;return(m,p)=>{const c=G("router-link");return n(he)(a.to)?(v(),V("a",{key:0,href:a.to,target:"_blank",rel:"noopener"},[be(m.$slots,"default")],8,Mo)):(v(),$(c,{key:1,to:a.to},{default:k(()=>[be(m.$slots,"default")]),_:3},8,["to"]))}}}),Lo={class:"title"},Io={key:2,class:"title"},Ao=B({__name:"Item",props:{item:{},basePath:{default:""}},setup(u){const a=u,m=P(()=>{var o;return(o=a.item.meta)==null?void 0:o.alwaysShow}),p=P(()=>{var o;return((o=a.item.children)==null?void 0:o.filter(s=>{var d;return!((d=s.meta)!=null&&d.hidden)}))??[]}),c=P(()=>p.value.length),e=P(()=>{const o=c.value;switch(!0){case o>1:return null;case o===1:return p.value[0];default:return{...a.item,path:""}}});function t(o){switch(!0){case he(o):return o;case he(a.basePath):return a.basePath;default:return ut.resolve(a.basePath,o)}}return(o,s)=>{const d=G("SvgIcon"),r=en,h=G("Item",!0),S=tn;return!n(m)&&n(e)&&!n(e).children?(v(),V(K,{key:0},[n(e).meta?(v(),$(Vo,{key:0,to:t(n(e).path)},{default:k(()=>[_(r,{index:t(n(e).path)},kt({default:k(()=>[n(e).meta.svgIcon?(v(),$(d,{key:0,name:n(e).meta.svgIcon,class:"svg-icon"},null,8,["name"])):n(e).meta.elIcon?(v(),$(ge(n(e).meta.elIcon),{key:1,class:"el-icon"})):F("",!0)]),_:2},[n(e).meta.title?{name:"title",fn:k(()=>[E("span",Lo,U(n(e).meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):F("",!0)],64)):(v(),$(S,{key:1,index:t(a.item.path),teleported:""},{title:k(()=>{var y,b,w;return[(y=a.item.meta)!=null&&y.svgIcon?(v(),$(d,{key:0,name:a.item.meta.svgIcon,class:"svg-icon"},null,8,["name"])):(b=a.item.meta)!=null&&b.elIcon?(v(),$(ge(a.item.meta.elIcon),{key:1,class:"el-icon"})):F("",!0),(w=a.item.meta)!=null&&w.title?(v(),V("span",Io,U(a.item.meta.title),1)):F("",!0)]}),default:k(()=>[a.item.children?(v(!0),V(K,{key:0},ee(n(p),y=>(v(),$(h,{key:y.path,item:y,"base-path":t(y.path)},null,8,["item","base-path"]))),128)):F("",!0)]),_:1},8,["index"]))}}}),Ro=W(Ao,[["__scopeId","data-v-c9384764"]]),Do=B({__name:"index",setup(u){nt(R=>({"7f569421":n(q),a27f636a:n(I),"708f3133":n(O),"1fdaa946":n(A)}));const a=ve("--v3-sidebar-menu-bg-color"),m=ve("--v3-sidebar-menu-text-color"),p=ve("--v3-sidebar-menu-active-text-color"),{isMobile:c}=ue(),{isLeft:e,isTop:t}=ae(),o=Se(),s=ce(),d=Ie(),r=Y(),h=P(()=>o.meta.activeMenu||o.path),S=P(()=>d.routes.filter(R=>{var T;return!((T=R.meta)!=null&&T.hidden)})),y=P(()=>!s.sidebar.opened),b=P(()=>e.value&&r.showLogo),w=P(()=>e.value?a:void 0),L=P(()=>e.value?m:void 0),A=P(()=>e.value?p:void 0),I=P(()=>t.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),O=P(()=>t.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),q=P(()=>t.value?"0px":"2px");return(R,T)=>{const f=nn,l=Ee;return v(),V("div",{class:X({"has-logo":n(b)})},[n(b)?(v(),$(n(Re),{key:0,collapse:n(y)},null,8,["collapse"])):F("",!0),_(l,{"wrap-class":"scrollbar-wrapper"},{default:k(()=>[_(f,{"default-active":n(h),collapse:n(y)&&!n(t),"background-color":n(w),"text-color":n(L),"active-text-color":n(A),"collapse-transition":!1,mode:n(t)&&!n(c)?"horizontal":"vertical"},{default:k(()=>[(v(!0),V(K,null,ee(n(S),i=>(v(),$(Ro,{key:i.path,item:i,"base-path":i.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Pe=W(Do,[["__scopeId","data-v-363344d5"]]),Po={class:"scroll-container"},Fo=200,Bo=B({__name:"ScrollPane",props:{tagRefs:{}},setup(u){const a=u,m=Se(),p=Y(),{listenerRouteChange:c}=ke(),e=z(),t=z();let o=0;function s({scrollLeft:y}){o=y}function d({deltaY:y}){y.toString().startsWith("-")?h("left"):h("right")}function r(){const y=t.value.clientWidth,b=e.value.wrapRef.clientWidth,w=y-b-o;return{scrollbarContentRefWidth:y,scrollbarRefWidth:b,lastDistance:w}}function h(y,b=Fo){let w=0;const{scrollbarContentRefWidth:L,scrollbarRefWidth:A,lastDistance:I}=r();A>L||(y==="left"?w=Math.max(0,o-b):w=Math.min(o+b,o+I),e.value.setScrollLeft(w))}function S(){const y=a.tagRefs;for(let b=0;bO){const q=A-O;h("right",q);return}}}return c(()=>{St(S)}),(y,b)=>{const w=fe,L=pe,A=Ee;return v(),V("div",Po,[_(L,{content:"向左滚动标签(超出最大宽度可点击)"},{default:k(()=>[_(w,{class:"arrow left",onClick:b[0]||(b[0]=I=>h("left"))},{default:k(()=>[_(n(on))]),_:1})]),_:1}),_(A,{ref_key:"scrollbarRef",ref:e,onWheelPassive:d,onScroll:s},{default:k(()=>[E("div",{ref_key:"scrollbarContentRef",ref:t,class:"scrollbar-content"},[be(y.$slots,"default",{},void 0,!0)],512)]),_:3},512),_(L,{content:"向右滚动标签(超出最大宽度可点击)"},{default:k(()=>[_(w,{class:"arrow right",onClick:b[1]||(b[1]=I=>h("right"))},{default:k(()=>[_(n(sn))]),_:1})]),_:1}),n(p).showScreenfull?(v(),$(ct,{key:0,content:!0,class:"screenfull"})):F("",!0)])}}}),zo=W(Bo,[["__scopeId","data-v-33b7505c"]]),Wo={class:"tags-view-container"},No=B({__name:"index",setup(u){const a=xe(),m=Se(),p=Ke(),c=Ie(),{listenerRouteChange:e}=ke(),t=z([]),o=z(!1),s=z(0),d=z(0),r=z({});let h=[];function S(l){return l.path===m.path}function y(l){var i;return(i=l.meta)==null?void 0:i.affix}function b(l,i="/"){const C=[];return l.forEach(x=>{if(y(x)){const g=ut.resolve(i,x.path);C.push({fullPath:g,path:g,name:x.name,meta:{...x.meta}})}if(x.children){const g=b(x.children,x.path);C.push(...g)}}),C}function w(){h=b(c.routes);for(const l of h)l.name&&p.addVisitedView(l)}function L(l){l.name&&(p.addVisitedView(l),p.addCachedView(l))}function A(l){p.delCachedView(l),a.replace({path:`/redirect${l.path}`,query:l.query})}function I(l){p.delVisitedView(l),p.delCachedView(l),S(l)&&R(p.visitedViews,l)}function O(){const l=r.value.fullPath;l!==m.path&&l!==void 0&&a.push(l),p.delOthersVisitedViews(r.value),p.delOthersCachedViews(r.value)}function q(l){p.delAllVisitedViews(),p.delAllCachedViews(),!h.some(i=>i.path===m.path)&&R(p.visitedViews,l)}function R(l,i){const C=l.slice(-1)[0],x=C==null?void 0:C.fullPath;x!==void 0?a.push(x):i.name==="Dashboard"?a.push({path:`/redirect${i.path}`,query:i.query}):a.push("/")}function T(l,i){const g=document.body.offsetWidth-100,M=i.clientX+10;d.value=M>g?g:M,s.value=i.clientY,o.value=!0,r.value=l}function f(){o.value=!1}return Ge(o,l=>{l?document.body.addEventListener("click",f):document.body.removeEventListener("click",f)}),w(),e(l=>{L(l)},!0),(l,i)=>{const C=fe,x=G("router-link");return v(),V("div",Wo,[_(zo,{class:"tags-view-wrapper","tag-refs":n(t)},{default:k(()=>[(v(!0),V(K,null,ee(n(p).visitedViews,g=>(v(),$(x,{key:g.path,ref_for:!0,ref_key:"tagRefs",ref:t,class:X([{active:S(g)},"tags-view-item"]),to:{path:g.path,query:g.query},onMouseup:_e(M=>!y(g)&&I(g),["middle"]),onContextmenu:_e(M=>T(g,M),["prevent"])},{default:k(()=>{var M;return[Z(U((M=g.meta)==null?void 0:M.title)+" ",1),y(g)?F("",!0):(v(),$(C,{key:0,size:12,onClick:_e(D=>I(g),["prevent","stop"])},{default:k(()=>[_(n(an))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),Ce(E("ul",{class:"contextmenu",style:tt({left:`${n(d)}px`,top:`${n(s)}px`})},[E("li",{onClick:i[0]||(i[0]=g=>A(n(r)))}," 刷新 "),y(n(r))?F("",!0):(v(),V("li",{key:0,onClick:i[1]||(i[1]=g=>I(n(r)))}," 关闭 ")),E("li",{onClick:O}," 关闭其它 "),E("li",{onClick:i[2]||(i[2]=g=>q(n(r)))}," 关闭所有 ")],4),[[$e,n(o)]])])}}}),Fe=W(No,[["__scopeId","data-v-81d5bd42"]]),Uo=992;function Oo(){const u=ce(),{listenerRouteChange:a}=ke(),m=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const c=m();u.toggleDevice(c?se.Mobile:se.Desktop),c&&u.closeSidebar(!0)}};a(()=>{u.device===se.Mobile&&u.sidebar.opened&&u.closeSidebar(!1)}),Qe(()=>{window.addEventListener("resize",p)}),Ze(()=>{m()&&(u.toggleDevice(se.Mobile),u.closeSidebar(!0))}),et(()=>{window.removeEventListener("resize",p)})}const qo=B({__name:"LeftMode",setup(u){const{isMobile:a}=ue(),{isLeft:m}=ae(),p=ce(),c=Y(),{showTagsView:e,fixedHeader:t}=ie(c),o=P(()=>({hideSidebar:!p.sidebar.opened,openSidebar:p.sidebar.opened,withoutAnimation:p.sidebar.withoutAnimation,mobile:a.value,noLeft:!m.value}));function s(){p.closeSidebar(!1)}return(d,r)=>(v(),V("div",{class:X([n(o),"app-wrapper"])},[n(o).mobile&&n(o).openSidebar?(v(),V("div",{key:0,class:"drawer-bg",onClick:s})):F("",!0),_(n(Pe),{class:"sidebar-container"}),E("div",{class:X([{hasTagsView:n(e)},"main-container"])},[E("div",{class:X([{"fixed-header":n(t)},"layout-header"])},[_(n(De)),Ce(_(n(Fe),null,null,512),[[$e,n(e)]])],2),_(n(Ae),{class:"app-main"})],2)],2))}}),Ho=W(qo,[["__scopeId","data-v-5b4077ad"]]),jo={class:"fixed-header layout-header"},Xo={class:"content"},Ko=B({__name:"LeftTopMode",setup(u){const a=ce(),m=Y(),{showTagsView:p,showLogo:c}=ie(m),e=P(()=>({hideSidebar:!a.sidebar.opened}));return(t,o)=>(v(),V("div",{class:X([n(e),"app-wrapper"])},[E("div",jo,[n(c)?(v(),$(n(Re),{key:0,collapse:!1,class:"logo"})):F("",!0),E("div",Xo,[_(n(De)),Ce(_(n(Fe),null,null,512),[[$e,n(p)]])])]),E("div",{class:X([{hasTagsView:n(p)},"main-container"])},[_(n(Pe),{class:"sidebar-container"}),_(n(Ae),{class:"app-main"})],2)],2))}}),Go=W(Ko,[["__scopeId","data-v-f307bb44"]]),Jo={class:"app-wrapper"},Yo={class:"fixed-header layout-header"},Qo={class:"content"},Zo=B({__name:"TopMode",setup(u){const a=Y(),{showTagsView:m,showLogo:p}=ie(a);return(c,e)=>(v(),V("div",Jo,[E("div",Yo,[E("div",Qo,[n(p)?(v(),$(n(Re),{key:0,collapse:!1,class:"logo"})):F("",!0),_(n(De),{class:"navigation-bar"})]),Ce(_(n(Fe),null,null,512),[[$e,n(m)]])]),E("div",{class:X([{hasTagsView:n(m)},"main-container"])},[_(n(Ae),{class:"app-main"})],2)]))}}),es=W(Zo,[["__scopeId","data-v-9a9151d9"]]),Le="--v3-tagsview-height",gs=B({__name:"index",setup(u){Oo();const{setWatermark:a,clearWatermark:m}=xt(),{isMobile:p}=ue(),{isLeft:c,isTop:e,isLeftTop:t}=ae(),o=Y(),{showSettings:s,showTagsView:d,showWatermark:r}=ie(o),h=ve(Le);return ye(()=>{d.value?ze(Le,h):ze(Le,"0px")}),ye(()=>{r.value?a("V3 Admin Vite"):m()}),(S,y)=>(v(),V("div",null,[n(c)||n(p)?(v(),$(Ho,{key:0})):n(e)?(v(),$(es,{key:1})):n(t)?(v(),$(Go,{key:2})):F("",!0),n(s)?(v(),$(n(yo),{key:3},{default:k(()=>[_(n($o))]),_:1})):F("",!0)]))}});export{gs as default}; diff --git a/assets/index-isqCupv6.js b/assets/index-CnTyAQzS.js similarity index 89% rename from assets/index-isqCupv6.js rename to assets/index-CnTyAQzS.js index 0c742dd2..1f45afc2 100644 --- a/assets/index-isqCupv6.js +++ b/assets/index-CnTyAQzS.js @@ -1,7 +1,7 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DeRo-7E2.js","assets/vue-V9u7w0-f.js","assets/useWatermark-XzwShjbX.js","assets/element-zW3XFg-9.js","assets/index.vue_vue_type_script_setup_true_lang-BX7o_nwo.js","assets/el-tooltip-l0sNRNKZ.js","assets/index-h8USmNax.css","assets/el-button-DhOMi8yW.css","assets/el-button-group-ePhtJS9H.css","assets/el-scrollbar-CYqf3UuD.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/vxe-_W0GpTmX.js","assets/index-B1xLwxB_.css","assets/el-tab-pane-BURcj4qt.css","assets/el-card-fwQOLwdi.css","assets/el-tag-DljBBxJR.css","assets/el-dialog-DCGCHX2q.css","assets/el-overlay-CUAhHdWP.css","assets/el-input-DdWwC06L.css","assets/index-CbD5WXVu.js","assets/403-BL5SyUD8.js","assets/Layout-DAGLo1Y6.js","assets/Layout-DVPSJTOz.css","assets/404-BYJWNwhn.js","assets/index-C5QcBq9L.js","assets/index-qktQwx2G.css","assets/el-form-item-CKZiX9BY.css","assets/index-DAg5dMxf.js","assets/index-Fw2ODUIB.css","assets/index-CQhVxPaC.js","assets/index-BhAKRBEq.js","assets/el-message-box-_1IsF84Y.js","assets/el-message-box-BywBM3sh.css","assets/index-DrLvsj1b.css","assets/el-loading-C5IeuJ3V.css","assets/el-select-BaQA8IKP.css","assets/index-D5Pu8hzF.js","assets/index-Cy4N1JEj.js","assets/index-BG5pHSaj.css","assets/index-DlaRhTjx.js","assets/use-fetch-select-BR1adVr6.js","assets/use-fetch-select-i6DeuKe_.css","assets/use-fullscreen-loading-BH5zT3B9.js","assets/use-fullscreen-loading-BZZfQs7_.css","assets/use-watermark-mzaPtgvn.js","assets/use-watermark-DHr8hXba.css","assets/page-level-BxGg49Qv.js","assets/SwitchRoles-CO69hybb.js","assets/SwitchRoles-CRycCodv.css","assets/page-level-nLO9Fg8q.css","assets/button-level-mBvJG59v.js","assets/button-level-ClaOf9yw.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CiPLmEPz.js","assets/vue-V9u7w0-f.js","assets/useWatermark-XzwShjbX.js","assets/element-zW3XFg-9.js","assets/index.vue_vue_type_script_setup_true_lang-E1oEHwr8.js","assets/el-tooltip-l0sNRNKZ.js","assets/index-h8USmNax.css","assets/el-button-DhOMi8yW.css","assets/el-button-group-ePhtJS9H.css","assets/el-scrollbar-CYqf3UuD.css","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/vxe-_W0GpTmX.js","assets/index-B1xLwxB_.css","assets/el-tab-pane-BURcj4qt.css","assets/el-card-fwQOLwdi.css","assets/el-tag-DljBBxJR.css","assets/el-dialog-DCGCHX2q.css","assets/el-overlay-CUAhHdWP.css","assets/el-input-DdWwC06L.css","assets/index-CbD5WXVu.js","assets/403-CXpBO8I5.js","assets/Layout-zRFymBYJ.js","assets/Layout-DVPSJTOz.css","assets/404-BoeoD8VL.js","assets/index-iAiGkLVW.js","assets/index-qktQwx2G.css","assets/el-form-item-CKZiX9BY.css","assets/index-DPLb4m1U.js","assets/index-Fw2ODUIB.css","assets/index-CQhVxPaC.js","assets/index-DiFUr8Z5.js","assets/el-message-box-CkuiReOM.js","assets/el-message-box-BywBM3sh.css","assets/index-DrLvsj1b.css","assets/el-loading-C5IeuJ3V.css","assets/el-select-BaQA8IKP.css","assets/index-tI51bRPi.js","assets/index-CxUHRKMq.js","assets/index-BG5pHSaj.css","assets/index-Lm8FICJj.js","assets/use-fetch-select-BRmppHFD.js","assets/use-fetch-select-i6DeuKe_.css","assets/use-fullscreen-loading-Df-1y1yY.js","assets/use-fullscreen-loading-BZZfQs7_.css","assets/use-watermark-kpF0ZioV.js","assets/use-watermark-DHr8hXba.css","assets/page-level-BMQJhlt5.js","assets/SwitchRoles-BKiprZJR.js","assets/SwitchRoles-CRycCodv.css","assets/page-level-nLO9Fg8q.css","assets/button-level-CGMVZUjY.js","assets/button-level-ClaOf9yw.css"])))=>i.map(i=>d[i]); var qt=Object.defineProperty;var Mt=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>Mt(e,typeof t!="symbol"?t+"":t,n);import{at as Ht,au as zt,av as se,r as B,w as at,b as Ce,Q as Wt,aw as Jt,v as ut,x as $t,A as Gt,aa as q,t as Kt,I as Xt,u as Yt,ac as Qt,J as Zt,L as en,aq as tn}from"./vue-V9u7w0-f.js";import{E as X,a as nn,m as rn,g as sn,b as on,c as ct,d as an}from"./element-zW3XFg-9.js";import{V as lt}from"./vxe-_W0GpTmX.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const un=Ht(),cn="modulepreload",ln=function(e){return"/v3-admin-vite/"+e},Ve={},O=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.allSettled(n.map(h=>{if(h=ln(h),h in Ve)return;Ve[h]=!0;const f=h.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":cn,f||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),f)return new Promise((E,w)=>{l.addEventListener("load",E),l.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return s.then(i=>{for(const c of i||[])c.status==="rejected"&&o(c.reason);return t().catch(o)})},fn="/v3-admin-vite/",Oe={history:zt(fn),dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1};function dn(e,t){var r;const n=(r=t.meta)==null?void 0:r.roles;return n?e.some(s=>n.includes(s)):!0}function ft(e,t){const n=[];return e.forEach(r=>{const s={...r};dn(t,s)&&(s.children&&(s.children=ft(s.children,t)),n.push(s))}),n}const pn=se("permission",()=>{const e=B([]),t=B([]),n=o=>{const i=ft(ot,o);s(i)},r=()=>{s(ot)},s=o=>{e.value=Ut.concat(o),t.value=o};return{routes:e,addRoutes:t,setRoutes:n,setAllRoutes:r}}),j="v3-admin-vite";class A{}N(A,"TOKEN",`${j}-token-key`),N(A,"CONFIG_LAYOUT",`${j}-config-layout-key`),N(A,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),N(A,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),N(A,"VISITED_VIEWS",`${j}-visited-views-key`),N(A,"CACHED_VIEWS",`${j}-cached-views-key`);function K(e){for(var t=1;t"u")){i=K({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var h in i)i[h]&&(c+="; "+h,i[h]!==!0&&(c+="="+i[h].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+c}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},c=0;ct=>{const n=hn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>oe(t)===e),ie=e=>t=>typeof t===e,{isArray:H}=Array,J=ie("undefined");function En(e){return e!==null&&!J(e)&&e.constructor!==null&&!J(e.constructor)&&P(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=L("ArrayBuffer");function gn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const yn=ie("string"),P=ie("function"),mt=ie("number"),ae=e=>e!==null&&typeof e=="object",wn=e=>e===!0||e===!1,Y=e=>{if(oe(e)!=="object")return!1;const t=De(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bn=L("Date"),Sn=L("File"),Tn=L("Blob"),Rn=L("FileList"),An=e=>ae(e)&&P(e.pipe),_n=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||P(e.append)&&((t=oe(e))==="formdata"||t==="object"&&P(e.toString)&&e.toString()==="[object FormData]"))},Cn=L("URLSearchParams"),[On,vn,Fn,Dn]=["ReadableStream","Request","Response","Headers"].map(L),Pn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),H(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const I=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Et=e=>!J(e)&&e!==I;function Ee(){const{caseless:e}=Et(this)&&this||{},t={},n=(r,s)=>{const o=e&&ht(t,s)||s;Y(t[o])&&Y(r)?t[o]=Ee(t[o],r):Y(r)?t[o]=Ee({},r):H(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r($(t,(s,o)=>{n&&P(s)?e[o]=dt(s,n):e[o]=s},{allOwnKeys:r}),e),Ln=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bn=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&De(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Nn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},In=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!mt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Un=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&De(Uint8Array)),Vn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},jn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qn=L("HTMLFormElement"),Mn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Hn=L("RegExp"),gt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},zn=e=>{gt(e,(t,n)=>{if(P(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(P(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Wn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return H(e)?r(e):r(String(e).split(t)),n},Jn=()=>{},$n=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,fe="abcdefghijklmnopqrstuvwxyz",He="0123456789",yt={DIGIT:He,ALPHA:fe,ALPHA_DIGIT:fe+fe.toUpperCase()+He},Gn=(e=16,t=yt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Kn(e){return!!(e&&P(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xn=e=>{const t=new Array(10),n=(r,s)=>{if(ae(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=H(r)?[]:{};return $(r,(i,c)=>{const h=n(i,s+1);!J(h)&&(o[c]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Yn=L("AsyncFunction"),Qn=e=>e&&(ae(e)||P(e))&&P(e.then)&&P(e.catch),wt=((e,t)=>e?setImmediate:t?((n,r)=>(I.addEventListener("message",({source:s,data:o})=>{s===I&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),I.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",P(I.postMessage)),Zn=typeof queueMicrotask<"u"?queueMicrotask.bind(I):typeof process<"u"&&process.nextTick||wt,a={isArray:H,isArrayBuffer:pt,isBuffer:En,isFormData:_n,isArrayBufferView:gn,isString:yn,isNumber:mt,isBoolean:wn,isObject:ae,isPlainObject:Y,isReadableStream:On,isRequest:vn,isResponse:Fn,isHeaders:Dn,isUndefined:J,isDate:bn,isFile:Sn,isBlob:Tn,isRegExp:Hn,isFunction:P,isStream:An,isURLSearchParams:Cn,isTypedArray:Un,isFileList:Rn,forEach:$,merge:Ee,extend:xn,trim:Pn,stripBOM:Ln,inherits:kn,toFlatObject:Bn,kindOf:oe,kindOfTest:L,endsWith:Nn,toArray:In,forEachEntry:Vn,matchAll:jn,isHTMLForm:qn,hasOwnProperty:Me,hasOwnProp:Me,reduceDescriptors:gt,freezeMethods:zn,toObjectSet:Wn,toCamelCase:Mn,noop:Jn,toFiniteNumber:$n,findKey:ht,global:I,isContextDefined:Et,ALPHABET:yt,generateString:Gn,isSpecCompliantForm:Kn,toJSONObject:Xn,isAsyncFn:Yn,isThenable:Qn,setImmediate:wt,asap:Zn};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const bt=g.prototype,St={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{St[e]={value:e}});Object.defineProperties(g,St);Object.defineProperty(bt,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(bt);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const er=null;function ge(e){return a.isPlainObject(e)||a.isArray(e)}function Tt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ze(e,t,n){return e?e.concat(t).map(function(s,o){return s=Tt(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function tr(e){return a.isArray(e)&&!e.some(ge)}const nr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ue(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,p){return!a.isUndefined(p[d])});const r=n.metaTokens,s=n.visitor||m,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!h&&a.isBlob(u))throw new g("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?h&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function m(u,d,p){let y=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(d,"{}"))d=r?d:d.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&tr(u)||(a.isFileList(u)||a.endsWith(d,"[]"))&&(y=a.toArray(u)))return d=Tt(d),y.forEach(function(T,S){!(a.isUndefined(T)||T===null)&&t.append(i===!0?ze([d],S,o):i===null?d:d+"[]",f(T))}),!1}return ge(u)?!0:(t.append(ze(p,d,o),f(u)),!1)}const l=[],E=Object.assign(nr,{defaultVisitor:m,convertValue:f,isVisitable:ge});function w(u,d){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(u),a.forEach(u,function(y,b){(!(a.isUndefined(y)||y===null)&&s.call(t,y,a.isString(b)?b.trim():b,d,E))===!0&&w(y,d?d.concat(b):[b])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function We(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Pe(e,t){this._pairs=[],e&&ue(e,this,t)}const Rt=Pe.prototype;Rt.append=function(t,n){this._pairs.push([t,n])};Rt.toString=function(t){const n=t?function(r){return t.call(this,r,We)}:We;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function rr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function At(e,t,n){if(!t)return e;const r=n&&n.encode||rr;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Pe(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Je{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sr=typeof URLSearchParams<"u"?URLSearchParams:Pe,or=typeof FormData<"u"?FormData:null,ir=typeof Blob<"u"?Blob:null,ar={isBrowser:!0,classes:{URLSearchParams:sr,FormData:or,Blob:ir},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",ye=typeof navigator=="object"&&navigator||void 0,ur=xe&&(!ye||["ReactNative","NativeScript","NS"].indexOf(ye.product)<0),cr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lr=xe&&window.location.href||"http://localhost",fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:ur,hasStandardBrowserWebWorkerEnv:cr,navigator:ye,origin:lr},Symbol.toStringTag,{value:"Module"})),v={...fr,...ar};function dr(e,t){return ue(e,new v.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return v.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,h?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=mr(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(pr(r),s,n,0)}),n}return null}function hr(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const G={transitional:_t,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(Ct(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ue(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),hr(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?g.from(c,g.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:v.classes.FormData,Blob:v.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{G.headers[e]={}});const Er=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gr=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Er[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$e=Symbol("internals");function W(e){return e&&String(e).trim().toLowerCase()}function Q(e){return e===!1||e==null?e:a.isArray(e)?e.map(Q):String(e)}function yr(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const wr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function de(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function br(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Sr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class D{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,h,f){const m=W(h);if(!m)throw new Error("header name must be a non-empty string");const l=a.findKey(s,m);(!l||s[l]===void 0||f===!0||f===void 0&&s[l]!==!1)&&(s[l||h]=Q(c))}const i=(c,h)=>a.forEach(c,(f,m)=>o(f,m,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!wr(t))i(gr(t),n);else if(a.isHeaders(t))for(const[c,h]of t.entries())o(h,c,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=W(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return yr(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=W(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||de(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=W(i),i){const c=a.findKey(r,i);c&&(!n||de(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||de(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=Q(s),delete n[o];return}const c=t?br(o):String(o).trim();c!==o&&delete n[o],n[c]=Q(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[$e]=this[$e]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=W(i);r[c]||(Sr(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}D.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(D.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(D);function pe(e,t){const n=this||G,r=t||n,s=D.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ot(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,g,{__CANCEL__:!0});function vt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Tr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Rr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const f=Date.now(),m=r[o];i||(i=f),n[s]=h,r[s]=f;let l=o,E=0;for(;l!==s;)E+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i{n=m,s=null,o&&(clearTimeout(o),o=null),e.apply(null,f)};return[(...f)=>{const m=Date.now(),l=m-n;l>=r?i(f,m):(s=f,o||(o=setTimeout(()=>{o=null,i(s)},r-l)))},()=>s&&i(s)]}const ne=(e,t,n=3)=>{let r=0;const s=Rr(50,250);return Ar(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,h=i-r,f=s(h),m=i<=c;r=i;const l={loaded:i,total:c,progress:c?i/c:void 0,bytes:h,rate:f||void 0,estimated:f&&c&&m?(c-i)/f:void 0,event:o,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(l)},n)},Ge=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ke=e=>(...t)=>a.asap(()=>e(...t)),_r=v.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,v.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(v.origin),v.navigator&&/(msie|trident)/i.test(v.navigator.userAgent)):()=>!0,Cr=v.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Or(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ft(e,t){return e&&!Or(t)?vr(e,t):t}const Xe=e=>e instanceof D?{...e}:e;function V(e,t){t=t||{};const n={};function r(f,m,l,E){return a.isPlainObject(f)&&a.isPlainObject(m)?a.merge.call({caseless:E},f,m):a.isPlainObject(m)?a.merge({},m):a.isArray(m)?m.slice():m}function s(f,m,l,E){if(a.isUndefined(m)){if(!a.isUndefined(f))return r(void 0,f,l,E)}else return r(f,m,l,E)}function o(f,m){if(!a.isUndefined(m))return r(void 0,m)}function i(f,m){if(a.isUndefined(m)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,m)}function c(f,m,l){if(l in t)return r(f,m);if(l in e)return r(void 0,f)}const h={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(f,m,l)=>s(Xe(f),Xe(m),l,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(m){const l=h[m]||s,E=l(e[m],t[m],m);a.isUndefined(E)&&l!==c||(n[m]=E)}),n}const Dt=e=>{const t=V({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:c}=t;t.headers=i=D.from(i),t.url=At(Ft(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let h;if(a.isFormData(n)){if(v.hasStandardBrowserEnv||v.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[f,...m]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...m].join("; "))}}if(v.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&_r(t.url))){const f=s&&o&&Cr.read(o);f&&i.set(s,f)}return t},Fr=typeof XMLHttpRequest<"u",Dr=Fr&&function(e){return new Promise(function(n,r){const s=Dt(e);let o=s.data;const i=D.from(s.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:f}=s,m,l,E,w,u;function d(){w&&w(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(m),s.signal&&s.signal.removeEventListener("abort",m)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function y(){if(!p)return;const T=D.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),R={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:T,config:e,request:p};vt(function(F){n(F),d()},function(F){r(F),d()},R),p=null}"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(y)},p.onabort=function(){p&&(r(new g("Request aborted",g.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let S=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const R=s.transitional||_t;s.timeoutErrorMessage&&(S=s.timeoutErrorMessage),r(new g(S,R.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,p)),p=null},o===void 0&&i.setContentType(null),"setRequestHeader"in p&&a.forEach(i.toJSON(),function(S,R){p.setRequestHeader(R,S)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([E,u]=ne(f,!0),p.addEventListener("progress",E)),h&&p.upload&&([l,w]=ne(h),p.upload.addEventListener("progress",l),p.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(m=T=>{p&&(r(!T||T.type?new z(null,e,p):T),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(m),s.signal&&(s.signal.aborted?m():s.signal.addEventListener("abort",m)));const b=Tr(s.url);if(b&&v.protocols.indexOf(b)===-1){r(new g("Unsupported protocol "+b+":",g.ERR_BAD_REQUEST,e));return}p.send(o||null)})},Pr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(f){if(!s){s=!0,c();const m=f instanceof Error?f:this.reason;r.abort(m instanceof g?m:new z(m instanceof Error?m.message:m))}};let i=t&&setTimeout(()=>{i=null,o(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:h}=r;return h.unsubscribe=()=>a.asap(c),h}},xr=function*(e,t){let n=e.byteLength;if(n{const s=Lr(e,t);let o=0,i,c=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:f,value:m}=await s.next();if(f){c(),h.close();return}let l=m.byteLength;if(n){let E=o+=l;n(E)}h.enqueue(new Uint8Array(m))}catch(f){throw c(f),f}},cancel(h){return c(h),s.return()}},{highWaterMark:2})},ce=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pt=ce&&typeof ReadableStream=="function",Br=ce&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nr=Pt&&xt(()=>{let e=!1;const t=new Request(v.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Qe=64*1024,we=Pt&&xt(()=>a.isReadableStream(new Response("").body)),re={stream:we&&(e=>e.body)};ce&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!re[t]&&(re[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new g(`Response type '${t}' is not supported`,g.ERR_NOT_SUPPORT,r)})})})(new Response);const Ir=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(v.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Br(e)).byteLength},Ur=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Ir(t)},Vr=ce&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:h,responseType:f,headers:m,withCredentials:l="same-origin",fetchOptions:E}=Dt(e);f=f?(f+"").toLowerCase():"text";let w=Pr([s,o&&o.toAbortSignal()],i),u;const d=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let p;try{if(h&&Nr&&n!=="get"&&n!=="head"&&(p=await Ur(m,r))!==0){let R=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(a.isFormData(r)&&(C=R.headers.get("content-type"))&&m.setContentType(C),R.body){const[F,x]=Ge(p,ne(Ke(h)));r=Ye(R.body,Qe,F,x)}}a.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;u=new Request(t,{...E,signal:w,method:n.toUpperCase(),headers:m.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let b=await fetch(u);const T=we&&(f==="stream"||f==="response");if(we&&(c||T&&d)){const R={};["status","statusText","headers"].forEach(Ue=>{R[Ue]=b[Ue]});const C=a.toFiniteNumber(b.headers.get("content-length")),[F,x]=c&&Ge(C,ne(Ke(c),!0))||[];b=new Response(Ye(b.body,Qe,F,()=>{x&&x(),d&&d()}),R)}f=f||"text";let S=await re[a.findKey(re,f)||"text"](b,e);return!T&&d&&d(),await new Promise((R,C)=>{vt(R,C,{data:S,headers:D.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:u})})}catch(y){throw d&&d(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new g("Network Error",g.ERR_NETWORK,e,u),{cause:y.cause||y}):g.from(y,y&&y.code,e,u)}}),be={http:er,xhr:Dr,fetch:Vr};a.forEach(be,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ze=e=>`- ${e}`,jr=e=>a.isFunction(e)||e===null||e===!1,Lt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Ze).join(` -`):" "+Ze(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:be};function me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function et(e){return me(e),e.headers=D.from(e.headers),e.data=pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lt.getAdapter(e.adapter||G.adapter)(e).then(function(r){return me(e),r.data=pe.call(e,e.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return Ot(r)||(me(e),r&&r.response&&(r.response.data=pe.call(e,e.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const kt="1.7.8",le={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{le[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tt={};le.transitional=function(t,n,r){function s(o,i){return"[Axios v"+kt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new g(s(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!tt[i]&&(tt[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};le.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function qr(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],h=c===void 0||i(c,o,e);if(h!==!0)throw new g("option "+o+" must be "+h,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+o,g.ERR_BAD_OPTION)}}const Z={assertOptions:qr,validators:le},k=Z.validators;class U{constructor(t){this.defaults=t,this.interceptors={request:new Je,response:new Je}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=V(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Z.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:Z.assertOptions(s,{encode:k.function,serialize:k.function},!0)),Z.assertOptions(n,{baseUrl:k.spelling("baseURL"),withXsrfToken:k.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),n.headers=D.concat(i,o);const c=[];let h=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(h=h&&d.synchronous,c.unshift(d.fulfilled,d.rejected))});const f=[];this.interceptors.response.forEach(function(d){f.push(d.fulfilled,d.rejected)});let m,l=0,E;if(!h){const u=[et.bind(this),void 0];for(u.unshift.apply(u,c),u.push.apply(u,f),E=u.length,m=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new z(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Le(function(s){t=s}),cancel:t}}}function Mr(e){return function(n){return e.apply(null,n)}}function Hr(e){return a.isObject(e)&&e.isAxiosError===!0}const Se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Se).forEach(([e,t])=>{Se[t]=e});function Bt(e){const t=new U(e),n=dt(U.prototype.request,t);return a.extend(n,U.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Bt(V(e,s))},n}const _=Bt(G);_.Axios=U;_.CanceledError=z;_.CancelToken=Le;_.isCancel=Ot;_.VERSION=kt;_.toFormData=ue;_.AxiosError=g;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=Mr;_.isAxiosError=Hr;_.mergeConfig=V;_.AxiosHeaders=D;_.formToJSON=e=>Ct(a.isHTMLForm(e)?new FormData(e):e);_.getAdapter=Lt.getAdapter;_.HttpStatusCode=Se;_.default=_;function nt(){Be().logout(),location.reload()}function zr(){const e=_.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var o;const n=t.data,r=(o=t.request)==null?void 0:o.responseType;if(r==="blob"||r==="arraybuffer")return n;const s=n.code;if(s===void 0)return X.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(s){case 0:return n;case 401:return nt();default:return X.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(nn(t,"response.status")){case 400:t.message="请求错误";break;case 401:nt();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return X.error(t.message),Promise.reject(t)}),e}function Wr(e){return t=>{const n=Fe(),r={baseURL:"https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1",headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},data:{},timeout:5e3,withCredentials:!1},s=rn(r,t);return e(s)}}const Jr=zr(),$r=Wr(Jr);function Gr(){return $r({url:"users/info",method:"get"})}var Kr=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Kr||{}),Nt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(Nt||{});const Ks="opened",Xs="closed";function Xr(){const e=localStorage.getItem(A.CONFIG_LAYOUT);return e?JSON.parse(e):null}function Yr(e){localStorage.setItem(A.CONFIG_LAYOUT,JSON.stringify(e))}function Ys(){localStorage.removeItem(A.CONFIG_LAYOUT)}function Qs(){return localStorage.getItem(A.SIDEBAR_STATUS)}function Zs(e){localStorage.setItem(A.SIDEBAR_STATUS,e)}function Qr(){return localStorage.getItem(A.ACTIVE_THEME_NAME)}function Zr(e){localStorage.setItem(A.ACTIVE_THEME_NAME,e)}function es(){const e=localStorage.getItem(A.VISITED_VIEWS);return JSON.parse(e??"[]")}function ts(e){e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(A.VISITED_VIEWS,JSON.stringify(e))}function ns(){const e=localStorage.getItem(A.CACHED_VIEWS);return JSON.parse(e??"[]")}function rs(e){localStorage.setItem(A.CACHED_VIEWS,JSON.stringify(e))}const ss={layoutMode:Nt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},os={...ss,...Xr()},ke=se("settings",()=>{const e={};for(const[n,r]of Object.entries(os)){const s=B(r);e[n]=s,at(s,()=>{const o=t();Yr(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),is=se("tags-view",()=>{const{cacheTagsView:e}=ke(),t=B(e?es():[]),n=B(e?ns():[]);return Ce(()=>{ts(t.value),rs(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1?t.value[E].fullPath!==l.fullPath&&(t.value[E]={...l}):t.value.push({...l})},addCachedView:l=>{var E;typeof l.name=="string"&&(n.value.includes(l.name)||(E=l.meta)!=null&&E.keepAlive&&n.value.push(l.name))},delVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1&&t.value.splice(E,1)},delCachedView:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:l=>{t.value=t.value.filter(E=>{var w;return((w=E.meta)==null?void 0:w.affix)||E.path===l.path})},delOthersCachedViews:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(l=>{var E;return(E=l.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}}),Be=se("user",()=>{const e=B(Fe()||""),t=B([]),n=B(""),r=is(),s=ke(),o=async l=>{je(l),e.value=l},i=async()=>{var E;const{data:l}=await Gr();n.value=l.username,t.value=((E=l.roles)==null?void 0:E.length)>0?l.roles:Oe.defaultRoles},c=async l=>{const E=`token-${l}`;e.value=E,je(E),location.reload()},h=()=>{qe(),e.value="",t.value=[],ws(),m()},f=()=>{qe(),e.value="",t.value=[]},m=()=>{s.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,setToken:o,getInfo:i,changeRoles:c,logout:h,resetToken:f}}),as=["/login"],us=[];function cs(e){return as.includes(e.path)||us.includes(e.name)}function ls(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const Te=ls(),Re=Symbol("ROUTE_CHANGE");let Ae;function fs(e){Te.emit(Re,e),Ae=e}function eo(){const e=[],t=(r,s=!1)=>{e.push(r),Te.on(Re,r),s&&Ae&&r(Ae)},n=r=>{Te.off(Re,r)};return Wt(()=>{e.forEach(n)}),{listenerRouteChange:t,removeRouteListener:n}}const rt="V3 Admin Vite",It=B("");function ds(e){It.value=e?`${rt} | ${e}`:rt}at(It,(e,t)=>{document&&e!==t&&(document.title=e)});function ps(){return{setTitle:ds}}var ee={exports:{}};var ms=ee.exports,st;function hs(){return st||(st=1,function(e,t){(function(n,r){e.exports=r()})(ms,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(u){var d,p;for(d in u)p=u[d],p!==void 0&&u.hasOwnProperty(d)&&(r[d]=p);return this},n.status=null,n.set=function(u){var d=n.isStarted();u=s(u,r.minimum,1),n.status=u===1?null:u;var p=n.render(!d),y=p.querySelector(r.barSelector),b=r.speed,T=r.easing;return p.offsetWidth,c(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(y,i(u,b,T)),u===1?(h(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){h(p,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){n.remove(),S()},b)},b)):setTimeout(S,b)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var u=function(){setTimeout(function(){n.status&&(n.trickle(),u())},r.trickleSpeed)};return r.trickle&&u(),this},n.done=function(u){return!u&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(u){var d=n.status;return d?(typeof u!="number"&&(u=(1-d)*s(Math.random()*d,.1,.95)),d=s(d+u,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var u=0,d=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(d===0&&n.start(),u++,d++,p.always(function(){d--,d===0?(u=0,n.done()):n.set((u-d)/u)}),this)}}(),n.render=function(u){if(n.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var p=d.querySelector(r.barSelector),y=u?"-100":o(n.status||0),b=document.querySelector(r.parent),T;return h(p,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&w(T)),b!=document.body&&m(b,"nprogress-custom-parent"),b.appendChild(d),d},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var u=document.getElementById("nprogress");u&&w(u)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var u=document.body.style,d="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return d+"Perspective"in u?"translate3d":d+"Transform"in u?"translate":"margin"};function s(u,d,p){return up?p:u}function o(u){return(-1+u)*100}function i(u,d,p){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(u)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(u)+"%,0)"}:y={"margin-left":o(u)+"%"},y.transition="all "+d+"ms "+p,y}var c=function(){var u=[];function d(){var p=u.shift();p&&p(d)}return function(p){u.push(p),u.length==1&&d()}}(),h=function(){var u=["Webkit","O","Moz","ms"],d={};function p(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(R,C){return C.toUpperCase()})}function y(S){var R=document.body.style;if(S in R)return S;for(var C=u.length,F=S.charAt(0).toUpperCase()+S.slice(1),x;C--;)if(x=u[C]+F,x in R)return x;return S}function b(S){return S=p(S),d[S]||(d[S]=y(S))}function T(S,R,C){R=b(R),S.style[R]=C}return function(S,R){var C=arguments,F,x;if(C.length==2)for(F in R)x=R[F],x!==void 0&&R.hasOwnProperty(F)&&T(S,F,x);else T(S,C[1],C[2])}}();function f(u,d){var p=typeof u=="string"?u:E(u);return p.indexOf(" "+d+" ")>=0}function m(u,d){var p=E(u),y=p+d;f(p,d)||(u.className=y.substring(1))}function l(u,d){var p=E(u),y;f(u,d)&&(y=p.replace(" "+d+" "," "),u.className=y.substring(1,y.length-1))}function E(u){return(" "+(u.className||"")+" ").replace(/\s+/gi," ")}function w(u){u&&u.parentNode&&u.parentNode.removeChild(u)}return n})}(ee)),ee.exports}var Es=hs();const _e=sn(Es);_e.configure({showSpinner:!1});const{setTitle:gs}=ps();function ys(e){e.beforeEach(async(t,n)=>{_e.start();const r=Be(),s=pn();if(!Fe())return cs(t)?!0:"/login";if(t.path==="/login")return"/";if(r.roles.length!==0)return!0;try{await r.getInfo();const o=r.roles;return Oe.dynamic?s.setRoutes(o):s.setAllRoutes(),s.addRoutes.forEach(i=>e.addRoute(i)),{...t,replace:!0}}catch(o){return r.resetToken(),X.error(o.message||"路由守卫发生错误"),"/login"}}),e.afterEach(t=>{fs(t),gs(t.meta.title),_e.done()})}const te=()=>O(()=>import("./index-DeRo-7E2.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),Ut=[{path:"/redirect",component:te,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>O(()=>import("./index-CbD5WXVu.js"),__vite__mapDeps([19,1]))}]},{path:"/403",component:()=>O(()=>import("./403-BL5SyUD8.js"),__vite__mapDeps([20,21,10,3,1,22,7,11])),meta:{hidden:!0}},{path:"/404",component:()=>O(()=>import("./404-BYJWNwhn.js"),__vite__mapDeps([23,21,10,3,1,22,7,11])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>O(()=>import("./index-C5QcBq9L.js"),__vite__mapDeps([24,1,4,5,3,6,7,8,9,10,11,25,26,18])),meta:{hidden:!0}},{path:"/",component:te,redirect:"/dashboard",children:[{path:"dashboard",component:()=>O(()=>import("./index-DAg5dMxf.js"),__vite__mapDeps([27,1,10,3,11,28])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/demo",component:te,redirect:"/demo/unocss",name:"Demo",meta:{title:"示例集合",elIcon:"DataBoard"},children:[{path:"unocss",component:()=>O(()=>import("./index-CQhVxPaC.js"),__vite__mapDeps([29,10,1])),name:"UnoCSS",meta:{title:"UnoCSS"}},{path:"element-plus",component:()=>O(()=>import("./index-BhAKRBEq.js"),__vite__mapDeps([30,5,31,32,1,3,10,11,33,34,16,17,15,35,9,18,14,26,7])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>O(()=>import("./index-D5Pu8hzF.js"),__vite__mapDeps([36,31,32,1,3,11,7,18,17])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}},{path:"level2",component:()=>O(()=>import("./index-Cy4N1JEj.js"),__vite__mapDeps([37,10,3,1,11,38,14])),redirect:"/demo/level2/level3",name:"Level2",meta:{title:"二级路由",alwaysShow:!0},children:[{path:"level3",component:()=>O(()=>import("./index-DlaRhTjx.js"),__vite__mapDeps([39,3,1,11,14,18])),name:"Level3",meta:{title:"三级路由",keepAlive:!0}}]},{path:"composable-demo",redirect:"/demo/composable-demo/use-fetch-select",name:"ComposableDemo",meta:{title:"组合式函数"},children:[{path:"use-fetch-select",component:()=>O(()=>import("./use-fetch-select-BR1adVr6.js"),__vite__mapDeps([40,1,3,10,11,41,34,18,15,9,35,14])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>O(()=>import("./use-fullscreen-loading-BH5zT3B9.js"),__vite__mapDeps([42,3,1,10,11,43,7,14,34])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>O(()=>import("./use-watermark-mzaPtgvn.js"),__vite__mapDeps([44,2,3,1,10,11,45,8,7,14])),name:"UseWatermark",meta:{title:"useWatermark"}}]}]},{path:"/link",meta:{title:"文档链接",elIcon:"Link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]}],ot=[{path:"/permission",component:te,redirect:"/permission/page-level",name:"Permission",meta:{title:"权限演示",elIcon:"Lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page-level",component:()=>O(()=>import("./page-level-BxGg49Qv.js"),__vite__mapDeps([46,47,3,1,10,48,14,15,11,49])),name:"PermissionPageLevel",meta:{title:"页面级",roles:["admin"]}},{path:"button-level",component:()=>O(()=>import("./button-level-mBvJG59v.js"),__vite__mapDeps([50,47,3,1,10,48,14,15,11,51,13,7])),name:"PermissionButtonLevel",meta:{title:"按钮级",roles:void 0}}]}],M=Jt({history:Oe.history,routes:Ut});function ws(){try{M.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&M.hasRoute(t)&&M.removeRoute(t)})}catch{location.reload()}}ys(M);function bs(e){for(const[t,n]of Object.entries(on))e.component(t,n)}function Ss(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}function to(e){return/^(https?:|mailto:|tel:)/.test(e)}const Ts={mounted(e,t){var s;const{value:n}=t,{roles:r}=Be();if(Ss(n)&&n.length>0)r.some(i=>n.includes(i))||((s=e.parentNode)==null||s.removeChild(e));else throw new Error(`参数必须是一个数组且长度大于 0,参考:v-permission="['admin','editor']"`)}};function Rs(e){e.directive("permission",Ts)}const As={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"1em",height:"1em",fill:"currentColor"}},_s=["xlink:href"];function Cs(e,t){return ut(),$t("svg",As,[Gt("use",{"xlink:href":"#"+e.name},null,8,_s)])}const Os={name:"SvgIcon",props:{name:{type:String,required:!0}},render:Cs};function vs(e){e.component("SvgIcon",Os)}lt.setConfig({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0,keyField:"_VXE_ID"},columnConfig:{resizable:!1},align:"center",headerAlign:"center"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function Fs(e){e.use(lt)}function Ds(e){bs(e),Rs(e),vs(e),Fs(e)}const Ps="grey-mode",xs="color-weakness",it=document.documentElement.classList;function Ls(){const e=ke();Ce(()=>{it.toggle(Ps,e.showGreyMode),it.toggle(xs,e.showColorWeakness)})}function ks(){return{initGreyAndColorWeakness:Ls}}function Bs(){setTimeout(()=>{ct({title:"为爱发电!",type:"success",message:q("div",null,[q("div",null,"所有源码均免费开源,如果对你有帮助,欢迎点个 Star 支持一下!"),q("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"点击传送")]),duration:0,position:"bottom-right"})},0)}function Ns(){setTimeout(()=>{ct({title:"懒人服务?",type:"warning",message:q("div",null,[q("div",null,"不想自己动手,但想移除 TS 或其他模块?也有懒人套餐!"),q("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"点击逛逛")]),duration:0,position:"bottom-right"})},500)}function Is(){return{initStarNotification:Bs,initStoreNotification:Ns}}const Vt="normal",jt=[{title:"默认",name:Vt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ne=B(Qr()||Vt);function Us(e){Ne.value=e}function Vs(e){document.documentElement.classList.add(e)}function js(e){const t=jt.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)}function qs(){Ce(()=>{const e=Ne.value;js(e),Vs(e),Zr(e)})}function Ms(){return{themeList:jt,activeThemeName:Ne,initTheme:qs,setTheme:Us}}var Hs={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const zs=Kt({__name:"App",setup(e){const{initTheme:t}=Ms(),{initGreyAndColorWeakness:n}=ks(),{initStarNotification:r,initStoreNotification:s}=Is();return t(),n(),r(),s(),(o,i)=>{const c=Qt("router-view"),h=an;return ut(),Xt(h,{locale:Yt(Hs)},{default:Zt(()=>[en(c)]),_:1},8,["locale"])}}}),Ie=tn(zs);Ds(Ie);Ie.use(un).use(M);M.isReady().then(()=>{Ie.mount("#app")});export{Kr as D,Nt as L,Xs as S,Ks as a,is as b,eo as c,pn as d,Be as e,$r as f,Qs as g,Ms as h,to as i,Ss as j,Ys as r,Zs as s,ke as u}; +`):" "+Ze(o[0]):"as no adapter specified";throw new g("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:be};function me(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function et(e){return me(e),e.headers=D.from(e.headers),e.data=pe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lt.getAdapter(e.adapter||G.adapter)(e).then(function(r){return me(e),r.data=pe.call(e,e.transformResponse,r),r.headers=D.from(r.headers),r},function(r){return Ot(r)||(me(e),r&&r.response&&(r.response.data=pe.call(e,e.transformResponse,r.response),r.response.headers=D.from(r.response.headers))),Promise.reject(r)})}const kt="1.7.9",le={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{le[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const tt={};le.transitional=function(t,n,r){function s(o,i){return"[Axios v"+kt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new g(s(i," has been removed"+(n?" in "+n:"")),g.ERR_DEPRECATED);return n&&!tt[i]&&(tt[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};le.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function qr(e,t,n){if(typeof e!="object")throw new g("options must be an object",g.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],h=c===void 0||i(c,o,e);if(h!==!0)throw new g("option "+o+" must be "+h,g.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new g("Unknown option "+o,g.ERR_BAD_OPTION)}}const Z={assertOptions:qr,validators:le},k=Z.validators;class U{constructor(t){this.defaults=t,this.interceptors={request:new Je,response:new Je}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=V(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Z.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:Z.assertOptions(s,{encode:k.function,serialize:k.function},!0)),Z.assertOptions(n,{baseUrl:k.spelling("baseURL"),withXsrfToken:k.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete o[u]}),n.headers=D.concat(i,o);const c=[];let h=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(h=h&&d.synchronous,c.unshift(d.fulfilled,d.rejected))});const f=[];this.interceptors.response.forEach(function(d){f.push(d.fulfilled,d.rejected)});let m,l=0,E;if(!h){const u=[et.bind(this),void 0];for(u.unshift.apply(u,c),u.push.apply(u,f),E=u.length,m=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new z(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Le(function(s){t=s}),cancel:t}}}function Mr(e){return function(n){return e.apply(null,n)}}function Hr(e){return a.isObject(e)&&e.isAxiosError===!0}const Se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Se).forEach(([e,t])=>{Se[t]=e});function Bt(e){const t=new U(e),n=dt(U.prototype.request,t);return a.extend(n,U.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Bt(V(e,s))},n}const _=Bt(G);_.Axios=U;_.CanceledError=z;_.CancelToken=Le;_.isCancel=Ot;_.VERSION=kt;_.toFormData=ue;_.AxiosError=g;_.Cancel=_.CanceledError;_.all=function(t){return Promise.all(t)};_.spread=Mr;_.isAxiosError=Hr;_.mergeConfig=V;_.AxiosHeaders=D;_.formToJSON=e=>Ct(a.isHTMLForm(e)?new FormData(e):e);_.getAdapter=Lt.getAdapter;_.HttpStatusCode=Se;_.default=_;function nt(){Be().logout(),location.reload()}function zr(){const e=_.create();return e.interceptors.request.use(t=>t,t=>Promise.reject(t)),e.interceptors.response.use(t=>{var o;const n=t.data,r=(o=t.request)==null?void 0:o.responseType;if(r==="blob"||r==="arraybuffer")return n;const s=n.code;if(s===void 0)return X.error("非本系统的接口"),Promise.reject(new Error("非本系统的接口"));switch(s){case 0:return n;case 401:return nt();default:return X.error(n.message||"Error"),Promise.reject(new Error("Error"))}},t=>{switch(nn(t,"response.status")){case 400:t.message="请求错误";break;case 401:nt();break;case 403:t.message="拒绝访问";break;case 404:t.message="请求地址出错";break;case 408:t.message="请求超时";break;case 500:t.message="服务器内部错误";break;case 501:t.message="服务未实现";break;case 502:t.message="网关错误";break;case 503:t.message="服务不可用";break;case 504:t.message="网关超时";break;case 505:t.message="HTTP 版本不受支持";break}return X.error(t.message),Promise.reject(t)}),e}function Wr(e){return t=>{const n=Fe(),r={baseURL:"https://mock.mengxuegu.com/mock/63218b5fb4c53348ed2bc212/api/v1",headers:{Authorization:n?`Bearer ${n}`:void 0,"Content-Type":"application/json"},data:{},timeout:5e3,withCredentials:!1},s=rn(r,t);return e(s)}}const Jr=zr(),$r=Wr(Jr);function Gr(){return $r({url:"users/info",method:"get"})}var Kr=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Kr||{}),Nt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(Nt||{});const Ks="opened",Xs="closed";function Xr(){const e=localStorage.getItem(A.CONFIG_LAYOUT);return e?JSON.parse(e):null}function Yr(e){localStorage.setItem(A.CONFIG_LAYOUT,JSON.stringify(e))}function Ys(){localStorage.removeItem(A.CONFIG_LAYOUT)}function Qs(){return localStorage.getItem(A.SIDEBAR_STATUS)}function Zs(e){localStorage.setItem(A.SIDEBAR_STATUS,e)}function Qr(){return localStorage.getItem(A.ACTIVE_THEME_NAME)}function Zr(e){localStorage.setItem(A.ACTIVE_THEME_NAME,e)}function es(){const e=localStorage.getItem(A.VISITED_VIEWS);return JSON.parse(e??"[]")}function ts(e){e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(A.VISITED_VIEWS,JSON.stringify(e))}function ns(){const e=localStorage.getItem(A.CACHED_VIEWS);return JSON.parse(e??"[]")}function rs(e){localStorage.setItem(A.CACHED_VIEWS,JSON.stringify(e))}const ss={layoutMode:Nt.Left,showSettings:!0,showTagsView:!0,fixedHeader:!0,showFooter:!0,showLogo:!0,showNotify:!0,showThemeSwitch:!0,showScreenfull:!0,showSearchMenu:!0,cacheTagsView:!1,showWatermark:!0,showGreyMode:!1,showColorWeakness:!1},os={...ss,...Xr()},ke=se("settings",()=>{const e={};for(const[n,r]of Object.entries(os)){const s=B(r);e[n]=s,at(s,()=>{const o=t();Yr(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),is=se("tags-view",()=>{const{cacheTagsView:e}=ke(),t=B(e?es():[]),n=B(e?ns():[]);return Ce(()=>{ts(t.value),rs(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1?t.value[E].fullPath!==l.fullPath&&(t.value[E]={...l}):t.value.push({...l})},addCachedView:l=>{var E;typeof l.name=="string"&&(n.value.includes(l.name)||(E=l.meta)!=null&&E.keepAlive&&n.value.push(l.name))},delVisitedView:l=>{const E=t.value.findIndex(w=>w.path===l.path);E!==-1&&t.value.splice(E,1)},delCachedView:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1&&n.value.splice(E,1)},delOthersVisitedViews:l=>{t.value=t.value.filter(E=>{var w;return((w=E.meta)==null?void 0:w.affix)||E.path===l.path})},delOthersCachedViews:l=>{if(typeof l.name!="string")return;const E=n.value.indexOf(l.name);E!==-1?n.value=n.value.slice(E,E+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(l=>{var E;return(E=l.meta)==null?void 0:E.affix})},delAllCachedViews:()=>{n.value=[]}}}),Be=se("user",()=>{const e=B(Fe()||""),t=B([]),n=B(""),r=is(),s=ke(),o=async l=>{je(l),e.value=l},i=async()=>{var E;const{data:l}=await Gr();n.value=l.username,t.value=((E=l.roles)==null?void 0:E.length)>0?l.roles:Oe.defaultRoles},c=async l=>{const E=`token-${l}`;e.value=E,je(E),location.reload()},h=()=>{qe(),e.value="",t.value=[],ws(),m()},f=()=>{qe(),e.value="",t.value=[]},m=()=>{s.cacheTagsView||(r.delAllVisitedViews(),r.delAllCachedViews())};return{token:e,roles:t,username:n,setToken:o,getInfo:i,changeRoles:c,logout:h,resetToken:f}}),as=["/login"],us=[];function cs(e){return as.includes(e.path)||us.includes(e.name)}function ls(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(s){s(n)}),(r=e.get("*"))&&r.slice().map(function(s){s(t,n)})}}}const Te=ls(),Re=Symbol("ROUTE_CHANGE");let Ae;function fs(e){Te.emit(Re,e),Ae=e}function eo(){const e=[],t=(r,s=!1)=>{e.push(r),Te.on(Re,r),s&&Ae&&r(Ae)},n=r=>{Te.off(Re,r)};return Wt(()=>{e.forEach(n)}),{listenerRouteChange:t,removeRouteListener:n}}const rt="V3 Admin Vite",It=B("");function ds(e){It.value=e?`${rt} | ${e}`:rt}at(It,(e,t)=>{document&&e!==t&&(document.title=e)});function ps(){return{setTitle:ds}}var ee={exports:{}};var ms=ee.exports,st;function hs(){return st||(st=1,function(e,t){(function(n,r){e.exports=r()})(ms,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};n.configure=function(u){var d,p;for(d in u)p=u[d],p!==void 0&&u.hasOwnProperty(d)&&(r[d]=p);return this},n.status=null,n.set=function(u){var d=n.isStarted();u=s(u,r.minimum,1),n.status=u===1?null:u;var p=n.render(!d),y=p.querySelector(r.barSelector),b=r.speed,T=r.easing;return p.offsetWidth,c(function(S){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(y,i(u,b,T)),u===1?(h(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){h(p,{transition:"all "+b+"ms linear",opacity:0}),setTimeout(function(){n.remove(),S()},b)},b)):setTimeout(S,b)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var u=function(){setTimeout(function(){n.status&&(n.trickle(),u())},r.trickleSpeed)};return r.trickle&&u(),this},n.done=function(u){return!u&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(u){var d=n.status;return d?(typeof u!="number"&&(u=(1-d)*s(Math.random()*d,.1,.95)),d=s(d+u,0,.994),n.set(d)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var u=0,d=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(d===0&&n.start(),u++,d++,p.always(function(){d--,d===0?(u=0,n.done()):n.set((u-d)/u)}),this)}}(),n.render=function(u){if(n.isRendered())return document.getElementById("nprogress");m(document.documentElement,"nprogress-busy");var d=document.createElement("div");d.id="nprogress",d.innerHTML=r.template;var p=d.querySelector(r.barSelector),y=u?"-100":o(n.status||0),b=document.querySelector(r.parent),T;return h(p,{transition:"all 0 linear",transform:"translate3d("+y+"%,0,0)"}),r.showSpinner||(T=d.querySelector(r.spinnerSelector),T&&w(T)),b!=document.body&&m(b,"nprogress-custom-parent"),b.appendChild(d),d},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var u=document.getElementById("nprogress");u&&w(u)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var u=document.body.style,d="WebkitTransform"in u?"Webkit":"MozTransform"in u?"Moz":"msTransform"in u?"ms":"OTransform"in u?"O":"";return d+"Perspective"in u?"translate3d":d+"Transform"in u?"translate":"margin"};function s(u,d,p){return up?p:u}function o(u){return(-1+u)*100}function i(u,d,p){var y;return r.positionUsing==="translate3d"?y={transform:"translate3d("+o(u)+"%,0,0)"}:r.positionUsing==="translate"?y={transform:"translate("+o(u)+"%,0)"}:y={"margin-left":o(u)+"%"},y.transition="all "+d+"ms "+p,y}var c=function(){var u=[];function d(){var p=u.shift();p&&p(d)}return function(p){u.push(p),u.length==1&&d()}}(),h=function(){var u=["Webkit","O","Moz","ms"],d={};function p(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(R,C){return C.toUpperCase()})}function y(S){var R=document.body.style;if(S in R)return S;for(var C=u.length,F=S.charAt(0).toUpperCase()+S.slice(1),x;C--;)if(x=u[C]+F,x in R)return x;return S}function b(S){return S=p(S),d[S]||(d[S]=y(S))}function T(S,R,C){R=b(R),S.style[R]=C}return function(S,R){var C=arguments,F,x;if(C.length==2)for(F in R)x=R[F],x!==void 0&&R.hasOwnProperty(F)&&T(S,F,x);else T(S,C[1],C[2])}}();function f(u,d){var p=typeof u=="string"?u:E(u);return p.indexOf(" "+d+" ")>=0}function m(u,d){var p=E(u),y=p+d;f(p,d)||(u.className=y.substring(1))}function l(u,d){var p=E(u),y;f(u,d)&&(y=p.replace(" "+d+" "," "),u.className=y.substring(1,y.length-1))}function E(u){return(" "+(u.className||"")+" ").replace(/\s+/gi," ")}function w(u){u&&u.parentNode&&u.parentNode.removeChild(u)}return n})}(ee)),ee.exports}var Es=hs();const _e=sn(Es);_e.configure({showSpinner:!1});const{setTitle:gs}=ps();function ys(e){e.beforeEach(async(t,n)=>{_e.start();const r=Be(),s=pn();if(!Fe())return cs(t)?!0:"/login";if(t.path==="/login")return"/";if(r.roles.length!==0)return!0;try{await r.getInfo();const o=r.roles;return Oe.dynamic?s.setRoutes(o):s.setAllRoutes(),s.addRoutes.forEach(i=>e.addRoute(i)),{...t,replace:!0}}catch(o){return r.resetToken(),X.error(o.message||"路由守卫发生错误"),"/login"}}),e.afterEach(t=>{fs(t),gs(t.meta.title),_e.done()})}const te=()=>O(()=>import("./index-CiPLmEPz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),Ut=[{path:"/redirect",component:te,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>O(()=>import("./index-CbD5WXVu.js"),__vite__mapDeps([19,1]))}]},{path:"/403",component:()=>O(()=>import("./403-CXpBO8I5.js"),__vite__mapDeps([20,21,10,3,1,22,7,11])),meta:{hidden:!0}},{path:"/404",component:()=>O(()=>import("./404-BoeoD8VL.js"),__vite__mapDeps([23,21,10,3,1,22,7,11])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>O(()=>import("./index-iAiGkLVW.js"),__vite__mapDeps([24,1,4,5,3,6,7,8,9,10,11,25,26,18])),meta:{hidden:!0}},{path:"/",component:te,redirect:"/dashboard",children:[{path:"dashboard",component:()=>O(()=>import("./index-DPLb4m1U.js"),__vite__mapDeps([27,1,10,3,11,28])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/demo",component:te,redirect:"/demo/unocss",name:"Demo",meta:{title:"示例集合",elIcon:"DataBoard"},children:[{path:"unocss",component:()=>O(()=>import("./index-CQhVxPaC.js"),__vite__mapDeps([29,10,1])),name:"UnoCSS",meta:{title:"UnoCSS"}},{path:"element-plus",component:()=>O(()=>import("./index-DiFUr8Z5.js"),__vite__mapDeps([30,5,31,32,1,3,10,11,33,34,16,17,15,35,9,18,14,26,7])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>O(()=>import("./index-tI51bRPi.js"),__vite__mapDeps([36,31,32,1,3,11,7,18,17])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}},{path:"level2",component:()=>O(()=>import("./index-CxUHRKMq.js"),__vite__mapDeps([37,10,3,1,11,38,14])),redirect:"/demo/level2/level3",name:"Level2",meta:{title:"二级路由",alwaysShow:!0},children:[{path:"level3",component:()=>O(()=>import("./index-Lm8FICJj.js"),__vite__mapDeps([39,3,1,11,14,18])),name:"Level3",meta:{title:"三级路由",keepAlive:!0}}]},{path:"composable-demo",redirect:"/demo/composable-demo/use-fetch-select",name:"ComposableDemo",meta:{title:"组合式函数"},children:[{path:"use-fetch-select",component:()=>O(()=>import("./use-fetch-select-BRmppHFD.js"),__vite__mapDeps([40,1,3,10,11,41,34,18,15,9,35,14])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>O(()=>import("./use-fullscreen-loading-Df-1y1yY.js"),__vite__mapDeps([42,3,1,10,11,43,7,14,34])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>O(()=>import("./use-watermark-kpF0ZioV.js"),__vite__mapDeps([44,2,3,1,10,11,45,8,7,14])),name:"UseWatermark",meta:{title:"useWatermark"}}]}]},{path:"/link",meta:{title:"文档链接",elIcon:"Link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]}],ot=[{path:"/permission",component:te,redirect:"/permission/page-level",name:"Permission",meta:{title:"权限演示",elIcon:"Lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page-level",component:()=>O(()=>import("./page-level-BMQJhlt5.js"),__vite__mapDeps([46,47,3,1,10,48,14,15,11,49])),name:"PermissionPageLevel",meta:{title:"页面级",roles:["admin"]}},{path:"button-level",component:()=>O(()=>import("./button-level-CGMVZUjY.js"),__vite__mapDeps([50,47,3,1,10,48,14,15,11,51,13,7])),name:"PermissionButtonLevel",meta:{title:"按钮级",roles:void 0}}]}],M=Jt({history:Oe.history,routes:Ut});function ws(){try{M.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&M.hasRoute(t)&&M.removeRoute(t)})}catch{location.reload()}}ys(M);function bs(e){for(const[t,n]of Object.entries(on))e.component(t,n)}function Ss(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}function to(e){return/^(https?:|mailto:|tel:)/.test(e)}const Ts={mounted(e,t){var s;const{value:n}=t,{roles:r}=Be();if(Ss(n)&&n.length>0)r.some(i=>n.includes(i))||((s=e.parentNode)==null||s.removeChild(e));else throw new Error(`参数必须是一个数组且长度大于 0,参考:v-permission="['admin','editor']"`)}};function Rs(e){e.directive("permission",Ts)}const As={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"1em",height:"1em",fill:"currentColor"}},_s=["xlink:href"];function Cs(e,t){return ut(),$t("svg",As,[Gt("use",{"xlink:href":"#"+e.name},null,8,_s)])}const Os={name:"SvgIcon",props:{name:{type:String,required:!0}},render:Cs};function vs(e){e.component("SvgIcon",Os)}lt.setConfig({size:"medium",zIndex:9999,version:0,loadingText:null,table:{showHeader:!0,showOverflow:"tooltip",showHeaderOverflow:"tooltip",autoResize:!0,border:"inner",emptyText:"暂无数据",rowConfig:{isHover:!0,isCurrent:!0,keyField:"_VXE_ID"},columnConfig:{resizable:!1},align:"center",headerAlign:"center"},pager:{perfect:!1,pageSize:10,pagerCount:7,pageSizes:[10,20,50],layouts:["Total","PrevJump","PrevPage","Number","NextPage","NextJump","Sizes","FullJump"]},modal:{minWidth:500,minHeight:400,lockView:!0,mask:!0,dblclickZoom:!1,showTitleOverflow:!0,transfer:!0,draggable:!1}});function Fs(e){e.use(lt)}function Ds(e){bs(e),Rs(e),vs(e),Fs(e)}const Ps="grey-mode",xs="color-weakness",it=document.documentElement.classList;function Ls(){const e=ke();Ce(()=>{it.toggle(Ps,e.showGreyMode),it.toggle(xs,e.showColorWeakness)})}function ks(){return{initGreyAndColorWeakness:Ls}}function Bs(){setTimeout(()=>{ct({title:"为爱发电!",type:"success",message:q("div",null,[q("div",null,"所有源码均免费开源,如果对你有帮助,欢迎点个 Star 支持一下!"),q("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},"点击传送")]),duration:0,position:"bottom-right"})},0)}function Ns(){setTimeout(()=>{ct({title:"懒人服务?",type:"warning",message:q("div",null,[q("div",null,"不想自己动手,但想移除 TS 或其他模块?也有懒人套餐!"),q("a",{style:"color: teal",target:"_blank",href:"https://github.com/un-pany/v3-admin-vite/issues/225"},"点击查看")]),duration:0,position:"bottom-right"})},500)}function Is(){return{initStarNotification:Bs,initStoreNotification:Ns}}const Vt="normal",jt=[{title:"默认",name:Vt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ne=B(Qr()||Vt);function Us(e){Ne.value=e}function Vs(e){document.documentElement.classList.add(e)}function js(e){const t=jt.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)}function qs(){Ce(()=>{const e=Ne.value;js(e),Vs(e),Zr(e)})}function Ms(){return{themeList:jt,activeThemeName:Ne,initTheme:qs,setTheme:Us}}var Hs={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const zs=Kt({__name:"App",setup(e){const{initTheme:t}=Ms(),{initGreyAndColorWeakness:n}=ks(),{initStarNotification:r,initStoreNotification:s}=Is();return t(),n(),r(),s(),(o,i)=>{const c=Qt("router-view"),h=an;return ut(),Xt(h,{locale:Yt(Hs)},{default:Zt(()=>[en(c)]),_:1},8,["locale"])}}}),Ie=tn(zs);Ds(Ie);Ie.use(un).use(M);M.isReady().then(()=>{Ie.mount("#app")});export{Kr as D,Nt as L,Xs as S,Ks as a,is as b,eo as c,pn as d,Be as e,$r as f,Qs as g,Ms as h,to as i,Ss as j,Ys as r,Zs as s,ke as u}; diff --git a/assets/index-Cy4N1JEj.js b/assets/index-CxUHRKMq.js similarity index 92% rename from assets/index-Cy4N1JEj.js rename to assets/index-CxUHRKMq.js index 0e0f4af8..43de3b28 100644 --- a/assets/index-Cy4N1JEj.js +++ b/assets/index-CxUHRKMq.js @@ -1 +1 @@ -import"./index-isqCupv6.js";/* empty css */import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{ad as i,o as p}from"./element-zW3XFg-9.js";import{ac as _,v as l,x as m,A as o,L as e,J as r,a2 as d}from"./vue-V9u7w0-f.js";import"./vxe-_W0GpTmX.js";const f={},u={class:"app-container"};function v(x,t){const n=i,a=_("router-view"),s=p;return l(),m("div",u,[o("h4",null,[t[1]||(t[1]=o("span",null," 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ",-1)),e(n,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/router/config.ts",target:"_blank"},{default:r(()=>t[0]||(t[0]=[d(" src/router/config.ts ")])),_:1})]),e(s,{header:"二级路由"},{default:r(()=>[e(a)]),_:1})])}const B=c(f,[["render",v],["__scopeId","data-v-688a264b"]]);export{B as default}; +import"./index-CnTyAQzS.js";/* empty css */import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{ad as i,o as p}from"./element-zW3XFg-9.js";import{ac as _,v as l,x as m,A as o,L as e,J as r,a2 as d}from"./vue-V9u7w0-f.js";import"./vxe-_W0GpTmX.js";const f={},u={class:"app-container"};function v(x,t){const n=i,a=_("router-view"),s=p;return l(),m("div",u,[o("h4",null,[t[1]||(t[1]=o("span",null," 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ",-1)),e(n,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/router/config.ts",target:"_blank"},{default:r(()=>t[0]||(t[0]=[d(" src/router/config.ts ")])),_:1})]),e(s,{header:"二级路由"},{default:r(()=>[e(a)]),_:1})])}const B=c(f,[["render",v],["__scopeId","data-v-688a264b"]]);export{B as default}; diff --git a/assets/index-DAg5dMxf.js b/assets/index-DPLb4m1U.js similarity index 99% rename from assets/index-DAg5dMxf.js rename to assets/index-DPLb4m1U.js index 7dda4b45..31c8195e 100644 --- a/assets/index-DAg5dMxf.js +++ b/assets/index-DPLb4m1U.js @@ -1 +1 @@ -import{e as i}from"./index-isqCupv6.js";import{v as t,x as c,aE as y,t as s,L as f,u as M,A as p,I as d,K as Z}from"./vue-V9u7w0-f.js";import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";const m={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 500"};function r(h,l){return t(),c("svg",m,l[0]||(l[0]=[y('',127)]))}const v={render:r},o={class:"app-container center"},g=s({__name:"Admin",setup(h){return(l,a)=>(t(),c("div",o,[f(M(v),{class:"svg"}),a[0]||(a[0]=p("p",null,"欢迎来到「Admin」角色专属首页",-1))]))}}),n=e(g,[["__scopeId","data-v-f054e4a7"]]),b={class:"app-container center"},V=s({__name:"Editor",setup(h){return(l,a)=>(t(),c("div",b,[f(M(v),{class:"svg"}),a[0]||(a[0]=p("p",null,"欢迎来到「Editor」角色专属首页",-1))]))}}),_=e(V,[["__scopeId","data-v-3b3cec06"]]),S=s({__name:"index",setup(h){const a=i().roles.includes("admin");return(z,x)=>(t(),d(Z(M(a)?n:_)))}});export{S as default}; +import{e as i}from"./index-CnTyAQzS.js";import{v as t,x as c,aE as y,t as s,L as f,u as M,A as p,I as d,K as Z}from"./vue-V9u7w0-f.js";import{_ as e}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";const m={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 500"};function r(h,l){return t(),c("svg",m,l[0]||(l[0]=[y('',127)]))}const v={render:r},o={class:"app-container center"},g=s({__name:"Admin",setup(h){return(l,a)=>(t(),c("div",o,[f(M(v),{class:"svg"}),a[0]||(a[0]=p("p",null,"欢迎来到「Admin」角色专属首页",-1))]))}}),n=e(g,[["__scopeId","data-v-f054e4a7"]]),b={class:"app-container center"},V=s({__name:"Editor",setup(h){return(l,a)=>(t(),c("div",b,[f(M(v),{class:"svg"}),a[0]||(a[0]=p("p",null,"欢迎来到「Editor」角色专属首页",-1))]))}}),_=e(V,[["__scopeId","data-v-3b3cec06"]]),S=s({__name:"index",setup(h){const a=i().roles.includes("admin");return(z,x)=>(t(),d(Z(M(a)?n:_)))}});export{S as default}; diff --git a/assets/index-BhAKRBEq.js b/assets/index-DiFUr8Z5.js similarity index 98% rename from assets/index-BhAKRBEq.js rename to assets/index-DiFUr8Z5.js index 7349f834..2be421f5 100644 --- a/assets/index-BhAKRBEq.js +++ b/assets/index-DiFUr8Z5.js @@ -1 +1 @@ -import"./index-isqCupv6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{g as H,c as K,u as Q,d as X}from"./el-message-box-_1IsF84Y.js";import{U as N,t as Y,r as _,w as Z,v as m,x as ee,R,u as t,I as g,J as l,L as a,h as ae,a2 as i,A as h,O as te,F as le}from"./vue-V9u7w0-f.js";import{A as z,o as ne,D as oe,a3 as re,a4 as ie,N as se,a5 as ue,a6 as de,a7 as pe,a8 as me,E as D,a9 as fe,C as ce,a0 as ge,t as _e,W as ve,q as be,aa as ye,n as Ce,ab as he,ac as we}from"./element-zW3XFg-9.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";const Ve={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function ze(E={}){const s=N({...Ve,...E});return{paginationData:s,handleCurrentChange:v=>{s.currentPage=v},handleSizeChange:v=>{s.pageSize=v}}}const De={class:"app-container"},Ee={class:"toolbar-wrapper"},Te={class:"table-wrapper"},xe={class:"pager-wrapper"},Se=Y({name:"ElementPlus",__name:"index",setup(E){const s=_(!1),{paginationData:r,handleCurrentChange:T,handleSizeChange:v}=ze(),x={id:void 0,username:"",password:""},f=_(!1),k=_(null),u=_(z(x)),I={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]};function $(){var o;(o=k.value)==null||o.validate(e=>{if(!e){D.error("表单校验不通过");return}s.value=!0,(u.value.id===void 0?K:Q)(u.value).then(()=>{D.success("操作成功"),f.value=!1,b()}).finally(()=>{s.value=!1})})}function L(){var o;(o=k.value)==null||o.clearValidate(),u.value=z(x)}function O(o){fe.confirm(`正在删除用户:${o.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{X(o.id).then(()=>{D.success("删除成功"),b()})})}function q(o){f.value=!0,u.value=z(o)}const V=_([]),S=_(null),c=N({username:"",phone:""});function b(){s.value=!0,H({currentPage:r.currentPage,size:r.pageSize,username:c.username||void 0,phone:c.phone||void 0}).then(({data:o})=>{r.total=o.total,V.value=o.list}).catch(()=>{V.value=[]}).finally(()=>{s.value=!1})}function A(){r.currentPage===1?b():r.currentPage=1}function M(){var o;(o=S.value)==null||o.resetFields(),A()}return Z([()=>r.currentPage,()=>r.pageSize],b,{immediate:!0}),(o,e)=>{const y=ce,C=ge,d=_e,P=ve,F=ne,U=be,p=ye,w=Ce,j=he,G=we,J=oe,B=re;return m(),ee("div",De,[R((m(),g(F,{shadow:"never",class:"search-wrapper"},{default:l(()=>[a(P,{ref_key:"searchFormRef",ref:S,inline:!0,model:t(c)},{default:l(()=>[a(C,{prop:"username",label:"用户名"},{default:l(()=>[a(y,{modelValue:t(c).username,"onUpdate:modelValue":e[0]||(e[0]=n=>t(c).username=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(C,{prop:"phone",label:"手机号"},{default:l(()=>[a(y,{modelValue:t(c).phone,"onUpdate:modelValue":e[1]||(e[1]=n=>t(c).phone=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(C,null,{default:l(()=>[a(d,{type:"primary",icon:t(ie),onClick:A},{default:l(()=>e[7]||(e[7]=[i(" 查询 ")])),_:1},8,["icon"]),a(d,{icon:t(se),onClick:M},{default:l(()=>e[8]||(e[8]=[i(" 重置 ")])),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[B,t(s)]]),R((m(),g(F,{shadow:"never"},{default:l(()=>[h("div",Ee,[h("div",null,[a(d,{type:"primary",icon:t(ue),onClick:e[2]||(e[2]=n=>f.value=!0)},{default:l(()=>e[9]||(e[9]=[i(" 新增用户 ")])),_:1},8,["icon"]),a(d,{type:"danger",icon:t(de)},{default:l(()=>e[10]||(e[10]=[i(" 批量删除 ")])),_:1},8,["icon"])]),h("div",null,[a(U,{content:"下载"},{default:l(()=>[a(d,{type:"primary",icon:t(pe),circle:""},null,8,["icon"])]),_:1}),a(U,{content:"刷新当前页"},{default:l(()=>[a(d,{type:"primary",icon:t(me),circle:"",onClick:b},null,8,["icon"])]),_:1})])]),h("div",Te,[a(j,{data:t(V)},{default:l(()=>[a(p,{type:"selection",width:"50",align:"center"}),a(p,{prop:"username",label:"用户名",align:"center"}),a(p,{prop:"roles",label:"角色",align:"center"},{default:l(n=>[n.row.roles==="admin"?(m(),g(w,{key:0,type:"primary",effect:"plain","disable-transitions":""},{default:l(()=>e[11]||(e[11]=[i(" admin ")])),_:1})):(m(),g(w,{key:1,type:"warning",effect:"plain","disable-transitions":""},{default:l(()=>[i(te(n.row.roles),1)]),_:2},1024))]),_:1}),a(p,{prop:"phone",label:"手机号",align:"center"}),a(p,{prop:"email",label:"邮箱",align:"center"}),a(p,{prop:"status",label:"状态",align:"center"},{default:l(n=>[n.row.status?(m(),g(w,{key:0,type:"success",effect:"plain","disable-transitions":""},{default:l(()=>e[12]||(e[12]=[i(" 启用 ")])),_:1})):(m(),g(w,{key:1,type:"danger",effect:"plain","disable-transitions":""},{default:l(()=>e[13]||(e[13]=[i(" 禁用 ")])),_:1}))]),_:1}),a(p,{prop:"createTime",label:"创建时间",align:"center"}),a(p,{fixed:"right",label:"操作",width:"150",align:"center"},{default:l(n=>[a(d,{type:"primary",text:"",bg:"",size:"small",onClick:W=>q(n.row)},{default:l(()=>e[14]||(e[14]=[i(" 修改 ")])),_:2},1032,["onClick"]),a(d,{type:"danger",text:"",bg:"",size:"small",onClick:W=>O(n.row)},{default:l(()=>e[15]||(e[15]=[i(" 删除 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),h("div",xe,[a(G,{background:"",layout:t(r).layout,"page-sizes":t(r).pageSizes,total:t(r).total,"page-size":t(r).pageSize,"current-page":t(r).currentPage,onSizeChange:t(v),onCurrentChange:t(T)},null,8,["layout","page-sizes","total","page-size","current-page","onSizeChange","onCurrentChange"])])]),_:1})),[[B,t(s)]]),a(J,{modelValue:t(f),"onUpdate:modelValue":e[6]||(e[6]=n=>ae(f)?f.value=n:null),title:t(u).id===void 0?"新增用户":"修改用户",width:"30%",onClosed:L},{footer:l(()=>[a(d,{onClick:e[5]||(e[5]=n=>f.value=!1)},{default:l(()=>e[16]||(e[16]=[i(" 取消 ")])),_:1}),a(d,{type:"primary",loading:t(s),onClick:$},{default:l(()=>e[17]||(e[17]=[i(" 确认 ")])),_:1},8,["loading"])]),default:l(()=>[a(P,{ref_key:"formRef",ref:k,model:t(u),rules:I,"label-width":"100px","label-position":"left"},{default:l(()=>[a(C,{prop:"username",label:"用户名"},{default:l(()=>[a(y,{modelValue:t(u).username,"onUpdate:modelValue":e[3]||(e[3]=n=>t(u).username=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),t(u).id===void 0?(m(),g(C,{key:0,prop:"password",label:"密码"},{default:l(()=>[a(y,{modelValue:t(u).password,"onUpdate:modelValue":e[4]||(e[4]=n=>t(u).password=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):le("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),He=ke(Se,[["__scopeId","data-v-d56b399a"]]);export{He as default}; +import"./index-CnTyAQzS.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";/* empty css *//* empty css *//* empty css */import{g as H,c as K,u as Q,d as X}from"./el-message-box-CkuiReOM.js";import{U as N,t as Y,r as _,w as Z,v as m,x as ee,R,u as t,I as g,J as l,L as a,h as ae,a2 as i,A as h,O as te,F as le}from"./vue-V9u7w0-f.js";import{A as z,o as ne,D as oe,a3 as re,a4 as ie,N as se,a5 as ue,a6 as de,a7 as pe,a8 as me,E as D,a9 as fe,C as ce,a0 as ge,t as _e,W as ve,q as be,aa as ye,n as Ce,ab as he,ac as we}from"./element-zW3XFg-9.js";import{_ as ke}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";const Ve={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function ze(E={}){const s=N({...Ve,...E});return{paginationData:s,handleCurrentChange:v=>{s.currentPage=v},handleSizeChange:v=>{s.pageSize=v}}}const De={class:"app-container"},Ee={class:"toolbar-wrapper"},Te={class:"table-wrapper"},xe={class:"pager-wrapper"},Se=Y({name:"ElementPlus",__name:"index",setup(E){const s=_(!1),{paginationData:r,handleCurrentChange:T,handleSizeChange:v}=ze(),x={id:void 0,username:"",password:""},f=_(!1),k=_(null),u=_(z(x)),I={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]};function $(){var o;(o=k.value)==null||o.validate(e=>{if(!e){D.error("表单校验不通过");return}s.value=!0,(u.value.id===void 0?K:Q)(u.value).then(()=>{D.success("操作成功"),f.value=!1,b()}).finally(()=>{s.value=!1})})}function L(){var o;(o=k.value)==null||o.clearValidate(),u.value=z(x)}function O(o){fe.confirm(`正在删除用户:${o.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{X(o.id).then(()=>{D.success("删除成功"),b()})})}function q(o){f.value=!0,u.value=z(o)}const V=_([]),S=_(null),c=N({username:"",phone:""});function b(){s.value=!0,H({currentPage:r.currentPage,size:r.pageSize,username:c.username||void 0,phone:c.phone||void 0}).then(({data:o})=>{r.total=o.total,V.value=o.list}).catch(()=>{V.value=[]}).finally(()=>{s.value=!1})}function A(){r.currentPage===1?b():r.currentPage=1}function M(){var o;(o=S.value)==null||o.resetFields(),A()}return Z([()=>r.currentPage,()=>r.pageSize],b,{immediate:!0}),(o,e)=>{const y=ce,C=ge,d=_e,P=ve,F=ne,U=be,p=ye,w=Ce,j=he,G=we,J=oe,B=re;return m(),ee("div",De,[R((m(),g(F,{shadow:"never",class:"search-wrapper"},{default:l(()=>[a(P,{ref_key:"searchFormRef",ref:S,inline:!0,model:t(c)},{default:l(()=>[a(C,{prop:"username",label:"用户名"},{default:l(()=>[a(y,{modelValue:t(c).username,"onUpdate:modelValue":e[0]||(e[0]=n=>t(c).username=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(C,{prop:"phone",label:"手机号"},{default:l(()=>[a(y,{modelValue:t(c).phone,"onUpdate:modelValue":e[1]||(e[1]=n=>t(c).phone=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(C,null,{default:l(()=>[a(d,{type:"primary",icon:t(ie),onClick:A},{default:l(()=>e[7]||(e[7]=[i(" 查询 ")])),_:1},8,["icon"]),a(d,{icon:t(se),onClick:M},{default:l(()=>e[8]||(e[8]=[i(" 重置 ")])),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[B,t(s)]]),R((m(),g(F,{shadow:"never"},{default:l(()=>[h("div",Ee,[h("div",null,[a(d,{type:"primary",icon:t(ue),onClick:e[2]||(e[2]=n=>f.value=!0)},{default:l(()=>e[9]||(e[9]=[i(" 新增用户 ")])),_:1},8,["icon"]),a(d,{type:"danger",icon:t(de)},{default:l(()=>e[10]||(e[10]=[i(" 批量删除 ")])),_:1},8,["icon"])]),h("div",null,[a(U,{content:"下载"},{default:l(()=>[a(d,{type:"primary",icon:t(pe),circle:""},null,8,["icon"])]),_:1}),a(U,{content:"刷新当前页"},{default:l(()=>[a(d,{type:"primary",icon:t(me),circle:"",onClick:b},null,8,["icon"])]),_:1})])]),h("div",Te,[a(j,{data:t(V)},{default:l(()=>[a(p,{type:"selection",width:"50",align:"center"}),a(p,{prop:"username",label:"用户名",align:"center"}),a(p,{prop:"roles",label:"角色",align:"center"},{default:l(n=>[n.row.roles==="admin"?(m(),g(w,{key:0,type:"primary",effect:"plain","disable-transitions":""},{default:l(()=>e[11]||(e[11]=[i(" admin ")])),_:1})):(m(),g(w,{key:1,type:"warning",effect:"plain","disable-transitions":""},{default:l(()=>[i(te(n.row.roles),1)]),_:2},1024))]),_:1}),a(p,{prop:"phone",label:"手机号",align:"center"}),a(p,{prop:"email",label:"邮箱",align:"center"}),a(p,{prop:"status",label:"状态",align:"center"},{default:l(n=>[n.row.status?(m(),g(w,{key:0,type:"success",effect:"plain","disable-transitions":""},{default:l(()=>e[12]||(e[12]=[i(" 启用 ")])),_:1})):(m(),g(w,{key:1,type:"danger",effect:"plain","disable-transitions":""},{default:l(()=>e[13]||(e[13]=[i(" 禁用 ")])),_:1}))]),_:1}),a(p,{prop:"createTime",label:"创建时间",align:"center"}),a(p,{fixed:"right",label:"操作",width:"150",align:"center"},{default:l(n=>[a(d,{type:"primary",text:"",bg:"",size:"small",onClick:W=>q(n.row)},{default:l(()=>e[14]||(e[14]=[i(" 修改 ")])),_:2},1032,["onClick"]),a(d,{type:"danger",text:"",bg:"",size:"small",onClick:W=>O(n.row)},{default:l(()=>e[15]||(e[15]=[i(" 删除 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),h("div",xe,[a(G,{background:"",layout:t(r).layout,"page-sizes":t(r).pageSizes,total:t(r).total,"page-size":t(r).pageSize,"current-page":t(r).currentPage,onSizeChange:t(v),onCurrentChange:t(T)},null,8,["layout","page-sizes","total","page-size","current-page","onSizeChange","onCurrentChange"])])]),_:1})),[[B,t(s)]]),a(J,{modelValue:t(f),"onUpdate:modelValue":e[6]||(e[6]=n=>ae(f)?f.value=n:null),title:t(u).id===void 0?"新增用户":"修改用户",width:"30%",onClosed:L},{footer:l(()=>[a(d,{onClick:e[5]||(e[5]=n=>f.value=!1)},{default:l(()=>e[16]||(e[16]=[i(" 取消 ")])),_:1}),a(d,{type:"primary",loading:t(s),onClick:$},{default:l(()=>e[17]||(e[17]=[i(" 确认 ")])),_:1},8,["loading"])]),default:l(()=>[a(P,{ref_key:"formRef",ref:k,model:t(u),rules:I,"label-width":"100px","label-position":"left"},{default:l(()=>[a(C,{prop:"username",label:"用户名"},{default:l(()=>[a(y,{modelValue:t(u).username,"onUpdate:modelValue":e[3]||(e[3]=n=>t(u).username=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),t(u).id===void 0?(m(),g(C,{key:0,prop:"password",label:"密码"},{default:l(()=>[a(y,{modelValue:t(u).password,"onUpdate:modelValue":e[4]||(e[4]=n=>t(u).password=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):le("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),He=ke(Se,[["__scopeId","data-v-d56b399a"]]);export{He as default}; diff --git a/assets/index-DlaRhTjx.js b/assets/index-Lm8FICJj.js similarity index 89% rename from assets/index-DlaRhTjx.js rename to assets/index-Lm8FICJj.js index 5b1c1505..4e8392f6 100644 --- a/assets/index-DlaRhTjx.js +++ b/assets/index-Lm8FICJj.js @@ -1 +1 @@ -import"./index-isqCupv6.js";/* empty css *//* empty css */import{o as r,C as s}from"./element-zW3XFg-9.js";import{t as p,r as m,v as c,x as d,L as o,J as i,u,h as _}from"./vue-V9u7w0-f.js";import"./vxe-_W0GpTmX.js";const f={class:"app-container"},L=p({name:"Level3",__name:"index",setup(x){const e=m("");return(h,t)=>{const a=s,n=r;return c(),d("div",f,[o(n,{header:"三级路由"},{default:i(()=>[o(a,{modelValue:u(e),"onUpdate:modelValue":t[0]||(t[0]=l=>_(e)?e.value=l:null),placeholder:"输入任意字符测试缓存"},null,8,["modelValue"])]),_:1})])}}});export{L as default}; +import"./index-CnTyAQzS.js";/* empty css *//* empty css */import{o as r,C as s}from"./element-zW3XFg-9.js";import{t as p,r as m,v as c,x as d,L as o,J as i,u,h as _}from"./vue-V9u7w0-f.js";import"./vxe-_W0GpTmX.js";const f={class:"app-container"},L=p({name:"Level3",__name:"index",setup(x){const e=m("");return(h,t)=>{const a=s,n=r;return c(),d("div",f,[o(n,{header:"三级路由"},{default:i(()=>[o(a,{modelValue:u(e),"onUpdate:modelValue":t[0]||(t[0]=l=>_(e)?e.value=l:null),placeholder:"输入任意字符测试缓存"},null,8,["modelValue"])]),_:1})])}}});export{L as default}; diff --git a/assets/index-C5QcBq9L.js b/assets/index-iAiGkLVW.js similarity index 96% rename from assets/index-C5QcBq9L.js rename to assets/index-iAiGkLVW.js index b90f6c01..532cf3f2 100644 --- a/assets/index-C5QcBq9L.js +++ b/assets/index-iAiGkLVW.js @@ -1 +1 @@ -import{f as V,e as U}from"./index-isqCupv6.js";/* empty css *//* empty css *//* empty css */import{t as B,v as E,x as k,aE as R,H as q,r as p,az as N,U as A,L as o,u as e,A as c,J as a,al as L,M as S,a2 as $}from"./vue-V9u7w0-f.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang-BX7o_nwo.js";import{W as K,X as O,Y as T,Z as D,_ as H,$ as W,E as X,C as Y,a0 as Z,k as j,a1 as G,t as P}from"./element-zW3XFg-9.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";/* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";const Q="/v3-admin-vite/assets/logo-text-2-CVewf8RJ.png";function ee(){return V({url:"login/code",method:"get"})}function oe(r){return V({url:"users/login",method:"post",data:r})}const se=B({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(r){const i=r;return(m,u)=>(E(),k("div",{class:q(["owl",{"owl-password":i.closeEyes}])},u[0]||(u[0]=[R('
',5)]),2))}}),te=b(se,[["__scopeId","data-v-9d98ae89"]]);function ae(){const r=p(!1);return{isFocus:r,handleBlur:()=>{r.value=!1},handleFocus:()=>{r.value=!0}}}const re={class:"login-container"},le={class:"login-card"},ne={class:"content"},de=B({__name:"index",setup(r){const i=N(),m=U(),{isFocus:u,handleBlur:h,handleFocus:x}=ae(),w=p(null),f=p(!1),_=p(""),t=A({username:"admin",password:"12345678",code:""}),C={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]};function y(){var l;(l=w.value)==null||l.validate(s=>{if(!s){X.error("表单校验不通过");return}f.value=!0,oe(t).then(({data:n})=>{m.setToken(n.token),i.push("/")}).catch(()=>{g(),t.password=""}).finally(()=>{f.value=!1})})}function g(){t.code="",_.value="",ee().then(l=>{_.value=l.data})}return g(),(l,s)=>{const n=Y,v=Z,F=j,z=G,I=P,M=K;return E(),k("div",re,[o(J,{class:"theme-switch"}),o(te,{"close-eyes":e(u)},null,8,["close-eyes"]),c("div",le,[s[4]||(s[4]=c("div",{class:"title"},[c("img",{src:Q})],-1)),c("div",ne,[o(M,{ref_key:"loginFormRef",ref:w,model:e(t),rules:C,onKeyup:L(y,["enter"])},{default:a(()=>[o(v,{prop:"username"},{default:a(()=>[o(n,{modelValue:e(t).username,"onUpdate:modelValue":s[0]||(s[0]=d=>e(t).username=d),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":e(O),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),o(v,{prop:"password"},{default:a(()=>[o(n,{modelValue:e(t).password,"onUpdate:modelValue":s[1]||(s[1]=d=>e(t).password=d),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":e(T),size:"large","show-password":"",onBlur:e(h),onFocus:e(x)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),o(v,{prop:"code"},{default:a(()=>[o(n,{modelValue:e(t).code,"onUpdate:modelValue":s[2]||(s[2]=d=>e(t).code=d),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":e(D),maxlength:"7",size:"large",onBlur:e(h),onFocus:e(x)},{append:a(()=>[o(z,{src:e(_),draggable:"false",onClick:g},{placeholder:a(()=>[o(F,null,{default:a(()=>[o(e(H))]),_:1})]),error:a(()=>[o(F,null,{default:a(()=>[o(e(W))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),o(I,{loading:e(f),type:"primary",size:"large",onClick:S(y,["prevent"])},{default:a(()=>s[3]||(s[3]=[$(" 登 录 ")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),ye=b(de,[["__scopeId","data-v-83170595"]]);export{ye as default}; +import{f as V,e as U}from"./index-CnTyAQzS.js";/* empty css *//* empty css *//* empty css */import{t as B,v as E,x as k,aE as R,H as q,r as p,az as N,U as A,L as o,u as e,A as c,J as a,al as L,M as S,a2 as $}from"./vue-V9u7w0-f.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang-E1oEHwr8.js";import{W as K,X as O,Y as T,Z as D,_ as H,$ as W,E as X,C as Y,a0 as Z,k as j,a1 as G,t as P}from"./element-zW3XFg-9.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";/* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";const Q="/v3-admin-vite/assets/logo-text-2-CVewf8RJ.png";function ee(){return V({url:"login/code",method:"get"})}function oe(r){return V({url:"users/login",method:"post",data:r})}const se=B({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(r){const i=r;return(m,u)=>(E(),k("div",{class:q(["owl",{"owl-password":i.closeEyes}])},u[0]||(u[0]=[R('
',5)]),2))}}),te=b(se,[["__scopeId","data-v-9d98ae89"]]);function ae(){const r=p(!1);return{isFocus:r,handleBlur:()=>{r.value=!1},handleFocus:()=>{r.value=!0}}}const re={class:"login-container"},le={class:"login-card"},ne={class:"content"},de=B({__name:"index",setup(r){const i=N(),m=U(),{isFocus:u,handleBlur:h,handleFocus:x}=ae(),w=p(null),f=p(!1),_=p(""),t=A({username:"admin",password:"12345678",code:""}),C={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:8,max:16,message:"长度在 8 到 16 个字符",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]};function y(){var l;(l=w.value)==null||l.validate(s=>{if(!s){X.error("表单校验不通过");return}f.value=!0,oe(t).then(({data:n})=>{m.setToken(n.token),i.push("/")}).catch(()=>{g(),t.password=""}).finally(()=>{f.value=!1})})}function g(){t.code="",_.value="",ee().then(l=>{_.value=l.data})}return g(),(l,s)=>{const n=Y,v=Z,F=j,z=G,I=P,M=K;return E(),k("div",re,[o(J,{class:"theme-switch"}),o(te,{"close-eyes":e(u)},null,8,["close-eyes"]),c("div",le,[s[4]||(s[4]=c("div",{class:"title"},[c("img",{src:Q})],-1)),c("div",ne,[o(M,{ref_key:"loginFormRef",ref:w,model:e(t),rules:C,onKeyup:L(y,["enter"])},{default:a(()=>[o(v,{prop:"username"},{default:a(()=>[o(n,{modelValue:e(t).username,"onUpdate:modelValue":s[0]||(s[0]=d=>e(t).username=d),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":e(O),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),o(v,{prop:"password"},{default:a(()=>[o(n,{modelValue:e(t).password,"onUpdate:modelValue":s[1]||(s[1]=d=>e(t).password=d),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":e(T),size:"large","show-password":"",onBlur:e(h),onFocus:e(x)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),o(v,{prop:"code"},{default:a(()=>[o(n,{modelValue:e(t).code,"onUpdate:modelValue":s[2]||(s[2]=d=>e(t).code=d),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":e(D),maxlength:"7",size:"large",onBlur:e(h),onFocus:e(x)},{append:a(()=>[o(z,{src:e(_),draggable:"false",onClick:g},{placeholder:a(()=>[o(F,null,{default:a(()=>[o(e(H))]),_:1})]),error:a(()=>[o(F,null,{default:a(()=>[o(e(W))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),o(I,{loading:e(f),type:"primary",size:"large",onClick:S(y,["prevent"])},{default:a(()=>s[3]||(s[3]=[$(" 登 录 ")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),ye=b(de,[["__scopeId","data-v-83170595"]]);export{ye as default}; diff --git a/assets/index-D5Pu8hzF.js b/assets/index-tI51bRPi.js similarity index 97% rename from assets/index-D5Pu8hzF.js rename to assets/index-tI51bRPi.js index c5820184..671494e4 100644 --- a/assets/index-D5Pu8hzF.js +++ b/assets/index-tI51bRPi.js @@ -1 +1 @@ -import"./index-isqCupv6.js";/* empty css */import{g as T,d as P}from"./el-message-box-_1IsF84Y.js";import{L as s,t as M,r as k,U as b,n as S,ac as h,v as $,x as E,J as p,z as w,u as g,a2 as _}from"./vue-V9u7w0-f.js";/* empty css *//* empty css */import{a9 as R,E as C,t as U}from"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";const B={default:({row:y,column:l})=>{const i=y[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},F={default:({row:y,column:l})=>{const i=y[l.field],[u,v]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[v])]}},O={class:"app-container"},H=M({name:"VxeTable",__name:"index",setup(y){const l=k(),i=b({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:B},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:F},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,autoLoad:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,c=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,c=n.data.list),i.loading=!1,o({total:a,result:c})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};T(f).then(d).catch(d)}))}}}),u=k(),v=b({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=x.value)==null||e.clearValidate(),Promise.resolve()}}),x=k(),m=b({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=u.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=b({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,c,d;e?(r.isUpdate=!0,v.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,v.title="新增用户");const t=(c=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:c.props;t&&(t.disabled=r.isUpdate),(d=u.value)==null||d.open(),S(()=>{var f,n;!r.isUpdate&&((f=x.value)==null||f.reset()),(n=x.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=x.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),C.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=l.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};R.confirm(t,"提示",o).then(()=>{P(e.id).then(()=>{C.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=l.value.getData(),t=(a=(o=l.value)==null?void 0:o.getProxyInfo())==null?void 0:a.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=h("vxe-button"),a=U,c=h("vxe-grid"),d=h("vxe-form"),f=h("vxe-modal");return $(),E("div",O,[s(c,w({ref_key:"xGridDom",ref:l},g(i)),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>g(r).onShowModal())},{default:p(()=>t[1]||(t[1]=[_(" 新增用户 ")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[_(" 批量删除 ")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:D=>g(r).onShowModal(n)},{default:p(()=>t[3]||(t[3]=[_(" 修改 ")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:D=>g(r).onDelete(n)},{default:p(()=>t[4]||(t[4]=[_(" 删除 ")])),_:2},1032,["onClick"])]),_:1},16),s(f,w({ref_key:"xModalDom",ref:u},g(v)),{default:p(()=>[s(d,w({ref_key:"xFormDom",ref:x},g(m)),null,16)]),_:1},16)])}}});export{H as default}; +import"./index-CnTyAQzS.js";/* empty css */import{g as T,d as P}from"./el-message-box-CkuiReOM.js";import{L as s,t as M,r as k,U as b,n as S,ac as h,v as $,x as E,J as p,z as w,u as g,a2 as _}from"./vue-V9u7w0-f.js";/* empty css *//* empty css */import{a9 as R,E as C,t as U}from"./element-zW3XFg-9.js";import"./vxe-_W0GpTmX.js";const B={default:({row:y,column:l})=>{const i=y[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},F={default:({row:y,column:l})=>{const i=y[l.field],[u,v]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[v])]}},O={class:"app-container"},H=M({name:"VxeTable",__name:"index",setup(y){const l=k(),i=b({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:B},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:F},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!0,autoLoad:!0,props:{total:"total"},ajax:{query:({page:e,form:t})=>(i.loading=!0,r.clearTable(),new Promise(o=>{let a=0,c=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,c=n.data.list),i.loading=!1,o({total:a,result:c})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};T(f).then(d).catch(d)}))}}}),u=k(),v=b({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=x.value)==null||e.clearValidate(),Promise.resolve()}}),x=k(),m=b({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=u.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=b({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,c,d;e?(r.isUpdate=!0,v.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,v.title="新增用户");const t=(c=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:c.props;t&&(t.disabled=r.isUpdate),(d=u.value)==null||d.open(),S(()=>{var f,n;!r.isUpdate&&((f=x.value)==null||f.reset()),(n=x.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=x.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),C.success("操作成功"),!r.isUpdate&&r.afterInsert(),r.commitQuery()};r.isUpdate?setTimeout(()=>o(),1e3):setTimeout(()=>o(),1e3)})},afterInsert:()=>{var t,o;const e=(o=(t=l.value)==null?void 0:t.getProxyInfo())==null?void 0:o.pager;e&&e.currentPage*e.pageSize===e.total&&++e.currentPage},onDelete:e=>{const t=`确定 删除 用户 ${e.username} ?`,o={type:"warning",showClose:!0,closeOnClickModal:!0,closeOnPressEscape:!0,cancelButtonText:"取消",confirmButtonText:"确定",dangerouslyUseHTMLString:!0};R.confirm(t,"提示",o).then(()=>{P(e.id).then(()=>{C.success("删除成功"),r.afterDelete(),r.commitQuery()})})},afterDelete:()=>{var o,a;const e=l.value.getData(),t=(a=(o=l.value)==null?void 0:o.getProxyInfo())==null?void 0:a.pager;t&&t.currentPage>1&&e.length===1&&--t.currentPage},moreFn:()=>{}});return(e,t)=>{const o=h("vxe-button"),a=U,c=h("vxe-grid"),d=h("vxe-form"),f=h("vxe-modal");return $(),E("div",O,[s(c,w({ref_key:"xGridDom",ref:l},g(i)),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>g(r).onShowModal())},{default:p(()=>t[1]||(t[1]=[_(" 新增用户 ")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[_(" 批量删除 ")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:D=>g(r).onShowModal(n)},{default:p(()=>t[3]||(t[3]=[_(" 修改 ")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:D=>g(r).onDelete(n)},{default:p(()=>t[4]||(t[4]=[_(" 删除 ")])),_:2},1032,["onClick"])]),_:1},16),s(f,w({ref_key:"xModalDom",ref:u},g(v)),{default:p(()=>[s(d,w({ref_key:"xFormDom",ref:x},g(m)),null,16)]),_:1},16)])}}});export{H as default}; diff --git a/assets/index.vue_vue_type_script_setup_true_lang-BX7o_nwo.js b/assets/index.vue_vue_type_script_setup_true_lang-E1oEHwr8.js similarity index 95% rename from assets/index.vue_vue_type_script_setup_true_lang-BX7o_nwo.js rename to assets/index.vue_vue_type_script_setup_true_lang-E1oEHwr8.js index 04cf01a4..70b3045e 100644 --- a/assets/index.vue_vue_type_script_setup_true_lang-BX7o_nwo.js +++ b/assets/index.vue_vue_type_script_setup_true_lang-E1oEHwr8.js @@ -1 +1 @@ -import{h as y}from"./index-isqCupv6.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{z as g,a2 as E,k as T,q as v,y as C,x as B}from"./element-zW3XFg-9.js";import{t as D,v as c,I as d,J as e,L as s,x as M,ai as V,u as l,G as b,A as p,O as I}from"./vue-V9u7w0-f.js";const G=D({__name:"index",setup(L){const{themeList:_,activeThemeName:u,setTheme:h}=y();function f({clientX:o,clientY:n},r){const m=Math.hypot(Math.max(o,window.innerWidth-o),Math.max(n,window.innerHeight-n)),t=document.documentElement.style;t.setProperty("--v3-theme-x",`${o}px`),t.setProperty("--v3-theme-y",`${n}px`),t.setProperty("--v3-theme-r",`${m}px`);const a=()=>{h(r)};document.startViewTransition?document.startViewTransition(a):a()}return(o,n)=>{const r=T,m=v,t=B,a=C,w=g;return c(),d(w,{trigger:"click"},{dropdown:e(()=>[s(a,null,{default:e(()=>[(c(!0),M(b,null,V(l(_),(i,x)=>(c(),d(t,{key:x,disabled:l(u)===i.name,onClick:k=>f(k,i.name)},{default:e(()=>[p("span",null,I(i.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[p("div",null,[s(m,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[s(r,{size:20},{default:e(()=>[s(l(E))]),_:1})]),_:1})])]),_:1})}}});export{G as _}; +import{h as y}from"./index-CnTyAQzS.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-l0sNRNKZ.js";import{z as g,a2 as E,k as T,q as v,y as C,x as B}from"./element-zW3XFg-9.js";import{t as D,v as c,I as d,J as e,L as s,x as M,ai as V,u as l,G as b,A as p,O as I}from"./vue-V9u7w0-f.js";const G=D({__name:"index",setup(L){const{themeList:_,activeThemeName:u,setTheme:h}=y();function f({clientX:o,clientY:n},r){const m=Math.hypot(Math.max(o,window.innerWidth-o),Math.max(n,window.innerHeight-n)),t=document.documentElement.style;t.setProperty("--v3-theme-x",`${o}px`),t.setProperty("--v3-theme-y",`${n}px`),t.setProperty("--v3-theme-r",`${m}px`);const a=()=>{h(r)};document.startViewTransition?document.startViewTransition(a):a()}return(o,n)=>{const r=T,m=v,t=B,a=C,w=g;return c(),d(w,{trigger:"click"},{dropdown:e(()=>[s(a,null,{default:e(()=>[(c(!0),M(b,null,V(l(_),(i,x)=>(c(),d(t,{key:x,disabled:l(u)===i.name,onClick:k=>f(k,i.name)},{default:e(()=>[p("span",null,I(i.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[p("div",null,[s(m,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[s(r,{size:20},{default:e(()=>[s(l(E))]),_:1})]),_:1})])]),_:1})}}});export{G as _}; diff --git a/assets/page-level-BxGg49Qv.js b/assets/page-level-BMQJhlt5.js similarity index 81% rename from assets/page-level-BxGg49Qv.js rename to assets/page-level-BMQJhlt5.js index 2d82dc0a..a4546d6a 100644 --- a/assets/page-level-BxGg49Qv.js +++ b/assets/page-level-BMQJhlt5.js @@ -1 +1 @@ -import"./index-isqCupv6.js";/* empty css */import{S as a}from"./SwitchRoles-CO69hybb.js";import{o as r}from"./element-zW3XFg-9.js";import{t as s,v as n,x as p,L as t,J as c,a2 as m}from"./vue-V9u7w0-f.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";/* empty css */const i={class:"app-container"},d=s({__name:"page-level",setup(l){return(f,e)=>{const o=r;return n(),p("div",i,[t(a),t(o,{shadow:"never",class:"content"},{default:c(()=>e[0]||(e[0]=[m(" 当前页面只有「Admin」角色可见,切换角色后将不能进入该页面 ")])),_:1})])}}}),B=_(d,[["__scopeId","data-v-a30433e8"]]);export{B as default}; +import"./index-CnTyAQzS.js";/* empty css */import{S as a}from"./SwitchRoles-BKiprZJR.js";import{o as r}from"./element-zW3XFg-9.js";import{t as s,v as n,x as p,L as t,J as c,a2 as m}from"./vue-V9u7w0-f.js";import{_}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";/* empty css */const i={class:"app-container"},d=s({__name:"page-level",setup(l){return(f,e)=>{const o=r;return n(),p("div",i,[t(a),t(o,{shadow:"never",class:"content"},{default:c(()=>e[0]||(e[0]=[m(" 当前页面只有「Admin」角色可见,切换角色后将不能进入该页面 ")])),_:1})])}}}),B=_(d,[["__scopeId","data-v-a30433e8"]]);export{B as default}; diff --git a/assets/use-fetch-select-BR1adVr6.js b/assets/use-fetch-select-BRmppHFD.js similarity index 96% rename from assets/use-fetch-select-BR1adVr6.js rename to assets/use-fetch-select-BRmppHFD.js index 4fd25285..90768d64 100644 --- a/assets/use-fetch-select-BR1adVr6.js +++ b/assets/use-fetch-select-BRmppHFD.js @@ -1 +1 @@ -import"./index-isqCupv6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as u,f as w,t as x,v as r,x as f,L as d,J as i,R as v,u as l,I as p,a2 as R,G as k,ai as A,h as E,z as C}from"./vue-V9u7w0-f.js";import{E as D,o as L,a3 as M,ae as T,af as B,ag as F}from"./element-zW3XFg-9.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";function O(c){const{api:a}=c,o=u(!1),e=u([]),m=u(""),t=()=>{o.value=!0,e.value=[],a().then(s=>{e.value=s.data}).finally(()=>{o.value=!1})};return w(()=>{t()}),{loading:o,options:e,value:m}}const P={code:0,data:[{label:"苹果",value:1},{label:"香蕉",value:2},{label:"橘子",value:3,disabled:!0}],message:"获取 Select 数据成功"},S="接口发生错误";function y(){return new Promise((c,a)=>{setTimeout(()=>{Math.random()<.8?c(P):(a(new Error(S)),D.error(S))},2e3)})}const G={class:"app-container"},I=x({__name:"use-fetch-select",setup(c){const{loading:a,options:o,value:e}=O({api:y});return(m,t)=>{const s=L,h=F,g=T,V=B,_=M;return r(),f("div",G,[d(s,{shadow:"never"},{default:i(()=>t[2]||(t[2]=[R(" 该示例是演示:通过 composable 自动调用 api 后拿到 Select 组件需要的数据并传递给 Select 组件 ")])),_:1}),v((r(),p(s,{header:"Select 示例",shadow:"never"},{default:i(()=>[d(g,{modelValue:l(e),"onUpdate:modelValue":t[0]||(t[0]=n=>E(e)?e.value=n:null),filterable:""},{default:i(()=>[(r(!0),f(k,null,A(l(o),(n,b)=>(r(),p(h,C({ref_for:!0},n,{key:b,placeholder:"请选择"}),null,16))),128))]),_:1},8,["modelValue"])]),_:1})),[[_,l(a)]]),v((r(),p(s,{header:"Select V2 示例(如果数据量过多,可以选择该组件)",shadow:"never"},{default:i(()=>[d(V,{modelValue:l(e),"onUpdate:modelValue":t[1]||(t[1]=n=>E(e)?e.value=n:null),options:l(o),filterable:"",placeholder:"请选择"},null,8,["modelValue","options"])]),_:1})),[[_,l(a)]])])}}}),Y=N(I,[["__scopeId","data-v-15aa76c1"]]);export{Y as default}; +import"./index-CnTyAQzS.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{r as u,f as w,t as x,v as r,x as f,L as d,J as i,R as v,u as l,I as p,a2 as R,G as k,ai as A,h as E,z as C}from"./vue-V9u7w0-f.js";import{E as D,o as L,a3 as M,ae as T,af as B,ag as F}from"./element-zW3XFg-9.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";function O(c){const{api:a}=c,o=u(!1),e=u([]),m=u(""),t=()=>{o.value=!0,e.value=[],a().then(s=>{e.value=s.data}).finally(()=>{o.value=!1})};return w(()=>{t()}),{loading:o,options:e,value:m}}const P={code:0,data:[{label:"苹果",value:1},{label:"香蕉",value:2},{label:"橘子",value:3,disabled:!0}],message:"获取 Select 数据成功"},S="接口发生错误";function y(){return new Promise((c,a)=>{setTimeout(()=>{Math.random()<.8?c(P):(a(new Error(S)),D.error(S))},2e3)})}const G={class:"app-container"},I=x({__name:"use-fetch-select",setup(c){const{loading:a,options:o,value:e}=O({api:y});return(m,t)=>{const s=L,h=F,g=T,V=B,_=M;return r(),f("div",G,[d(s,{shadow:"never"},{default:i(()=>t[2]||(t[2]=[R(" 该示例是演示:通过 composable 自动调用 api 后拿到 Select 组件需要的数据并传递给 Select 组件 ")])),_:1}),v((r(),p(s,{header:"Select 示例",shadow:"never"},{default:i(()=>[d(g,{modelValue:l(e),"onUpdate:modelValue":t[0]||(t[0]=n=>E(e)?e.value=n:null),filterable:""},{default:i(()=>[(r(!0),f(k,null,A(l(o),(n,b)=>(r(),p(h,C({ref_for:!0},n,{key:b,placeholder:"请选择"}),null,16))),128))]),_:1},8,["modelValue"])]),_:1})),[[_,l(a)]]),v((r(),p(s,{header:"Select V2 示例(如果数据量过多,可以选择该组件)",shadow:"never"},{default:i(()=>[d(V,{modelValue:l(e),"onUpdate:modelValue":t[1]||(t[1]=n=>E(e)?e.value=n:null),options:l(o),filterable:"",placeholder:"请选择"},null,8,["modelValue","options"])]),_:1})),[[_,l(a)]])])}}}),Y=N(I,[["__scopeId","data-v-15aa76c1"]]);export{Y as default}; diff --git a/assets/use-fullscreen-loading-BH5zT3B9.js b/assets/use-fullscreen-loading-Df-1y1yY.js similarity index 96% rename from assets/use-fullscreen-loading-BH5zT3B9.js rename to assets/use-fullscreen-loading-Df-1y1yY.js index de9edd33..31c3a672 100644 --- a/assets/use-fullscreen-loading-BH5zT3B9.js +++ b/assets/use-fullscreen-loading-Df-1y1yY.js @@ -1,4 +1,4 @@ -import"./index-isqCupv6.js";/* empty css *//* empty css *//* empty css */import{ah as m,o as _,E as u,t as g}from"./element-zW3XFg-9.js";import{t as f,v as E,x as y,L as a,J as n,a2 as c}from"./vue-V9u7w0-f.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";const x={lock:!0,text:"加载中..."},p=(o,e={})=>{let r;return async(...i)=>{try{return r=m.service({...x,...e}),await o(...i)}finally{r.close()}}},v={code:0,data:{list:[]},message:"获取成功"};function C(o){return new Promise(e=>{setTimeout(()=>{e({...v,data:{list:o}})},1e3)})}function S(){return new Promise((o,e)=>{setTimeout(()=>{e(new Error("发生错误"))},1e3)})}const k={class:"app-container"},A=` +import"./index-CnTyAQzS.js";/* empty css *//* empty css *//* empty css */import{ah as m,o as _,E as u,t as g}from"./element-zW3XFg-9.js";import{t as f,v as E,x as y,L as a,J as n,a2 as c}from"./vue-V9u7w0-f.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";const x={lock:!0,text:"加载中..."},p=(o,e={})=>{let r;return async(...i)=>{try{return r=m.service({...x,...e}),await o(...i)}finally{r.close()}}},v={code:0,data:{list:[]},message:"获取成功"};function C(o){return new Promise(e=>{setTimeout(()=>{e({...v,data:{list:o}})},1e3)})}function S(){return new Promise((o,e)=>{setTimeout(()=>{e(new Error("发生错误"))},1e3)})}const k={class:"app-container"},A=` {const m=_,a=C,u=v;return w(),x("div",g,[o(m,{shadow:"never"},{default:t(()=>e[4]||(e[4]=[r(" 该示例是演示:通过调用 composable 开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ")])),_:1}),o(m,{header:"示例",shadow:"never"},{footer:t(()=>[o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[0]||(e[0]=n=>l(f)("局部水印",{color:"#409eff"}))},{default:t(()=>e[5]||(e[5]=[r(" 创建局部水印 ")])),_:1}),o(a,{type:"warning",onClick:e[1]||(e[1]=n=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[6]||(e[6]=[r(" 创建无防御局部水印 ")])),_:1}),o(a,{type:"danger",onClick:l(i)},{default:t(()=>e[7]||(e[7]=[r(" 清除局部水印 ")])),_:1},8,["onClick"])]),_:1}),o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[2]||(e[2]=n=>l(p)("全局水印",{color:"#409eff"}))},{default:t(()=>e[8]||(e[8]=[r(" 创建全局水印 ")])),_:1}),o(a,{type:"warning",onClick:e[3]||(e[3]=n=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[9]||(e[9]=[r(" 创建无防御全局水印 ")])),_:1}),o(a,{type:"danger",onClick:l(k)},{default:t(()=>e[10]||(e[10]=[r(" 清除全局水印 ")])),_:1},8,["onClick"])]),_:1})]),default:t(()=>[b("div",{ref_key:"localRef",ref:s,class:"local"},null,512)]),_:1})])}}}),j=c(B,[["__scopeId","data-v-2e8369f3"]]);export{j as default}; +import"./index-CnTyAQzS.js";/* empty css *//* empty css *//* empty css */import{u as d}from"./useWatermark-XzwShjbX.js";import{o as _,t as C,ai as v}from"./element-zW3XFg-9.js";import{t as y,r as W,v as w,x,L as o,J as t,a2 as r,u as l,A as b}from"./vue-V9u7w0-f.js";import{_ as c}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./vxe-_W0GpTmX.js";const g={class:"app-container"},B=y({__name:"use-watermark",setup($){const s=W(null),{setWatermark:f,clearWatermark:i}=d(s),{setWatermark:p,clearWatermark:k}=d();return(E,e)=>{const m=_,a=C,u=v;return w(),x("div",g,[o(m,{shadow:"never"},{default:t(()=>e[4]||(e[4]=[r(" 该示例是演示:通过调用 composable 开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ")])),_:1}),o(m,{header:"示例",shadow:"never"},{footer:t(()=>[o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[0]||(e[0]=n=>l(f)("局部水印",{color:"#409eff"}))},{default:t(()=>e[5]||(e[5]=[r(" 创建局部水印 ")])),_:1}),o(a,{type:"warning",onClick:e[1]||(e[1]=n=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[6]||(e[6]=[r(" 创建无防御局部水印 ")])),_:1}),o(a,{type:"danger",onClick:l(i)},{default:t(()=>e[7]||(e[7]=[r(" 清除局部水印 ")])),_:1},8,["onClick"])]),_:1}),o(u,null,{default:t(()=>[o(a,{type:"primary",onClick:e[2]||(e[2]=n=>l(p)("全局水印",{color:"#409eff"}))},{default:t(()=>e[8]||(e[8]=[r(" 创建全局水印 ")])),_:1}),o(a,{type:"warning",onClick:e[3]||(e[3]=n=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:t(()=>e[9]||(e[9]=[r(" 创建无防御全局水印 ")])),_:1}),o(a,{type:"danger",onClick:l(k)},{default:t(()=>e[10]||(e[10]=[r(" 清除全局水印 ")])),_:1},8,["onClick"])]),_:1})]),default:t(()=>[b("div",{ref_key:"localRef",ref:s,class:"local"},null,512)]),_:1})])}}}),j=c(B,[["__scopeId","data-v-2e8369f3"]]);export{j as default}; diff --git a/index.html b/index.html index f641663d..e728f4f1 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ V3 Admin Vite - +