diff --git a/index.html b/index.html index 25fb1403..1809d975 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ V3 Admin Vite - + diff --git a/static/403-CQmILWUP.js b/static/403-COPxJLMo.js similarity index 99% rename from static/403-CQmILWUP.js rename to static/403-COPxJLMo.js index d4adc304..78bfa891 100644 --- a/static/403-CQmILWUP.js +++ b/static/403-COPxJLMo.js @@ -1 +1 @@ -import{E as r}from"./ErrorPageLayout-6WcpeR8b.js";import{q as e,t as s,aJ as l,p as i,M as h,O as n,U as p,u as c}from"./vue-BWN0lbwY.js";import"./index-lhjAkg-7.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.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},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default}; +import{E as r}from"./ErrorPageLayout-BzK-MhH1.js";import{q as e,t as s,aJ as l,p as i,M as h,O as n,U as p,u as c}from"./vue-BWN0lbwY.js";import"./index-B_OLftB1.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.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},w=i({__name:"403",setup(o){return(t,v)=>(e(),h(r,null,{default:n(()=>[p(c(a))]),_:1}))}});export{w as default}; diff --git a/static/404-BAH3jhh3.js b/static/404-BZUaD_US.js similarity index 99% rename from static/404-BAH3jhh3.js rename to static/404-BZUaD_US.js index 24221046..28331a52 100644 --- a/static/404-BAH3jhh3.js +++ b/static/404-BZUaD_US.js @@ -1 +1 @@ -import{E as c}from"./ErrorPageLayout-6WcpeR8b.js";import{q as l,t as h,aJ as e,p as s,M as p,O as M,U as f,u as i}from"./vue-BWN0lbwY.js";import"./index-lhjAkg-7.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.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},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default}; +import{E as c}from"./ErrorPageLayout-BzK-MhH1.js";import{q as l,t as h,aJ as e,p as s,M as p,O as M,U as f,u as i}from"./vue-BWN0lbwY.js";import"./index-B_OLftB1.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.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},z=s({__name:"404",setup(t){return(a,v)=>(l(),p(c,null,{default:M(()=>[f(i(r))]),_:1}))}});export{z as default}; diff --git a/static/ErrorPageLayout-6WcpeR8b.js b/static/ErrorPageLayout-BzK-MhH1.js similarity index 87% rename from static/ErrorPageLayout-6WcpeR8b.js rename to static/ErrorPageLayout-BzK-MhH1.js index c90cbade..ef9f1578 100644 --- a/static/ErrorPageLayout-6WcpeR8b.js +++ b/static/ErrorPageLayout-BzK-MhH1.js @@ -1 +1 @@ -import{_}from"./index-lhjAkg-7.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-BWN0lbwY.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E}; +import{_}from"./index-B_OLftB1.js";import{ai as t,q as c,t as d,v as l,H as i,U as o,O as r,S as p}from"./vue-BWN0lbwY.js";const u={},f={class:"error-page"},m={class:"error-page-svg"};function v(s,e){const a=t("el-button"),n=t("router-link");return c(),d("div",f,[l("div",m,[i(s.$slots,"default",{},void 0,!0)]),o(n,{to:"/"},{default:r(()=>[o(a,{type:"primary"},{default:r(()=>e[0]||(e[0]=[p("回到首页")])),_:1})]),_:1})])}const x=_(u,[["render",v],["__scopeId","data-v-2fba9562"]]);export{x as E}; diff --git a/static/SwitchRoles-B_14D8wJ.js b/static/SwitchRoles-Bu5yhVPP.js similarity index 91% rename from static/SwitchRoles-B_14D8wJ.js rename to static/SwitchRoles-Bu5yhVPP.js index 9c10300a..a00a804c 100644 --- a/static/SwitchRoles-B_14D8wJ.js +++ b/static/SwitchRoles-Bu5yhVPP.js @@ -1 +1 @@ -import{e as u,_ as c}from"./index-lhjAkg-7.js";import{p as _,r as p,d as m,ai as r,q as v,t as f,v as t,T as w,u as S,U as a,O as b}from"./vue-BWN0lbwY.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+w(S(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:b(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S}; +import{e as u,_ as c}from"./index-B_OLftB1.js";import{p as _,r as p,d as m,ai as r,q as v,t as f,v as t,T as w,u as S,U as a,O as b}from"./vue-BWN0lbwY.js";const h={class:"switch-roles"},V=_({__name:"SwitchRoles",setup(g){const o=u(),s=p(o.roles[0]);return m(s,l=>{o.changeRoles(l)}),(l,e)=>{const n=r("el-radio-button"),i=r("el-radio-group");return v(),f("div",null,[t("div",null,"你的角色:"+w(S(o).roles),1),t("div",h,[e[1]||(e[1]=t("span",null,"切换用户(模拟重新登录):",-1)),a(i,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d)},{default:b(()=>[a(n,{label:"editor",value:"editor"}),a(n,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),B=c(V,[["__scopeId","data-v-693bfeca"]]);export{B as S}; diff --git a/static/directive-Cw3FC8jv.js b/static/directive-CicEJf-Y.js similarity index 95% rename from static/directive-Cw3FC8jv.js rename to static/directive-CicEJf-Y.js index 43c8534c..9dfb8022 100644 --- a/static/directive-Cw3FC8jv.js +++ b/static/directive-CicEJf-Y.js @@ -1 +1 @@ -import{e as g,_ as b}from"./index-lhjAkg-7.js";import{S as y}from"./SwitchRoles-B_14D8wJ.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default}; +import{e as g,_ as b}from"./index-B_OLftB1.js";import{S as y}from"./SwitchRoles-Bu5yhVPP.js";import{p as P,ai as p,aq as x,q as o,t as w,U as r,v as a,P as u,M as n,O as i,S as t,u as f,R as v}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const _=d=>{if(Array.isArray(d)&&d.length>0){const{roles:c}=g();return c.some(e=>d.includes(e))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},z={class:"app-container"},B={class:"margin-top-30"},C={class:"margin-top-15"},N={class:"margin-top-30"},S=P({__name:"directive",setup(d){return(c,e)=>{const s=p("el-tag"),l=p("el-tab-pane"),k=p("el-tabs"),m=x("permission");return o(),w("div",z,[r(y),a("div",B,[a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[0]||(e[0]=[t(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)])),_:1})),[[m,["admin"]]])]),a("div",null,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[1]||(e[1]=[t(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)])),_:1})),[[m,["editor"]]])]),a("div",C,[u((o(),n(s,{type:"success",size:"large",effect:"plain"},{default:i(()=>e[2]||(e[2]=[t(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)])),_:1})),[[m,["admin","editor"]]])])]),a("div",N,[r(s,{type:"warning",size:"large"},{default:i(()=>e[3]||(e[3]=[t(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")])),_:1}),r(k,{type:"border-card",class:"margin-top-15"},{default:i(()=>[f(_)(["admin"])?(o(),n(l,{key:0,label:"admin"},{default:i(()=>[e[5]||(e[5]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[4]||(e[4]=[t(`v-if="checkPermission(['admin'])"`)])),_:1}),e[6]||(e[6]=t(" 所以只有 admin 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["editor"])?(o(),n(l,{key:1,label:"editor"},{default:i(()=>[e[8]||(e[8]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[7]||(e[7]=[t(`v-if="checkPermission(['editor'])"`)])),_:1}),e[9]||(e[9]=t(" 所以只有 editor 可以看见这句话 "))]),_:1})):v("",!0),f(_)(["admin","editor"])?(o(),n(l,{key:2,label:"admin 和 editor"},{default:i(()=>[e[11]||(e[11]=t(" 这里采用了 ")),r(s,null,{default:i(()=>e[10]||(e[10]=[t(`v-if="checkPermission(['admin', 'editor'])"`)])),_:1}),e[12]||(e[12]=t(" 所以 admin 和 editor 都可以看见这句话 "))]),_:1})):v("",!0)]),_:1})])])}}}),U=b(S,[["__scopeId","data-v-295dc3c3"]]);export{U as default}; diff --git a/static/index-Dv97s5rO.js b/static/index-BODi2BxH.js similarity index 92% rename from static/index-Dv97s5rO.js rename to static/index-BODi2BxH.js index a3cb2d33..25996c1a 100644 --- a/static/index-Dv97s5rO.js +++ b/static/index-BODi2BxH.js @@ -1 +1 @@ -import{_ as o}from"./index-lhjAkg-7.js";import{q as n,t as a,v as t}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const i={},r={"h-full":"","uno-padding-20":""};function s(c,e){return n(),a("div",r,e[0]||(e[0]=[t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1)]))}const p=o(i,[["render",s]]);export{p as default}; +import{_ as o}from"./index-B_OLftB1.js";import{q as n,t as a,v as t}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const i={},r={"h-full":"","uno-padding-20":""};function s(c,e){return n(),a("div",r,e[0]||(e[0]=[t("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[t("div",{ma:""},[t("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"UnoCSS"),t("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"该页面是一个 UnoCSS 的使用案例,其他页面依旧采用 Scss"),t("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[t("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1)]))}const p=o(i,[["render",s]]);export{p as default}; diff --git a/static/index-lhjAkg-7.js b/static/index-B_OLftB1.js similarity index 97% rename from static/index-lhjAkg-7.js rename to static/index-B_OLftB1.js index 806105cf..fe9fe816 100644 --- a/static/index-lhjAkg-7.js +++ b/static/index-B_OLftB1.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-Csy9NssY.js","static/vue-BWN0lbwY.js","static/useWatermark-CFXy0vbL.js","static/element-C5mYgMeM.js","static/index.vue_vue_type_script_setup_true_lang-CGuepwMI.js","static/vxe-CtPXIgsa.js","static/index-Dd44OBIm.css","static/index-zxkte_Zk.js","static/403-CQmILWUP.js","static/ErrorPageLayout-6WcpeR8b.js","static/ErrorPageLayout-C88Ivnpw.css","static/404-BAH3jhh3.js","static/index-6Z0bGmt1.js","static/index-BOQekaY2.css","static/index-CzCqoH2W.js","static/index-Dv11vANz.css","static/index-Dv97s5rO.js","static/index-DeU_5Hj6.js","static/index-DSkebEBU.js","static/index-krJKiOLS.css","static/index-B5Im1QMx.js","static/index-NMA_My8s.js","static/index-CDm88bV6.css","static/index-ab9Zq7pQ.js","static/index-BWmsIUk1.js","static/index-Bxrsma17.js","static/index-Bq80v23q.js","static/index-CcjFwFDv.js","static/index-DHm7zfij.js","static/use-fetch-select-DR-WPxlD.js","static/use-fullscreen-loading-BJYNUu-a.js","static/use-watermark-CnmUtAlx.js","static/use-watermark-BtM2la4P.css","static/page-BW2SS80a.js","static/SwitchRoles-B_14D8wJ.js","static/SwitchRoles-8Ij4Wsns.css","static/page-Pf9etMd-.css","static/directive-Cw3FC8jv.js","static/directive-BZjE_Fvk.css"])))=>i.map(i=>d[i]); -var qt=Object.defineProperty;var $t=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>$t(e,typeof t!="symbol"?t+"":t,n);import{r as B,w as Ae,ax as Wt,ay as re,d as ut,p as ct,ai as Me,q as lt,M as Jt,O as Gt,U as Kt,u as Xt,az as Yt,aA as Zt,A as Qt,f as en,t as tn,v as nn,at as rn}from"./vue-BWN0lbwY.js";import{E as on,m as sn,b as Z,c as an,e as un,g as cn,i as ln,f as dn}from"./element-C5mYgMeM.js";import{V as Re,a as fn}from"./vxe-CtPXIgsa.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const j="v3-admin-vite";class R{}I(R,"TOKEN",`${j}-token-key`),I(R,"CONFIG_LAYOUT",`${j}-config-layout-key`),I(R,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),I(R,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),I(R,"VISITED_VIEWS",`${j}-visited-views-key`),I(R,"CACHED_VIEWS",`${j}-cached-views-key`);const mn=()=>{const e=localStorage.getItem(R.CONFIG_LAYOUT);return e?JSON.parse(e):null},pn=e=>{localStorage.setItem(R.CONFIG_LAYOUT,JSON.stringify(e))},Zo=()=>{localStorage.removeItem(R.CONFIG_LAYOUT)},Qo=()=>localStorage.getItem(R.SIDEBAR_STATUS),es=e=>{localStorage.setItem(R.SIDEBAR_STATUS,e)},hn=()=>localStorage.getItem(R.ACTIVE_THEME_NAME),En=e=>{localStorage.setItem(R.ACTIVE_THEME_NAME,e)},gn=()=>{const e=localStorage.getItem(R.VISITED_VIEWS);return JSON.parse(e??"[]")},yn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(R.VISITED_VIEWS,JSON.stringify(e))},wn=()=>{const e=localStorage.getItem(R.CACHED_VIEWS);return JSON.parse(e??"[]")},bn=e=>{localStorage.setItem(R.CACHED_VIEWS,JSON.stringify(e))},dt="normal",ft=[{title:"默认",name:dt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ce=B(hn()||dt),Sn=e=>{Ce.value=e},vn=e=>{document.documentElement.classList.add(e)},_n=e=>{const t=ft.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)},Tn=()=>{Ae(()=>{const e=Ce.value;_n(e),vn(e),En(e)})};function An(){return{themeList:ft,activeThemeName:Ce,initTheme:Tn,setTheme:Sn}}const Oe=Wt();var Rn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Rn||{}),mt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(mt||{});const ts="opened",ns="closed",Cn={layoutMode:mt.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},On={...Cn,...mn()},Fe=re("settings",()=>{const e={};for(const[n,r]of Object.entries(On)){const o=B(r);e[n]=o,ut(o,()=>{const s=t();pn(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),Fn="grey-mode",xn="color-weakness",He=document.documentElement.classList,Dn=()=>{const e=Fe();Ae(()=>{He.toggle(Fn,e.showGreyMode),He.toggle(xn,e.showColorWeakness)})};function kn(){return{initGreyAndColorWeakness:Dn}}var Pn={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 Bn=ct({__name:"App",setup(e){const{initTheme:t}=An(),{initGreyAndColorWeakness:n}=kn();return t(),n(),on({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(r,o)=>{const s=Me("router-view"),i=Me("el-config-provider");return lt(),Jt(i,{locale:Xt(Pn)},{default:Gt(()=>[Kt(s)]),_:1},8,["locale"])}}}),Ln="modulepreload",Nn=function(e){return"/v3-admin-vite/"+e},je={},T=function(t,n,r){let o=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"));o=Promise.allSettled(n.map(h=>{if(h=Nn(h),h in je)return;je[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":Ln,d||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),d)return new Promise((E,w)=>{l.addEventListener("load",E),l.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return o.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},In=Yt("/v3-admin-vite/"),pt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>T(()=>import("./index-Csy9NssY.js"),__vite__mapDeps([0,1,2,3,4,5,6])),ht=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>T(()=>import("./index-zxkte_Zk.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>T(()=>import("./403-CQmILWUP.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>T(()=>import("./404-BAH3jhh3.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>T(()=>import("./index-6Z0bGmt1.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>T(()=>import("./index-CzCqoH2W.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>T(()=>import("./index-Dv97s5rO.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>T(()=>import("./index-DeU_5Hj6.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>T(()=>import("./index-B5Im1QMx.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>T(()=>import("./index-NMA_My8s.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>T(()=>import("./index-ab9Zq7pQ.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>T(()=>import("./index-BWmsIUk1.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>T(()=>import("./index-Bxrsma17.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>T(()=>import("./index-Bq80v23q.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>T(()=>import("./index-CcjFwFDv.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>T(()=>import("./index-DHm7zfij.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>T(()=>import("./use-fetch-select-DR-WPxlD.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>T(()=>import("./use-fullscreen-loading-BJYNUu-a.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>T(()=>import("./use-watermark-CnmUtAlx.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],ze=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>T(()=>import("./page-BW2SS80a.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>T(()=>import("./directive-Cw3FC8jv.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=Zt({history:In,routes:ht});function Vn(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}const Un=re("tags-view",()=>{const{cacheTagsView:e}=Fe(),t=B(e?gn():[]),n=B(e?wn():[]);return Ae(()=>{yn(t.value),bn(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=[]}}});function X(e){for(var t=1;t"u")){i=X({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).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=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;cxe.get(R.TOKEN),qe=e=>{xe.set(R.TOKEN,e)},$e=()=>{xe.remove(R.TOKEN)};function Et(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hn}=Object.prototype,{getPrototypeOf:ke}=Object,oe=(e=>t=>{const n=Hn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:z}=Array,W=se("undefined");function jn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gt=P("ArrayBuffer");function zn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&>(e.buffer),t}const qn=se("string"),D=se("function"),yt=se("number"),ie=e=>e!==null&&typeof e=="object",$n=e=>e===!0||e===!1,Q=e=>{if(oe(e)!=="object")return!1;const t=ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wn=P("Date"),Jn=P("File"),Gn=P("Blob"),Kn=P("FileList"),Xn=e=>ie(e)&&D(e.pipe),Yn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||D(e.append)&&((t=oe(e))==="formdata"||t==="object"&&D(e.toString)&&e.toString()==="[object FormData]"))},Zn=P("URLSearchParams"),[Qn,er,tr,nr]=["ReadableStream","Request","Response","Headers"].map(P),rr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),z(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bt=e=>!W(e)&&e!==U;function he(){const{caseless:e}=bt(this)&&this||{},t={},n=(r,o)=>{const s=e&&wt(t,o)||o;Q(t[s])&&Q(r)?t[s]=he(t[s],r):Q(r)?t[s]=he({},r):z(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&D(o)?e[s]=Et(o,n):e[s]=o},{allOwnKeys:r}),e),sr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ir=(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)},ar=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ke(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ur=(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},cr=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!yt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ke(Uint8Array)),dr=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},fr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mr=P("HTMLFormElement"),pr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),We=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hr=P("RegExp"),St=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Er=e=>{St(e,(t,n)=>{if(D(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(D(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+"'")})}})},gr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return z(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ce="abcdefghijklmnopqrstuvwxyz",Je="0123456789",vt={DIGIT:Je,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Je},br=(e=16,t=vt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sr(e){return!!(e&&D(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=z(r)?[]:{};return J(r,(i,c)=>{const h=n(i,o+1);!W(h)&&(s[c]=h)}),t[o]=void 0,s}}return r};return n(e,0)},_r=P("AsyncFunction"),Tr=e=>e&&(ie(e)||D(e))&&D(e.then)&&D(e.catch),_t=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:o,data:s})=>{o===U&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",D(U.postMessage)),Ar=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||_t,a={isArray:z,isArrayBuffer:gt,isBuffer:jn,isFormData:Yn,isArrayBufferView:zn,isString:qn,isNumber:yt,isBoolean:$n,isObject:ie,isPlainObject:Q,isReadableStream:Qn,isRequest:er,isResponse:tr,isHeaders:nr,isUndefined:W,isDate:Wn,isFile:Jn,isBlob:Gn,isRegExp:hr,isFunction:D,isStream:Xn,isURLSearchParams:Zn,isTypedArray:lr,isFileList:Kn,forEach:J,merge:he,extend:or,trim:rr,stripBOM:sr,inherits:ir,toFlatObject:ar,kindOf:oe,kindOfTest:P,endsWith:ur,toArray:cr,forEachEntry:dr,matchAll:fr,isHTMLForm:mr,hasOwnProperty:We,hasOwnProp:We,reduceDescriptors:St,freezeMethods:Er,toObjectSet:gr,toCamelCase:pr,noop:yr,toFiniteNumber:wr,findKey:wt,global:U,isContextDefined:bt,ALPHABET:vt,generateString:br,isSpecCompliantForm:Sr,toJSONObject:vr,isAsyncFn:_r,isThenable:Tr,setImmediate:_t,asap:Ar};function g(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.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 Tt=g.prototype,At={};["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=>{At[e]={value:e}});Object.defineProperties(g,At);Object.defineProperty(Tt,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(Tt);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Rr=null;function Ee(e){return a.isPlainObject(e)||a.isArray(e)}function Rt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,n){return e?e.concat(t).map(function(o,s){return o=Rt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Cr(e){return a.isArray(e)&&!e.some(Ee)}const Or=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(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(f,m){return!a.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(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 p(u,f,m){let y=u;if(u&&!m&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&Cr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(y=a.toArray(u)))return f=Rt(f),y.forEach(function(v,S){!(a.isUndefined(v)||v===null)&&t.append(i===!0?Ge([f],S,s):i===null?f:f+"[]",d(v))}),!1}return Ee(u)?!0:(t.append(Ge(m,f,s),d(u)),!1)}const l=[],E=Object.assign(Or,{defaultVisitor:p,convertValue:d,isVisitable:Ee});function w(u,f){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));l.push(u),a.forEach(u,function(y,b){(!(a.isUndefined(y)||y===null)&&o.call(t,y,a.isString(b)?b.trim():b,f,E))===!0&&w(y,f?f.concat(b):[b])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ke(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&&ae(e,this,t)}const Ct=Pe.prototype;Ct.append=function(t,n){this._pairs.push([t,n])};Ct.toString=function(t){const n=t?function(r){return t.call(this,r,Ke)}:Ke;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ot(e,t,n){if(!t)return e;const r=n&&n.encode||Fr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Pe(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Xe{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 Ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xr=typeof URLSearchParams<"u"?URLSearchParams:Pe,Dr=typeof FormData<"u"?FormData:null,kr=typeof Blob<"u"?Blob:null,Pr={isBrowser:!0,classes:{URLSearchParams:xr,FormData:Dr,Blob:kr},protocols:["http","https","file","blob","url","data"]},Be=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,Br=Be&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Lr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nr=Be&&window.location.href||"http://localhost",Ir=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Be,hasStandardBrowserEnv:Br,hasStandardBrowserWebWorkerEnv:Lr,navigator:ge,origin:Nr},Symbol.toStringTag,{value:"Module"})),F={...Ir,...Pr};function Vr(e,t){return ae(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ur(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 o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,h?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Mr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ur(r),o,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:Ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(xt(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(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Hr(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;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:F.classes.FormData,Blob:F.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 jr=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"]),zr=e=>{const t={};let n,r,o;return e&&e.split(` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-Cib8VatE.js","static/vue-BWN0lbwY.js","static/useWatermark-CFXy0vbL.js","static/element-C5mYgMeM.js","static/index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js","static/vxe-CtPXIgsa.js","static/index-CwQ7_t66.css","static/index-zxkte_Zk.js","static/403-COPxJLMo.js","static/ErrorPageLayout-BzK-MhH1.js","static/ErrorPageLayout-C88Ivnpw.css","static/404-BZUaD_US.js","static/index-CDO_SB_r.js","static/index-BOQekaY2.css","static/index-DPcx_Uvi.js","static/index-Dv11vANz.css","static/index-BODi2BxH.js","static/index-CqFYS1wj.js","static/index-DBUZIcJ7.js","static/index-krJKiOLS.css","static/index-DaS3DRlm.js","static/index-Bk-ig1fv.js","static/index-CDm88bV6.css","static/index-ab9Zq7pQ.js","static/index-DTnylfwR.js","static/index-Bxrsma17.js","static/index-Bq80v23q.js","static/index-CcjFwFDv.js","static/index-DHm7zfij.js","static/use-fetch-select-DR-WPxlD.js","static/use-fullscreen-loading-BJYNUu-a.js","static/use-watermark-BH-K4jq-.js","static/use-watermark-BtM2la4P.css","static/page-C9G8YCb_.js","static/SwitchRoles-Bu5yhVPP.js","static/SwitchRoles-8Ij4Wsns.css","static/page-Pf9etMd-.css","static/directive-CicEJf-Y.js","static/directive-BZjE_Fvk.css"])))=>i.map(i=>d[i]); +var qt=Object.defineProperty;var $t=(e,t,n)=>t in e?qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>$t(e,typeof t!="symbol"?t+"":t,n);import{r as B,w as Ae,ax as Wt,ay as re,d as ut,p as ct,ai as Me,q as lt,M as Jt,O as Gt,U as Kt,u as Xt,az as Yt,aA as Zt,A as Qt,f as en,t as tn,v as nn,at as rn}from"./vue-BWN0lbwY.js";import{E as on,m as sn,b as Z,c as an,e as un,g as cn,i as ln,f as dn}from"./element-C5mYgMeM.js";import{V as Re,a as fn}from"./vxe-CtPXIgsa.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const j="v3-admin-vite";class R{}I(R,"TOKEN",`${j}-token-key`),I(R,"CONFIG_LAYOUT",`${j}-config-layout-key`),I(R,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),I(R,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),I(R,"VISITED_VIEWS",`${j}-visited-views-key`),I(R,"CACHED_VIEWS",`${j}-cached-views-key`);const mn=()=>{const e=localStorage.getItem(R.CONFIG_LAYOUT);return e?JSON.parse(e):null},pn=e=>{localStorage.setItem(R.CONFIG_LAYOUT,JSON.stringify(e))},Zo=()=>{localStorage.removeItem(R.CONFIG_LAYOUT)},Qo=()=>localStorage.getItem(R.SIDEBAR_STATUS),es=e=>{localStorage.setItem(R.SIDEBAR_STATUS,e)},hn=()=>localStorage.getItem(R.ACTIVE_THEME_NAME),En=e=>{localStorage.setItem(R.ACTIVE_THEME_NAME,e)},gn=()=>{const e=localStorage.getItem(R.VISITED_VIEWS);return JSON.parse(e??"[]")},yn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(R.VISITED_VIEWS,JSON.stringify(e))},wn=()=>{const e=localStorage.getItem(R.CACHED_VIEWS);return JSON.parse(e??"[]")},bn=e=>{localStorage.setItem(R.CACHED_VIEWS,JSON.stringify(e))},dt="normal",ft=[{title:"默认",name:dt},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],Ce=B(hn()||dt),Sn=e=>{Ce.value=e},vn=e=>{document.documentElement.classList.add(e)},_n=e=>{const t=ft.map(n=>n.name).filter(n=>n!==e);document.documentElement.classList.remove(...t)},Tn=()=>{Ae(()=>{const e=Ce.value;_n(e),vn(e),En(e)})};function An(){return{themeList:ft,activeThemeName:Ce,initTheme:Tn,setTheme:Sn}}const Oe=Wt();var Rn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Rn||{}),mt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(mt||{});const ts="opened",ns="closed",Cn={layoutMode:mt.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},On={...Cn,...mn()},Fe=re("settings",()=>{const e={};for(const[n,r]of Object.entries(On)){const o=B(r);e[n]=o,ut(o,()=>{const s=t();pn(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),Fn="grey-mode",xn="color-weakness",He=document.documentElement.classList,Dn=()=>{const e=Fe();Ae(()=>{He.toggle(Fn,e.showGreyMode),He.toggle(xn,e.showColorWeakness)})};function kn(){return{initGreyAndColorWeakness:Dn}}var Pn={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 Bn=ct({__name:"App",setup(e){const{initTheme:t}=An(),{initGreyAndColorWeakness:n}=kn();return t(),n(),on({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(r,o)=>{const s=Me("router-view"),i=Me("el-config-provider");return lt(),Jt(i,{locale:Xt(Pn)},{default:Gt(()=>[Kt(s)]),_:1},8,["locale"])}}}),Ln="modulepreload",Nn=function(e){return"/v3-admin-vite/"+e},je={},T=function(t,n,r){let o=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"));o=Promise.allSettled(n.map(h=>{if(h=Nn(h),h in je)return;je[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const l=document.createElement("link");if(l.rel=d?"stylesheet":Ln,d||(l.as="script"),l.crossOrigin="",l.href=h,c&&l.setAttribute("nonce",c),document.head.appendChild(l),d)return new Promise((E,w)=>{l.addEventListener("load",E),l.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return o.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},In=Yt("/v3-admin-vite/"),pt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>T(()=>import("./index-Cib8VatE.js"),__vite__mapDeps([0,1,2,3,4,5,6])),ht=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>T(()=>import("./index-zxkte_Zk.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>T(()=>import("./403-COPxJLMo.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>T(()=>import("./404-BZUaD_US.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>T(()=>import("./index-CDO_SB_r.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>T(()=>import("./index-DPcx_Uvi.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:V,redirect:"/unocss/index",children:[{path:"index",component:()=>T(()=>import("./index-BODi2BxH.js"),__vite__mapDeps([16,1,3,5])),name:"UnoCSS",meta:{title:"UnoCSS",svgIcon:"unocss"}}]},{path:"/link",meta:{title:"外链",svgIcon:"link"},children:[{path:"https://juejin.cn/post/7089377403717287972",component:()=>{},name:"Link1",meta:{title:"中文文档"}},{path:"https://juejin.cn/column/7207659644487139387",component:()=>{},name:"Link2",meta:{title:"新手教程"}}]},{path:"/table",component:V,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>T(()=>import("./index-CqFYS1wj.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>T(()=>import("./index-DaS3DRlm.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:V,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>T(()=>import("./index-Bk-ig1fv.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>T(()=>import("./index-ab9Zq7pQ.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>T(()=>import("./index-DTnylfwR.js"),__vite__mapDeps([24,1,3,5])),redirect:"/menu/menu1/menu1-2/menu1-2-1",name:"Menu1-2",meta:{title:"menu1-2"},children:[{path:"menu1-2-1",component:()=>T(()=>import("./index-Bxrsma17.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>T(()=>import("./index-Bq80v23q.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>T(()=>import("./index-CcjFwFDv.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>T(()=>import("./index-DHm7zfij.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:V,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>T(()=>import("./use-fetch-select-DR-WPxlD.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>T(()=>import("./use-fullscreen-loading-BJYNUu-a.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>T(()=>import("./use-watermark-BH-K4jq-.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],ze=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>T(()=>import("./page-C9G8YCb_.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>T(()=>import("./directive-CicEJf-Y.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=Zt({history:In,routes:ht});function Vn(){try{N.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&N.hasRoute(t)&&N.removeRoute(t)})}catch{window.location.reload()}}const Un=re("tags-view",()=>{const{cacheTagsView:e}=Fe(),t=B(e?gn():[]),n=B(e?wn():[]);return Ae(()=>{yn(t.value),bn(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=[]}}});function X(e){for(var t=1;t"u")){i=X({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).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=o+"="+e.write(s,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],i={},c=0;cxe.get(R.TOKEN),qe=e=>{xe.set(R.TOKEN,e)},$e=()=>{xe.remove(R.TOKEN)};function Et(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hn}=Object.prototype,{getPrototypeOf:ke}=Object,oe=(e=>t=>{const n=Hn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:z}=Array,W=se("undefined");function jn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gt=P("ArrayBuffer");function zn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&>(e.buffer),t}const qn=se("string"),D=se("function"),yt=se("number"),ie=e=>e!==null&&typeof e=="object",$n=e=>e===!0||e===!1,Q=e=>{if(oe(e)!=="object")return!1;const t=ke(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wn=P("Date"),Jn=P("File"),Gn=P("Blob"),Kn=P("FileList"),Xn=e=>ie(e)&&D(e.pipe),Yn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||D(e.append)&&((t=oe(e))==="formdata"||t==="object"&&D(e.toString)&&e.toString()==="[object FormData]"))},Zn=P("URLSearchParams"),[Qn,er,tr,nr]=["ReadableStream","Request","Response","Headers"].map(P),rr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),z(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const U=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bt=e=>!W(e)&&e!==U;function he(){const{caseless:e}=bt(this)&&this||{},t={},n=(r,o)=>{const s=e&&wt(t,o)||o;Q(t[s])&&Q(r)?t[s]=he(t[s],r):Q(r)?t[s]=he({},r):z(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&D(o)?e[s]=Et(o,n):e[s]=o},{allOwnKeys:r}),e),sr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ir=(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)},ar=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ke(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ur=(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},cr=e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!yt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ke(Uint8Array)),dr=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},fr=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},mr=P("HTMLFormElement"),pr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),We=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hr=P("RegExp"),St=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},Er=e=>{St(e,(t,n)=>{if(D(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(D(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+"'")})}})},gr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return z(e)?r(e):r(String(e).split(t)),n},yr=()=>{},wr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ce="abcdefghijklmnopqrstuvwxyz",Je="0123456789",vt={DIGIT:Je,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+Je},br=(e=16,t=vt.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Sr(e){return!!(e&&D(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=z(r)?[]:{};return J(r,(i,c)=>{const h=n(i,o+1);!W(h)&&(s[c]=h)}),t[o]=void 0,s}}return r};return n(e,0)},_r=P("AsyncFunction"),Tr=e=>e&&(ie(e)||D(e))&&D(e.then)&&D(e.catch),_t=((e,t)=>e?setImmediate:t?((n,r)=>(U.addEventListener("message",({source:o,data:s})=>{o===U&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),U.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",D(U.postMessage)),Ar=typeof queueMicrotask<"u"?queueMicrotask.bind(U):typeof process<"u"&&process.nextTick||_t,a={isArray:z,isArrayBuffer:gt,isBuffer:jn,isFormData:Yn,isArrayBufferView:zn,isString:qn,isNumber:yt,isBoolean:$n,isObject:ie,isPlainObject:Q,isReadableStream:Qn,isRequest:er,isResponse:tr,isHeaders:nr,isUndefined:W,isDate:Wn,isFile:Jn,isBlob:Gn,isRegExp:hr,isFunction:D,isStream:Xn,isURLSearchParams:Zn,isTypedArray:lr,isFileList:Kn,forEach:J,merge:he,extend:or,trim:rr,stripBOM:sr,inherits:ir,toFlatObject:ar,kindOf:oe,kindOfTest:P,endsWith:ur,toArray:cr,forEachEntry:dr,matchAll:fr,isHTMLForm:mr,hasOwnProperty:We,hasOwnProp:We,reduceDescriptors:St,freezeMethods:Er,toObjectSet:gr,toCamelCase:pr,noop:yr,toFiniteNumber:wr,findKey:wt,global:U,isContextDefined:bt,ALPHABET:vt,generateString:br,isSpecCompliantForm:Sr,toJSONObject:vr,isAsyncFn:_r,isThenable:Tr,setImmediate:_t,asap:Ar};function g(e,t,n,r,o){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),o&&(this.response=o,this.status=o.status?o.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 Tt=g.prototype,At={};["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=>{At[e]={value:e}});Object.defineProperties(g,At);Object.defineProperty(Tt,"isAxiosError",{value:!0});g.from=(e,t,n,r,o,s)=>{const i=Object.create(Tt);return a.toFlatObject(e,i,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),g.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const Rr=null;function Ee(e){return a.isPlainObject(e)||a.isArray(e)}function Rt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ge(e,t,n){return e?e.concat(t).map(function(o,s){return o=Rt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Cr(e){return a.isArray(e)&&!e.some(Ee)}const Or=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(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(f,m){return!a.isUndefined(m[f])});const r=n.metaTokens,o=n.visitor||p,s=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function d(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 p(u,f,m){let y=u;if(u&&!m&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&Cr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(y=a.toArray(u)))return f=Rt(f),y.forEach(function(v,S){!(a.isUndefined(v)||v===null)&&t.append(i===!0?Ge([f],S,s):i===null?f:f+"[]",d(v))}),!1}return Ee(u)?!0:(t.append(Ge(m,f,s),d(u)),!1)}const l=[],E=Object.assign(Or,{defaultVisitor:p,convertValue:d,isVisitable:Ee});function w(u,f){if(!a.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));l.push(u),a.forEach(u,function(y,b){(!(a.isUndefined(y)||y===null)&&o.call(t,y,a.isString(b)?b.trim():b,f,E))===!0&&w(y,f?f.concat(b):[b])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Ke(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&&ae(e,this,t)}const Ct=Pe.prototype;Ct.append=function(t,n){this._pairs.push([t,n])};Ct.toString=function(t){const n=t?function(r){return t.call(this,r,Ke)}:Ke;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Fr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ot(e,t,n){if(!t)return e;const r=n&&n.encode||Fr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Pe(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Xe{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 Ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xr=typeof URLSearchParams<"u"?URLSearchParams:Pe,Dr=typeof FormData<"u"?FormData:null,kr=typeof Blob<"u"?Blob:null,Pr={isBrowser:!0,classes:{URLSearchParams:xr,FormData:Dr,Blob:kr},protocols:["http","https","file","blob","url","data"]},Be=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,Br=Be&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Lr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nr=Be&&window.location.href||"http://localhost",Ir=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Be,hasStandardBrowserEnv:Br,hasStandardBrowserWebWorkerEnv:Lr,navigator:ge,origin:Nr},Symbol.toStringTag,{value:"Module"})),F={...Ir,...Pr};function Vr(e,t){return ae(e,new F.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return F.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ur(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 o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,h?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Mr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ur(r),o,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:Ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(xt(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(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Vr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Hr(t)):t}],transformResponse:[function(t){const n=this.transitional||G.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;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:F.classes.FormData,Blob:F.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 jr=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"]),zr=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&jr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ye=Symbol("internals");function $(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function qr(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 $r=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function le(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Wr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Jr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let x=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,h,d){const p=$(h);if(!p)throw new Error("header name must be a non-empty string");const l=a.findKey(o,p);(!l||o[l]===void 0||d===!0||d===void 0&&o[l]!==!1)&&(o[l||h]=ee(c))}const i=(c,h)=>a.forEach(c,(d,p)=>s(d,p,h));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!$r(t))i(zr(t),n);else if(a.isHeaders(t))for(const[c,h]of t.entries())s(h,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=$(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return qr(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=$(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||le(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=$(i),i){const c=a.findKey(r,i);c&&(!n||le(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||le(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=ee(o),delete n[s];return}const c=t?Wr(s):String(s).trim();c!==s&&delete n[s],n[c]=ee(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=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(o=>r.set(o)),r}static accessor(t){const r=(this[Ye]=this[Ye]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=$(i);r[c]||(Jr(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}};x.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(x.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(x);function de(e,t){const n=this||G,r=t||n,o=x.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Dt(e){return!!(e&&e.__CANCEL__)}function q(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(q,g,{__CANCEL__:!0});function kt(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 Gr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),p=r[s];i||(i=d),n[o]=h,r[o]=d;let l=s,E=0;for(;l!==o;)E+=n[l++],l=l%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-i{n=p,o=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const p=Date.now(),l=p-n;l>=r?i(d,p):(o=d,s||(s=setTimeout(()=>{s=null,i(o)},r-l)))},()=>o&&i(o)]}const te=(e,t,n=3)=>{let r=0;const o=Kr(50,250);return Xr(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,h=i-r,d=o(h),p=i<=c;r=i;const l={loaded:i,total:c,progress:c?i/c:void 0,bytes:h,rate:d||void 0,estimated:d&&c&&p?(c-i)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(l)},n)},Ze=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>a.asap(()=>e(...t)),Yr=F.hasStandardBrowserEnv?function(){const t=F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const c=a.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),Zr=F.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!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 Qr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eo(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t){return e&&!Qr(t)?eo(e,t):t}const et=e=>e instanceof x?{...e}:e;function H(e,t){t=t||{};const n={};function r(d,p,l){return a.isPlainObject(d)&&a.isPlainObject(p)?a.merge.call({caseless:l},d,p):a.isPlainObject(p)?a.merge({},p):a.isArray(p)?p.slice():p}function o(d,p,l){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d,l)}else return r(d,p,l)}function s(d,p){if(!a.isUndefined(p))return r(void 0,p)}function i(d,p){if(a.isUndefined(p)){if(!a.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function c(d,p,l){if(l in t)return r(d,p);if(l in e)return r(void 0,d)}const h={url:s,method:s,data:s,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:(d,p)=>o(et(d),et(p),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(p){const l=h[p]||o,E=l(e[p],t[p],p);a.isUndefined(E)&&l!==c||(n[p]=E)}),n}const Bt=e=>{const t=H({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=x.from(i),t.url=Ot(Pt(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(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((h=i.getContentType())!==!1){const[d,...p]=h?h.split(";").map(l=>l.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...p].join("; "))}}if(F.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Yr(t.url))){const d=o&&s&&Zr.read(s);d&&i.set(o,d)}return t},to=typeof XMLHttpRequest<"u",no=to&&function(e){return new Promise(function(n,r){const o=Bt(e);let s=o.data;const i=x.from(o.headers).normalize();let{responseType:c,onUploadProgress:h,onDownloadProgress:d}=o,p,l,E,w,u;function f(){w&&w(),u&&u(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const v=x.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:v,config:e,request:m};kt(function(O){n(O),f()},function(O){r(O),f()},_),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new g("Request aborted",g.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Ft;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new g(S,_.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,m)),m=null},s===void 0&&i.setContentType(null),"setRequestHeader"in m&&a.forEach(i.toJSON(),function(S,_){m.setRequestHeader(_,S)}),a.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),c&&c!=="json"&&(m.responseType=o.responseType),d&&([E,u]=te(d,!0),m.addEventListener("progress",E)),h&&m.upload&&([l,w]=te(h),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(p=v=>{m&&(r(!v||v.type?new q(null,e,m):v),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const b=Gr(o.url);if(b&&F.protocols.indexOf(b)===-1){r(new g("Unsupported protocol "+b+":",g.ERR_BAD_REQUEST,e));return}m.send(s||null)})},ro=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(d){if(!o){o=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof g?p:new q(p instanceof Error?p.message:p))}};let i=t&&setTimeout(()=>{i=null,s(new g(`timeout ${t} of ms exceeded`,g.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:h}=r;return h.unsubscribe=()=>a.asap(c),h}},oo=function*(e,t){let n=e.byteLength;if(n{const o=so(e,t);let s=0,i,c=h=>{i||(i=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:d,value:p}=await o.next();if(d){c(),h.close();return}let l=p.byteLength;if(n){let E=s+=l;n(E)}h.enqueue(new Uint8Array(p))}catch(d){throw c(d),d}},cancel(h){return c(h),o.return()}},{highWaterMark:2})},ue=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lt=ue&&typeof ReadableStream=="function",ao=ue&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Nt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uo=Lt&&Nt(()=>{let e=!1;const t=new Request(F.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),nt=64*1024,ye=Lt&&Nt(()=>a.isReadableStream(new Response("").body)),ne={stream:ye&&(e=>e.body)};ue&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ne[t]&&(ne[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 co=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(F.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 ao(e)).byteLength},lo=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??co(t)},fo=ue&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:h,responseType:d,headers:p,withCredentials:l="same-origin",fetchOptions:E}=Bt(e);d=d?(d+"").toLowerCase():"text";let w=ro([o,s&&s.toAbortSignal()],i),u;const f=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let m;try{if(h&&uo&&n!=="get"&&n!=="head"&&(m=await lo(p,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(a.isFormData(r)&&(C=_.headers.get("content-type"))&&p.setContentType(C),_.body){const[O,k]=Ze(m,te(Qe(h)));r=tt(_.body,nt,O,k)}}a.isString(l)||(l=l?"include":"omit");const y="credentials"in Request.prototype;u=new Request(t,{...E,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:y?l:void 0});let b=await fetch(u);const v=ye&&(d==="stream"||d==="response");if(ye&&(c||v&&f)){const _={};["status","statusText","headers"].forEach(Ue=>{_[Ue]=b[Ue]});const C=a.toFiniteNumber(b.headers.get("content-length")),[O,k]=c&&Ze(C,te(Qe(c),!0))||[];b=new Response(tt(b.body,nt,O,()=>{k&&k(),f&&f()}),_)}d=d||"text";let S=await ne[a.findKey(ne,d)||"text"](b,e);return!v&&f&&f(),await new Promise((_,C)=>{kt(_,C,{data:S,headers:x.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:u})})}catch(y){throw f&&f(),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)}}),we={http:Rr,xhr:no,fetch:fo};a.forEach(we,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const rt=e=>`- ${e}`,mo=e=>a.isFunction(e)||e===null||e===!1,It={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : `+s.map(rt).join(` diff --git a/static/index-NMA_My8s.js b/static/index-Bk-ig1fv.js similarity index 91% rename from static/index-NMA_My8s.js rename to static/index-Bk-ig1fv.js index ad38542a..5c3dfaa0 100644 --- a/static/index-NMA_My8s.js +++ b/static/index-Bk-ig1fv.js @@ -1 +1 @@ -import{_ as i}from"./index-lhjAkg-7.js";import{ai as t,q as _,t as l,v as p,S as n,U as o,O as r}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const d={},m={class:"app-container"};function u(f,e){const a=t("el-link"),s=t("router-view"),c=t("el-card");return _(),l("div",m,[p("h4",null,[e[1]||(e[1]=n(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ")),o(a,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[n(" src/config/route.ts ")])),_:1})]),o(c,{header:"二级路由 - menu1"},{default:r(()=>[o(s)]),_:1})])}const g=i(d,[["render",u],["__scopeId","data-v-6b5ec9cb"]]);export{g as default}; +import{_ as i}from"./index-B_OLftB1.js";import{ai as t,q as _,t as l,v as p,S as n,U as o,O as r}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const d={},m={class:"app-container"};function u(f,e){const a=t("el-link"),s=t("router-view"),c=t("el-card");return _(),l("div",m,[p("h4",null,[e[1]||(e[1]=n(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: ")),o(a,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:r(()=>e[0]||(e[0]=[n(" src/config/route.ts ")])),_:1})]),o(c,{header:"二级路由 - menu1"},{default:r(()=>[o(s)]),_:1})])}const g=i(d,[["render",u],["__scopeId","data-v-6b5ec9cb"]]);export{g as default}; diff --git a/static/index-6Z0bGmt1.js b/static/index-CDO_SB_r.js similarity index 94% rename from static/index-6Z0bGmt1.js rename to static/index-CDO_SB_r.js index 502e34c8..0c7cb9e1 100644 --- a/static/index-6Z0bGmt1.js +++ b/static/index-CDO_SB_r.js @@ -1 +1 @@ -import{p as V,q as F,t as b,aJ as q,J as M,r as m,aD as N,Z as E,ai as r,U as e,u as t,v as p,O as a,a2 as J,S as O,a8 as S}from"./vue-BWN0lbwY.js";import{_ as B,f as D,e as I}from"./index-lhjAkg-7.js";import{v as K,w as L,x as $,y as A,z as T}from"./element-C5mYgMeM.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-CGuepwMI.js";import"./vxe-CtPXIgsa.js";const j="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",G=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(l){const u=l;return(f,c)=>(F(),b("div",{class:M(["owl",{"owl-password":u.closeEyes}])},c[0]||(c[0]=[q('
',5)]),2))}}),H=B(G,[["__scopeId","data-v-957a4d98"]]);function P(){const l=m(!1);return{isFocus:l,handleBlur:()=>{l.value=!1},handleFocus:()=>{l.value=!0}}}const Q={class:"login-container"},W={class:"login-card"},X={class:"content"},Y=V({__name:"index",setup(l){const u=N(),{isFocus:f,handleBlur:c,handleFocus:C}=P(),h=m(null),_=m(!1),g=m(""),s=E({username:"admin",password:"12345678",code:""}),k={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"}]},w=()=>{var n;(n=h.value)==null||n.validate((o,d)=>{o?(_.value=!0,I().login(s).then(()=>{u.push({path:"/"})}).catch(()=>{v(),s.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},v=()=>{s.code="",g.value="",D().then(n=>{g.value=n.data})};return v(),(n,o)=>{const d=r("el-input"),x=r("el-form-item"),y=r("el-icon"),z=r("el-image"),U=r("el-button"),R=r("el-form");return F(),b("div",Q,[e(Z,{class:"theme-switch"}),e(H,{"close-eyes":t(f)},null,8,["close-eyes"]),p("div",W,[o[4]||(o[4]=p("div",{class:"title"},[p("img",{src:j})],-1)),p("div",X,[e(R,{ref_key:"loginFormRef",ref:h,model:s,rules:k,onKeyup:S(w,["enter"])},{default:a(()=>[e(x,{prop:"username"},{default:a(()=>[e(d,{modelValue:s.username,"onUpdate:modelValue":o[0]||(o[0]=i=>s.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":t(K),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(x,{prop:"password"},{default:a(()=>[e(d,{modelValue:s.password,"onUpdate:modelValue":o[1]||(o[1]=i=>s.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":t(L),size:"large","show-password":"",onBlur:t(c),onFocus:t(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(x,{prop:"code"},{default:a(()=>[e(d,{modelValue:s.code,"onUpdate:modelValue":o[2]||(o[2]=i=>s.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":t($),maxlength:"7",size:"large"},{append:a(()=>[e(z,{src:g.value,onClick:v,draggable:"false"},{placeholder:a(()=>[e(y,null,{default:a(()=>[e(t(T))]),_:1})]),error:a(()=>[e(y,null,{default:a(()=>[e(t(A))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(U,{loading:_.value,type:"primary",size:"large",onClick:J(w,["prevent"])},{default:a(()=>o[3]||(o[3]=[O("登 录")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),le=B(Y,[["__scopeId","data-v-c8304cc7"]]);export{le as default}; +import{p as V,q as F,t as b,aJ as q,J as M,r as m,aD as N,Z as E,ai as r,U as e,u as t,v as p,O as a,a2 as J,S as O,a8 as S}from"./vue-BWN0lbwY.js";import{_ as B,f as D,e as I}from"./index-B_OLftB1.js";import{v as K,w as L,x as $,y as A,z as T}from"./element-C5mYgMeM.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js";import"./vxe-CtPXIgsa.js";const j="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",G=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(l){const u=l;return(f,c)=>(F(),b("div",{class:M(["owl",{"owl-password":u.closeEyes}])},c[0]||(c[0]=[q('
',5)]),2))}}),H=B(G,[["__scopeId","data-v-957a4d98"]]);function P(){const l=m(!1);return{isFocus:l,handleBlur:()=>{l.value=!1},handleFocus:()=>{l.value=!0}}}const Q={class:"login-container"},W={class:"login-card"},X={class:"content"},Y=V({__name:"index",setup(l){const u=N(),{isFocus:f,handleBlur:c,handleFocus:C}=P(),h=m(null),_=m(!1),g=m(""),s=E({username:"admin",password:"12345678",code:""}),k={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"}]},w=()=>{var n;(n=h.value)==null||n.validate((o,d)=>{o?(_.value=!0,I().login(s).then(()=>{u.push({path:"/"})}).catch(()=>{v(),s.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},v=()=>{s.code="",g.value="",D().then(n=>{g.value=n.data})};return v(),(n,o)=>{const d=r("el-input"),x=r("el-form-item"),y=r("el-icon"),z=r("el-image"),U=r("el-button"),R=r("el-form");return F(),b("div",Q,[e(Z,{class:"theme-switch"}),e(H,{"close-eyes":t(f)},null,8,["close-eyes"]),p("div",W,[o[4]||(o[4]=p("div",{class:"title"},[p("img",{src:j})],-1)),p("div",X,[e(R,{ref_key:"loginFormRef",ref:h,model:s,rules:k,onKeyup:S(w,["enter"])},{default:a(()=>[e(x,{prop:"username"},{default:a(()=>[e(d,{modelValue:s.username,"onUpdate:modelValue":o[0]||(o[0]=i=>s.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":t(K),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(x,{prop:"password"},{default:a(()=>[e(d,{modelValue:s.password,"onUpdate:modelValue":o[1]||(o[1]=i=>s.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":t(L),size:"large","show-password":"",onBlur:t(c),onFocus:t(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(x,{prop:"code"},{default:a(()=>[e(d,{modelValue:s.code,"onUpdate:modelValue":o[2]||(o[2]=i=>s.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":t($),maxlength:"7",size:"large"},{append:a(()=>[e(z,{src:g.value,onClick:v,draggable:"false"},{placeholder:a(()=>[e(y,null,{default:a(()=>[e(t(T))]),_:1})]),error:a(()=>[e(y,null,{default:a(()=>[e(t(A))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(U,{loading:_.value,type:"primary",size:"large",onClick:J(w,["prevent"])},{default:a(()=>o[3]||(o[3]=[O("登 录")])),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),le=B(Y,[["__scopeId","data-v-c8304cc7"]]);export{le as default}; diff --git a/static/index-Cib8VatE.js b/static/index-Cib8VatE.js new file mode 100644 index 00000000..5936f9c4 --- /dev/null +++ b/static/index-Cib8VatE.js @@ -0,0 +1 @@ +import{ay as lt,Z as rt,r as D,d as Oe,E as qe,c as He,A as je,f as L,p as A,q as i,t as C,T as N,u as f,ai as g,v as k,U as u,O as _,W as Xe,M as b,aB as ct,Q as ue,R as I,aC as ve,aD as he,F as H,aa as Y,a2 as re,H as de,a9 as it,S as K,J as q,aE as Ke,w as fe,aF as Ge,b as ut,I as Je,aG as dt,s as ft,a8 as le,aH as oe,n as pt,aI as mt,P as ge,V as ye}from"./vue-BWN0lbwY.js";import{g as _t,S as Ye,D as Q,s as De,a as vt,u as be,b as G,L as te,_ as P,c as Ze,d as Ce,e as ht,r as gt}from"./index-B_OLftB1.js";import{u as yt}from"./useWatermark-CFXy0vbL.js";import{h as bt,j as wt,g as kt,k as St,b as pe,l as xt,n as Ct,o as Qe,u as $t,r as Tt,p as Et,q as Vt,s as Mt,t as Lt}from"./element-C5mYgMeM.js";import{_ as It}from"./index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js";import"./vxe-CtPXIgsa.js";function At(n){n?De(vt):De(Ye)}const se=lt("app",()=>{const n=rt({opened:_t()!==Ye,withoutAnimation:!1}),e=D(Q.Desktop);return Oe(()=>n.opened,a=>At(a)),{device:e,sidebar:n,toggleSidebar:a=>{n.opened=!n.opened,n.withoutAnimation=a},closeSidebar:a=>{n.opened=!1,n.withoutAnimation=a},toggleDevice:a=>{e.value=a}}}),Rt=992,Dt=()=>{const n=se(),{listenerRouteChange:e}=be(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const o=t();n.toggleDevice(o?Q.Mobile:Q.Desktop),o&&n.closeSidebar(!0)}};e(()=>{n.device===Q.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),qe(()=>{window.addEventListener("resize",s)}),He(()=>{t()&&(n.toggleDevice(Q.Mobile),n.closeSidebar(!0))}),je(()=>{window.removeEventListener("resize",s)})},et=se(),Pt=L(()=>et.device===Q.Mobile),Ft=L(()=>et.device===Q.Desktop);function ae(){return{isMobile:Pt,isDesktop:Ft}}const we=G(),zt=L(()=>we.layoutMode===te.Left),Wt=L(()=>we.layoutMode===te.Top),Nt=L(()=>we.layoutMode===te.LeftTop),Ut=n=>{we.layoutMode=n};function ee(){return{isLeft:zt,isTop:Wt,isLeftTop:Nt,setLayoutMode:Ut}}const Bt={class:"layout-footer"},Ot=A({__name:"index",setup(n){const e="V3 Admin Vite";return(t,s)=>(i(),C("footer",Bt,"MIT © 2021-PRESENT "+N(f(e)),1))}}),qt=P(Ot,[["__scopeId","data-v-18d14396"]]),Ht={class:"app-main"},jt={class:"app-scrollbar"},Xt=A({__name:"AppMain",setup(n){const e=Ze(),t=G();return(s,o)=>{const a=g("router-view"),r=g("el-backtop");return i(),C("section",Ht,[k("div",jt,[u(a,null,{default:_(({Component:l,route:c})=>[u(Xe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(i(),b(ct,{include:f(e).cachedViews},[(i(),b(ue(l),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),f(t).showFooter?(i(),b(qt,{key:0})):I("",!0)]),u(r),u(r,{target:".app-scrollbar"})])}}}),$e=P(Xt,[["__scopeId","data-v-e96aa434"]]),Kt=A({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,s=e,o=()=>{s("toggleClick")};return(a,r)=>{const l=g("el-icon");return i(),C("div",{onClick:o},[u(l,{size:20,class:"icon"},{default:_(()=>[t.isActive?(i(),b(f(bt),{key:0})):(i(),b(f(wt),{key:1}))]),_:1})])}}}),Gt=P(Kt,[["__scopeId","data-v-a21f53d4"]]);var Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.TokenData=void 0;Z.parse=Me;var Jt=Z.compile=tn;Z.match=on;Z.pathToRegexp=ot;Z.stringify=ln;const Te="/",Ee=n=>n,tt=/^[$_\p{ID_Start}]$/u,Ve=/^[$\u200c\u200d\p{ID_Continue}]$/u,me="https://git.new/pathToRegexpError",Yt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function Zt(n){return n.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function X(n){return n.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Qt(n){const e=[...n];let t=0;function s(){let o="";if(tt.test(e[++t]))for(o+=e[t];Ve.test(e[++t]);)o+=e[t];else if(e[t]==='"'){let a=t;for(;tnn(o,e,t));return o=>{const a=[""];for(const r of s){const[l,...c]=r(o);a[0]+=l,a.push(...c)}return a}}function nn(n,e,t){if(n.type==="text")return()=>[n.value];if(n.type==="group"){const o=nt(n.tokens,e,t);return a=>{const[r,...l]=o(a);return l.length?[""]:[r]}}const s=t||Ee;return n.type==="wildcard"&&t!==!1?o=>{const a=o[n.name];if(a==null)return["",n.name];if(!Array.isArray(a)||a.length===0)throw new TypeError(`Expected "${n.name}" to be a non-empty array`);return[a.map((r,l)=>{if(typeof r!="string")throw new TypeError(`Expected "${n.name}/${l}" to be a string`);return s(r)}).join(e)]}:o=>{const a=o[n.name];if(a==null)return["",n.name];if(typeof a!="string")throw new TypeError(`Expected "${n.name}" to be a string`);return[s(a)]}}function on(n,e={}){const{decode:t=decodeURIComponent,delimiter:s=Te}=e,{regexp:o,keys:a}=ot(n,e),r=a.map(l=>t===!1?Ee:l.type==="param"?t:c=>c.split(s).map(t));return function(c){const d=o.exec(c);if(!d)return!1;const p=d[0],m=Object.create(null);for(let w=1;wv instanceof ke?v:Me(v,e));for(const{tokens:v}of p)for(const h of ce(v,0,[])){const x=sn(h,t,r);l.push(x)}let m=`^(?:${l.join("|")})`;return a&&(m+=`(?:${X(t)}$)?`),m+=s?"$":`(?=${X(t)}|$)`,{regexp:new RegExp(m,c),keys:r}}function*ce(n,e,t){if(e===n.length)return yield t;const s=n[e];if(s.type==="group"){const o=t.slice();for(const a of ce(s.tokens,0,o))yield*ce(n,e+1,a)}else t.push(s);yield*ce(n,e+1,t)}function sn(n,e,t){let s="",o="",a=!0;for(let r=0;rVe.test(s)):!1}function cn(n){return(n==null?void 0:n.type)!=="text"?!0:!Ve.test(n.value[0])}const un={key:0,class:"no-redirect"},dn=["onClick"],fn=A({__name:"index",setup(n){const e=ve(),t=he(),{listenerRouteChange:s}=be(),o=D([]),a=()=>{o.value=e.matched.filter(c=>{var d,p;return((d=c.meta)==null?void 0:d.title)&&((p=c.meta)==null?void 0:p.breadcrumb)!==!1})},r=c=>Jt(c)(e.params),l=c=>{const{redirect:d,path:p}=c;if(d){t.push(d);return}t.push(r(p))};return s(c=>{c.path.startsWith("/redirect/")||a()},!0),(c,d)=>{const p=g("el-breadcrumb-item"),m=g("el-breadcrumb");return i(),b(m,null,{default:_(()=>[(i(!0),C(H,null,Y(o.value,(w,v)=>(i(),b(p,{key:w.path},{default:_(()=>[w.redirect==="noRedirect"||v===o.value.length-1?(i(),C("span",un,N(w.meta.title),1)):(i(),C("a",{key:1,onClick:re(h=>l(w),["prevent"])},N(w.meta.title),9,dn))]),_:2},1024))),128))]),_:1})}}}),pn=P(fn,[["__scopeId","data-v-5110efca"]]),_e=n=>/^(https?:|mailto:|tel:)/.test(n),mn=["href"],_n=A({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,s)=>{const o=g("router-link");return f(_e)(e.to)?(i(),C("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[de(t.$slots,"default")],8,mn)):(i(),b(o,{key:1,to:e.to},{default:_(()=>[de(t.$slots,"default")]),_:3},8,["to"]))}}});function j(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Pe(n,e){for(var t="",s=0,o=-1,a=0,r,l=0;l<=n.length;++l){if(l2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",s=0):(t=t.slice(0,c),s=t.length-1-t.lastIndexOf("/")),o=l,a=0;continue}}else if(t.length===2||t.length===1){t="",s=0,o=l,a=0;continue}}e&&(t.length>0?t+="/..":t="..",s=2)}else t.length>0?t+="/"+n.slice(o+1,l):t=n.slice(o+1,l),s=l-o-1;o=l,a=0}else r===46&&a!==-1?++a:a=-1}return t}function vn(n,e){var t=e.dir||e.root,s=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+s:t+n+s:s}var ne={resolve:function(){for(var e="",t=!1,s,o=arguments.length-1;o>=-1&&!t;o--){var a;o>=0?a=arguments[o]:(s===void 0&&(s=process.cwd()),a=s),j(a),a.length!==0&&(e=a+"/"+e,t=a.charCodeAt(0)===47)}return e=Pe(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(j(e),e.length===0)return".";var t=e.charCodeAt(0)===47,s=e.charCodeAt(e.length-1)===47;return e=Pe(e,!t),e.length===0&&!t&&(e="."),e.length>0&&s&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return j(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=s:e+="/"+s)}return e===void 0?".":ne.normalize(e)},relative:function(e,t){if(j(e),j(t),e===t||(e=ne.resolve(e),t=ne.resolve(t),e===t))return"";for(var s=1;sd){if(t.charCodeAt(r+m)===47)return t.slice(r+m+1);if(m===0)return t.slice(r+m)}else a>d&&(e.charCodeAt(s+m)===47?p=m:m===0&&(p=0));break}var w=e.charCodeAt(s+m),v=t.charCodeAt(r+m);if(w!==v)break;w===47&&(p=m)}var h="";for(m=s+p+1;m<=o;++m)(m===o||e.charCodeAt(m)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(r+p):(r+=p,t.charCodeAt(r)===47&&++r,t.slice(r))},_makeLong:function(e){return e},dirname:function(e){if(j(e),e.length===0)return".";for(var t=e.charCodeAt(0),s=t===47,o=-1,a=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),t===47){if(!a){o=r;break}}else a=!1;return o===-1?s?"/":".":s&&o===1?"//":e.slice(0,o)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');j(e);var s=0,o=-1,a=!0,r;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var d=e.charCodeAt(r);if(d===47){if(!a){s=r+1;break}}else c===-1&&(a=!1,c=r+1),l>=0&&(d===t.charCodeAt(l)?--l===-1&&(o=r):(l=-1,o=c))}return s===o?o=c:o===-1&&(o=e.length),e.slice(s,o)}else{for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!a){s=r+1;break}}else o===-1&&(a=!1,o=r+1);return o===-1?"":e.slice(s,o)}},extname:function(e){j(e);for(var t=-1,s=0,o=-1,a=!0,r=0,l=e.length-1;l>=0;--l){var c=e.charCodeAt(l);if(c===47){if(!a){s=l+1;break}continue}o===-1&&(a=!1,o=l+1),c===46?t===-1?t=l:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||o===-1||r===0||r===1&&t===o-1&&t===s+1?"":e.slice(t,o)},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 vn("/",e)},parse:function(e){j(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var s=e.charCodeAt(0),o=s===47,a;o?(t.root="/",a=1):a=0;for(var r=-1,l=0,c=-1,d=!0,p=e.length-1,m=0;p>=a;--p){if(s=e.charCodeAt(p),s===47){if(!d){l=p+1;break}continue}c===-1&&(d=!1,c=p+1),s===46?r===-1?r=p:m!==1&&(m=1):r!==-1&&(m=-1)}return r===-1||c===-1||m===0||m===1&&r===c-1&&r===l+1?c!==-1&&(l===0&&o?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(l,c)):(l===0&&o?(t.name=e.slice(1,r),t.base=e.slice(1,c)):(t.name=e.slice(l,r),t.base=e.slice(l,c)),t.ext=e.slice(r,c)),l>0?t.dir=e.slice(0,l-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.posix=ne;var hn=ne;const st=kt(hn),gn={key:2},yn=A({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(n){const e=n,t=L(()=>{var l;return(l=e.item.meta)==null?void 0:l.alwaysShow}),s=L(()=>{var l;return((l=e.item.children)==null?void 0:l.filter(c=>{var d;return!((d=c.meta)!=null&&d.hidden)}))??[]}),o=L(()=>s.value.length),a=L(()=>{const l=o.value;switch(!0){case l>1:return null;case l===1:return s.value[0];default:return{...e.item,path:""}}}),r=l=>{switch(!0){case _e(l):return l;case _e(e.basePath):return e.basePath;default:return st.resolve(e.basePath,l)}};return(l,c)=>{const d=g("SvgIcon"),p=g("el-menu-item"),m=g("SidebarItem",!0),w=g("el-sub-menu");return!t.value&&a.value&&!a.value.children?(i(),C(H,{key:0},[a.value.meta?(i(),b(_n,{key:0,to:r(a.value.path)},{default:_(()=>[u(p,{index:r(a.value.path)},it({default:_(()=>[a.value.meta.svgIcon?(i(),b(d,{key:0,name:a.value.meta.svgIcon},null,8,["name"])):a.value.meta.elIcon?(i(),b(ue(a.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[a.value.meta.title?{name:"title",fn:_(()=>[K(N(a.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(i(),b(w,{key:1,index:r(e.item.path),teleported:""},{title:_(()=>{var v,h,x;return[(v=e.item.meta)!=null&&v.svgIcon?(i(),b(d,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(i(),b(ue(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(x=e.item.meta)!=null&&x.title?(i(),C("span",gn,N(e.item.meta.title),1)):I("",!0)]}),default:_(()=>[e.item.children?(i(!0),C(H,{key:0},Y(s.value,v=>(i(),b(m,{key:v.path,item:v,"base-path":r(v.path)},null,8,["item","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))}}}),bn=P(yn,[["__scopeId","data-v-9391d27c"]]),wn="/v3-admin-vite/static/logo-BY3URNHQ.png",kn="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",Sn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",xn=["src"],Cn=["src"],$n=A({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:s}=ee();return(o,a)=>{const r=g("router-link");return i(),C("div",{class:q(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":f(s)}])},[u(Xe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(i(),b(r,{key:"collapse",to:"/"},{default:_(()=>[k("img",{src:f(wn),class:"layout-logo"},null,8,xn)]),_:1})):(i(),b(r,{key:"expand",to:"/"},{default:_(()=>[k("img",{src:f(t)?f(kn):f(Sn),class:"layout-logo-text"},null,8,Cn)]),_:1}))]),_:1})],2)}}}),Le=P($n,[["__scopeId","data-v-52f1a9b3"]]),ie=(n,e=document.documentElement)=>n!=null&&n.startsWith("--")?getComputedStyle(e).getPropertyValue(n):(console.warn("CSS 变量名应以 '--' 开头"),""),Fe=(n,e,t=document.documentElement)=>{if(!(n!=null&&n.startsWith("--"))){console.warn("CSS 变量名应以 '--' 开头");return}t.style.setProperty(n,e)},Tn=A({__name:"index",setup(n){Ke(V=>({"3c13d016":O.value,a4029414:R.value,cc5b4bc4:B.value,"2d82259e":F.value}));const e=ie("--v3-sidebar-menu-bg-color"),t=ie("--v3-sidebar-menu-text-color"),s=ie("--v3-sidebar-menu-active-text-color"),{isMobile:o}=ae(),{isLeft:a,isTop:r}=ee(),l=ve(),c=se(),d=Ce(),p=G(),m=L(()=>{const{meta:{activeMenu:V},path:S}=l;return V||S}),w=L(()=>d.routes.filter(V=>{var S;return!((S=V.meta)!=null&&S.hidden)})),v=L(()=>!c.sidebar.opened),h=L(()=>a.value&&p.showLogo),x=L(()=>a.value?e:void 0),M=L(()=>a.value?t:void 0),F=L(()=>a.value?s:void 0),R=L(()=>r.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),B=L(()=>r.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),O=L(()=>r.value?"0px":"2px");return(V,S)=>{const $=g("el-menu"),y=g("el-scrollbar");return i(),C("div",{class:q({"has-logo":h.value})},[h.value?(i(),b(Le,{key:0,collapse:v.value},null,8,["collapse"])):I("",!0),u(y,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[u($,{"default-active":m.value,collapse:v.value&&!f(r),"background-color":x.value,"text-color":M.value,"active-text-color":F.value,"unique-opened":!0,"collapse-transition":!1,mode:f(r)&&!f(o)?"horizontal":"vertical"},{default:_(()=>[(i(!0),C(H,null,Y(w.value,T=>(i(),b(bn,{key:T.path,item:T,"base-path":T.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Ie=P(Tn,[["__scopeId","data-v-d9a55038"]]),En={class:"card-header"},Vn={class:"card-title"},Mn={class:"card-time"},Ln={key:0,class:"card-avatar"},In=["src"],An={class:"card-body"},Rn=A({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,s)=>{const o=g("el-empty"),a=g("el-tag"),r=g("el-card");return e.list.length===0?(i(),b(o,{key:0})):(i(!0),C(H,{key:1},Y(e.list,(l,c)=>(i(),b(r,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[k("div",En,[k("div",null,[k("span",null,[k("span",Vn,N(l.title),1),l.extra?(i(),b(a,{key:0,type:l.status,effect:"plain",size:"small"},{default:_(()=>[K(N(l.extra),1)]),_:2},1032,["type"])):I("",!0)]),k("div",Mn,N(l.datetime),1)]),l.avatar?(i(),C("div",Ln,[k("img",{src:l.avatar,width:"34"},null,8,In)])):I("",!0)])]),default:_(()=>[k("div",An,N(l.description??"No Data"),1)]),_:2},1024))),128))}}}),Dn=P(Rn,[["__scopeId","data-v-c0dacc5d"]]),Pn=[{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"}],Fn=[{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"}],zn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Wn={class:"notify"},Nn={class:"notify-history"},ze=99,Un=350,Bn=A({__name:"index",setup(n){const e=L(()=>s.value.reduce((a,r)=>a+r.list.length,0)),t=D("通知"),s=D([{name:"通知",type:"primary",list:Pn},{name:"消息",type:"danger",list:Fn},{name:"待办",type:"warning",list:zn}]),o=()=>{pe.success(`跳转到${t.value}历史页面`)};return(a,r)=>{const l=g("el-icon"),c=g("el-tooltip"),d=g("el-badge"),p=g("el-scrollbar"),m=g("el-tab-pane"),w=g("el-tabs"),v=g("el-button"),h=g("el-popover");return i(),C("div",Wn,[u(h,{placement:"bottom",width:Un,trigger:"click"},{reference:_(()=>[u(d,{value:e.value,max:ze,hidden:e.value===0},{default:_(()=>[u(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[u(l,{size:20},{default:_(()=>[u(f(St))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[u(w,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=x=>t.value=x),class:"demo-tabs",stretch:""},{default:_(()=>[(i(!0),C(H,null,Y(s.value,(x,M)=>(i(),b(m,{name:x.name,key:M},{label:_(()=>[K(N(x.name)+" ",1),u(d,{value:x.list.length,max:ze,type:x.type},null,8,["value","type"])]),default:_(()=>[u(p,{height:"400px"},{default:_(()=>[u(Dn,{list:x.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),k("div",Nn,[u(v,{link:"",onClick:o},{default:_(()=>[K("查看"+N(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),On=P(Bn,[["__scopeId","data-v-a5fd6355"]]),We=[["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"]],J=(()=>{if(typeof document>"u")return!1;const n=We[0],e={};for(const t of We)if((t==null?void 0:t[1])in document){for(const[o,a]of t.entries())e[n[o]]=a;return e}return!1})(),Ne={change:J.fullscreenchange,error:J.fullscreenerror};let W={request(n=document.documentElement,e){return new Promise((t,s)=>{const o=()=>{W.off("change",o),t()};W.on("change",o);const a=n[J.requestFullscreen](e);a instanceof Promise&&a.then(o).catch(s)})},exit(){return new Promise((n,e)=>{if(!W.isFullscreen){n();return}const t=()=>{W.off("change",t),n()};W.on("change",t);const s=document[J.exitFullscreen]();s instanceof Promise&&s.then(t).catch(e)})},toggle(n,e){return W.isFullscreen?W.exit():W.request(n,e)},onchange(n){W.on("change",n)},onerror(n){W.on("error",n)},on(n,e){const t=Ne[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Ne[n];t&&document.removeEventListener(t,e,!1)},raw:J};Object.defineProperties(W,{isFullscreen:{get:()=>!!document[J.fullscreenElement]},element:{enumerable:!0,get:()=>document[J.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[J.fullscreenEnabled]}});J||(W={isEnabled:!1});const Ue="content-large",Be="content-full",qn=A({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=document.body.classList,s=W.isEnabled,o=D(!1),a=L(()=>o.value?e.exitTips:e.openTips),r=L(()=>o.value?"fullscreen-exit":"fullscreen"),l=()=>{const h=document.querySelector(e.element)||void 0;s?W.toggle(h):pe.warning("您的浏览器无法工作")},c=()=>{o.value=W.isFullscreen,o.value||t.remove(Ue,Be)};fe(h=>{s&&(W.on("change",c),h(()=>W.off("change",c)))});const d=D(!1),p=L(()=>d.value?"内容区复原":"内容区放大"),m=L(()=>d.value?"fullscreen-exit":"fullscreen"),w=()=>{d.value=!d.value,t.toggle(Ue,d.value)},v=()=>{d.value&&w(),t.add(Be),l()};return(h,x)=>{const M=g("SvgIcon"),F=g("el-tooltip"),R=g("el-dropdown-item"),B=g("el-dropdown-menu"),O=g("el-dropdown");return i(),C("div",null,[h.content?(i(),b(O,{key:1,disabled:o.value},{dropdown:_(()=>[u(B,null,{default:_(()=>[u(R,{onClick:w},{default:_(()=>[K(N(p.value),1)]),_:1}),u(R,{onClick:v},{default:_(()=>x[0]||(x[0]=[K("内容区全屏")])),_:1})]),_:1})]),default:_(()=>[u(M,{name:m.value},null,8,["name"])]),_:1},8,["disabled"])):(i(),b(F,{key:0,effect:"dark",content:a.value,placement:"bottom"},{default:_(()=>[u(M,{name:r.value,onClick:l},null,8,["name"])]),_:1},8,["content"]))])}}}),at=P(qn,[["__scopeId","data-v-edf5152e"]]),Hn=["onMouseenter"],jn={class:"result-item-title"},Xn=A({__name:"SearchResult",props:dt({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=Ge(n,"modelValue"),s=n,o=ut(),a=D(0),r=p=>{const m=p.name===t.value;return{background:m?"var(--el-color-primary)":"",color:m?"#ffffff":""}},l=p=>{s.isPressUpOrDown||(t.value=p.name)},c=()=>{a.value=Number((window.innerHeight*.4).toFixed(1))},d=p=>{var h;const m=(h=o==null?void 0:o.proxy)==null?void 0:h.$refs[`resultItemRef${p}`];if(!m)return 0;const v=m[0].offsetTop+128;return v>a.value?v-a.value:0};return qe(()=>{window.addEventListener("resize",c)}),He(()=>{c()}),je(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:d}),(p,m)=>{const w=g("SvgIcon");return i(),C("div",null,[(i(!0),C(H,null,Y(p.list,(v,h)=>{var x,M,F;return i(),C("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Je(r(v)),onMouseenter:R=>l(v)},[(x=v.meta)!=null&&x.svgIcon?(i(),b(w,{key:0,name:v.meta.svgIcon},null,8,["name"])):(M=v.meta)!=null&&M.elIcon?(i(),b(ue(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),k("span",jn,N((F=v.meta)==null?void 0:F.title),1),t.value&&t.value===v.name?(i(),b(w,{key:2,name:"keyboard-enter"})):I("",!0)],44,Hn)}),128))])}}}),Kn=P(Xn,[["__scopeId","data-v-91c42de6"]]),Gn={class:"search-footer"},Jn={class:"search-footer-item"},Yn={class:"search-footer-item"},Zn={class:"search-footer-item"},Qn={class:"search-footer-total"},eo=A({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=ae();return(s,o)=>{const a=g("SvgIcon");return i(),C("div",Gn,[f(t)?I("",!0):(i(),C(H,{key:0},[k("span",Jn,[u(a,{name:"keyboard-enter"}),o[0]||(o[0]=k("span",null,"确认",-1))]),k("span",Yn,[u(a,{name:"keyboard-up"}),u(a,{name:"keyboard-down"}),o[1]||(o[1]=k("span",null,"切换",-1))]),k("span",Zn,[u(a,{name:"keyboard-esc"}),o[2]||(o[2]=k("span",null,"关闭",-1))])],64)),k("span",Qn,"共 "+N(e.total)+" 项",1)])}}}),to=P(eo,[["__scopeId","data-v-8dce46e8"]]),no=A({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Ge(n,"modelValue"),t=he(),{isMobile:s}=ae(),o=D(null),a=D(null),r=D(null),l=D(""),c=ft([]),d=D(void 0),p=D(!1),m=L(()=>s.value?"80vw":"40vw"),w=L(()=>xt(Ce().routes)),v=Ct(()=>{var $;const V=h(w.value);c.value=V.filter(y=>{var T,U;return l.value?(U=(T=y.meta)==null?void 0:T.title)==null?void 0:U.toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim()):!1});const S=($=c.value)==null?void 0:$.length;d.value=S>0?c.value[0].name:void 0},500),h=(V,S=[])=>(V.forEach($=>{S.push($),$.children&&h($.children,S)}),S),x=()=>{e.value=!1,setTimeout(()=>{l.value="",c.value=[]},200)},M=V=>{var $;if(!r.value)return;const S=r.value.getScrollTop(V);($=a.value)==null||$.setScrollTop(S)},F=()=>{p.value=!0;const{length:V}=c.value;if(V===0)return;const S=c.value.findIndex($=>$.name===d.value);if(S===0){const $=c.value[V-1].name;d.value===$&&V>1?(d.value=c.value[V-2].name,M(V-2)):(d.value=$,M(V-1))}else d.value=c.value[S-1].name,M(S-1)},R=()=>{p.value=!0;const{length:V}=c.value;if(V===0)return;const S=c.value.map($=>$.name).lastIndexOf(d.value);if(S===V-1){const $=c.value[0].name;d.value===$&&V>1?(d.value=c.value[1].name,M(1)):(d.value=$,M(0))}else d.value=c.value[S+1].name,M(S+1)},B=()=>{var y;const{length:V}=c.value;if(V===0)return;const S=d.value,$=(y=c.value.find(T=>T.name===S))==null?void 0:y.path;if($&&_e($)){window.open($,"_blank","noopener, noreferrer");return}if(!S){pe.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:S})}catch{pe.error("该菜单有必填的动态参数,无法通过搜索进入");return}x()},O=()=>{p.value=!1};return(V,S)=>{const $=g("SvgIcon"),y=g("el-input"),T=g("el-empty"),U=g("el-dialog");return i(),b(U,{modelValue:e.value,"onUpdate:modelValue":S[2]||(S[2]=E=>e.value=E),onOpened:S[3]||(S[3]=E=>{var z;return(z=o.value)==null?void 0:z.focus()}),onClosed:S[4]||(S[4]=E=>{var z;return(z=o.value)==null?void 0:z.blur()}),onKeydown:[le(F,["up"]),le(R,["down"]),le(B,["enter"])],onKeyup:le(O,["up","down"]),"before-close":x,width:m.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[u(to,{total:c.value.length},null,8,["total"])]),default:_(()=>[u(y,{ref_key:"inputRef",ref:o,modelValue:l.value,"onUpdate:modelValue":S[0]||(S[0]=E=>l.value=E),onInput:f(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[u($,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(i(),b(T,{key:0,description:"暂无搜索结果","image-size":100})):(i(),C(H,{key:1},[S[5]||(S[5]=k("p",null,"搜索结果",-1)),u(f(Qe),{ref_key:"scrollbarRef",ref:a,"max-height":"40vh",always:""},{default:_(()=>[u(Kn,{ref_key:"searchResultRef",ref:r,modelValue:d.value,"onUpdate:modelValue":S[1]||(S[1]=E=>d.value=E),list:c.value,isPressUpOrDown:p.value,onClick:B},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),oo=A({__name:"index",setup(n){const e=D(!1),t=()=>{e.value=!0};return(s,o)=>{const a=g("SvgIcon"),r=g("el-tooltip");return i(),C("div",null,[u(r,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[u(a,{name:"search",onClick:t})]),_:1}),u(no,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=l=>e.value=l)},null,8,["modelValue"])])}}}),so=P(oo,[["__scopeId","data-v-dc5accb4"]]),ao={class:"navigation-bar"},lo={class:"right-menu"},ro={class:"right-menu-avatar"},co={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},io={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},uo=A({__name:"index",setup(n){const{isMobile:e}=ae(),{isTop:t}=ee(),s=he(),o=se(),a=ht(),r=G(),{showNotify:l,showThemeSwitch:c,showScreenfull:d,showSearchMenu:p}=oe(r),m=()=>{o.toggleSidebar(!1)},w=()=>{a.logout(),s.push("/login")};return(v,h)=>{const x=g("el-avatar"),M=g("el-dropdown-item"),F=g("el-dropdown-menu"),R=g("el-dropdown");return i(),C("div",ao,[!f(t)||f(e)?(i(),b(Gt,{key:0,"is-active":f(o).sidebar.opened,class:"hamburger",onToggleClick:m},null,8,["is-active"])):I("",!0),!f(t)||f(e)?(i(),b(pn,{key:1,class:"breadcrumb"})):I("",!0),f(t)&&!f(e)?(i(),b(Ie,{key:2,class:"sidebar"})):I("",!0),k("div",lo,[f(p)?(i(),b(so,{key:0,class:"right-menu-item"})):I("",!0),f(d)?(i(),b(at,{key:1,class:"right-menu-item"})):I("",!0),f(c)?(i(),b(It,{key:2,class:"right-menu-item"})):I("",!0),f(l)?(i(),b(On,{key:3,class:"right-menu-item"})):I("",!0),u(R,{class:"right-menu-item"},{dropdown:_(()=>[u(F,null,{default:_(()=>[k("a",co,[u(M,null,{default:_(()=>h[0]||(h[0]=[K("GitHub")])),_:1})]),k("a",io,[u(M,null,{default:_(()=>h[1]||(h[1]=[K("Gitee")])),_:1})]),u(M,{divided:"",onClick:w},{default:_(()=>h[2]||(h[2]=[k("span",{style:{display:"block"}},"退出登录",-1)])),_:1})]),_:1})]),default:_(()=>[k("div",ro,[u(x,{icon:f($t),size:30},null,8,["icon"]),k("span",null,N(f(a).username),1)])]),_:1})])])}}}),Ae=P(uo,[["__scopeId","data-v-1ee6dd91"]]),fo={class:"select-layout-mode"},po=A({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:s,setLayoutMode:o}=ee();return(a,r)=>{const l=g("el-aside"),c=g("el-header"),d=g("el-main"),p=g("el-container"),m=g("el-tooltip");return i(),C("div",fo,[u(m,{content:"左侧模式"},{default:_(()=>[u(p,{class:q(["layout-mode left",{active:f(e)}]),onClick:r[0]||(r[0]=w=>f(o)(f(te).Left))},{default:_(()=>[u(l),u(p,null,{default:_(()=>[u(c),u(d)]),_:1})]),_:1},8,["class"])]),_:1}),u(m,{content:"顶部模式"},{default:_(()=>[u(p,{class:q(["layout-mode top",{active:f(t)}]),onClick:r[1]||(r[1]=w=>f(o)(f(te).Top))},{default:_(()=>[u(c),u(d)]),_:1},8,["class"])]),_:1}),u(m,{content:"混合模式"},{default:_(()=>[u(p,{class:q(["layout-mode left-top",{active:f(s)}]),onClick:r[2]||(r[2]=w=>f(o)(f(te).LeftTop))},{default:_(()=>[u(c),u(p,null,{default:_(()=>[u(l),u(d)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),mo=P(po,[["__scopeId","data-v-b859d856"]]),_o={class:"setting-container"},vo={class:"setting-name"},ho=A({__name:"index",setup(n){const{isLeft:e}=ee(),t=G(),{showTagsView:s,showLogo:o,fixedHeader:a,showFooter:r,showNotify:l,showThemeSwitch:c,showScreenfull:d,showSearchMenu:p,cacheTagsView:m,showWatermark:w,showGreyMode:v,showColorWeakness:h}=oe(t),x={显示标签栏:s,"显示 Logo":o,"固定 Header":a,"显示页脚 Footer":r,显示消息通知:l,显示切换主题按钮:c,显示全屏按钮:d,显示搜索按钮:p,是否缓存标签栏:m,开启系统水印:w,显示灰色模式:v,显示色弱模式:h};fe(()=>{!e.value&&(a.value=!0)});const M=()=>{gt(),location.reload()};return(F,R)=>{const B=g("el-divider"),O=g("el-switch"),V=g("el-button");return i(),C("div",_o,[R[1]||(R[1]=k("h4",null,"布局配置",-1)),u(mo),u(B),R[2]||(R[2]=k("h4",null,"功能配置",-1)),(i(),C(H,null,Y(x,(S,$,y)=>k("div",{class:"setting-item",key:y},[k("span",vo,N($),1),u(O,{modelValue:S.value,"onUpdate:modelValue":T=>S.value=T,disabled:!f(e)&&$==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),u(V,{type:"danger",icon:f(Tt),onClick:M},{default:_(()=>R[0]||(R[0]=[K("重 置")])),_:1},8,["icon"])])}}}),go=P(ho,[["__scopeId","data-v-0520d80d"]]),yo={class:"scroll-container"},bo=200,wo=A({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=ve(),s=G(),{listenerRouteChange:o}=be(),a=D(),r=D();let l=0;const c=({scrollLeft:v})=>{l=v},d=({deltaY:v})=>{/^-/.test(v.toString())?m("left"):m("right")},p=()=>{const v=r.value.clientWidth,h=a.value.wrapRef.clientWidth,x=v-h-l;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:x}},m=(v,h=bo)=>{let x=0;const{scrollbarContentRefWidth:M,scrollbarRefWidth:F,lastDistance:R}=p();F>M||(v==="left"?x=Math.max(0,l-h):x=Math.min(l+h,l+R),a.value.setScrollLeft(x))},w=()=>{const v=e.tagRefs;for(let h=0;hB){const O=F-B;m("right",O);return}}};return o(()=>{pt(w)}),(v,h)=>{const x=g("el-icon");return i(),C("div",yo,[u(x,{class:"arrow left",onClick:h[0]||(h[0]=M=>m("left"))},{default:_(()=>[u(f(Et))]),_:1}),u(f(Qe),{ref_key:"scrollbarRef",ref:a,onWheelPassive:d,onScroll:c},{default:_(()=>[k("div",{ref_key:"scrollbarContentRef",ref:r,class:"scrollbar-content"},[de(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),u(x,{class:"arrow right",onClick:h[1]||(h[1]=M=>m("right"))},{default:_(()=>[u(f(Vt))]),_:1}),f(s).showScreenfull?(i(),b(at,{key:0,content:!0,class:"screenfull"})):I("",!0)])}}}),ko=P(wo,[["__scopeId","data-v-5784e87c"]]),So={class:"tags-view-container"},xo=A({__name:"index",setup(n){const e=he(),t=ve(),s=Ze(),o=Ce(),{listenerRouteChange:a}=be(),r=D([]),l=D(!1),c=D(0),d=D(0),p=D({});let m=[];const w=y=>y.path===t.path,v=y=>{var T;return(T=y.meta)==null?void 0:T.affix},h=(y,T="/")=>{const U=[];return y.forEach(E=>{if(v(E)){const z=st.resolve(T,E.path);U.push({fullPath:z,path:z,name:E.name,meta:{...E.meta}})}if(E.children){const z=h(E.children,E.path);U.push(...z)}}),U},x=()=>{m=h(o.routes);for(const y of m)y.name&&s.addVisitedView(y)},M=y=>{y.name&&(s.addVisitedView(y),s.addCachedView(y))},F=y=>{s.delCachedView(y),e.replace({path:"/redirect"+y.path,query:y.query})},R=y=>{s.delVisitedView(y),s.delCachedView(y),w(y)&&V(s.visitedViews,y)},B=()=>{const y=p.value.fullPath;y!==t.path&&y!==void 0&&e.push(y),s.delOthersVisitedViews(p.value),s.delOthersCachedViews(p.value)},O=y=>{s.delAllVisitedViews(),s.delAllCachedViews(),!m.some(T=>T.path===t.path)&&V(s.visitedViews,y)},V=(y,T)=>{const U=y.slice(-1)[0],E=U==null?void 0:U.fullPath;E!==void 0?e.push(E):T.name==="Dashboard"?e.push({path:"/redirect"+T.path,query:T.query}):e.push("/")},S=(y,T)=>{const z=document.body.offsetWidth-100,Se=T.clientX+10;d.value=Se>z?z:Se,c.value=T.clientY,l.value=!0,p.value=y},$=()=>{l.value=!1};return Oe(l,y=>{y?document.body.addEventListener("click",$):document.body.removeEventListener("click",$)}),x(),a(y=>{M(y)},!0),(y,T)=>{const U=g("el-icon");return i(),C("div",So,[u(ko,{class:"tags-view-wrapper","tag-refs":r.value},{default:_(()=>[(i(!0),C(H,null,Y(f(s).visitedViews,E=>(i(),b(f(mt),{ref_for:!0,ref_key:"tagRefs",ref:r,key:E.path,class:q([{active:w(E)},"tags-view-item"]),to:{path:E.path,query:E.query},onMouseup:re(z=>!v(E)&&R(E),["middle"]),onContextmenu:re(z=>S(E,z),["prevent"])},{default:_(()=>{var z;return[K(N((z=E.meta)==null?void 0:z.title)+" ",1),v(E)?I("",!0):(i(),b(U,{key:0,size:12,onClick:re(Se=>R(E),["prevent","stop"])},{default:_(()=>[u(f(Mt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ge(k("ul",{class:"contextmenu",style:Je({left:d.value+"px",top:c.value+"px"})},[k("li",{onClick:T[0]||(T[0]=E=>F(p.value))},"刷新"),v(p.value)?I("",!0):(i(),C("li",{key:0,onClick:T[1]||(T[1]=E=>R(p.value))},"关闭")),k("li",{onClick:B},"关闭其它"),k("li",{onClick:T[2]||(T[2]=E=>O(p.value))},"关闭所有")],4),[[ye,l.value]])])}}}),Re=P(xo,[["__scopeId","data-v-01b5745a"]]),Co=A({__name:"index",props:{buttonTop:{default:350}},setup(n){Ke(o=>({"14e85e11":t}));const t=n.buttonTop+"px",s=D(!1);return(o,a)=>{const r=g("el-icon"),l=g("el-drawer");return i(),C(H,null,[k("div",{class:"handle-button",onClick:a[0]||(a[0]=c=>s.value=!0)},[u(r,{size:24},{default:_(()=>[u(f(Lt))]),_:1})]),u(l,{modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=c=>s.value=c),size:"300px","with-header":!1},{default:_(()=>[de(o.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),$o=P(Co,[["__scopeId","data-v-272ec5c4"]]),To=A({__name:"LeftMode",setup(n){const{isMobile:e}=ae(),{isLeft:t}=ee(),s=se(),o=G(),{showTagsView:a,fixedHeader:r}=oe(o),l=L(()=>({hideSidebar:!s.sidebar.opened,openSidebar:s.sidebar.opened,withoutAnimation:s.sidebar.withoutAnimation,mobile:e.value,noLeft:!t.value})),c=()=>{s.closeSidebar(!1)};return(d,p)=>(i(),C("div",{class:q([l.value,"app-wrapper"])},[l.value.mobile&&l.value.openSidebar?(i(),C("div",{key:0,class:"drawer-bg",onClick:c})):I("",!0),u(f(Ie),{class:"sidebar-container"}),k("div",{class:q([{hasTagsView:f(a)},"main-container"])},[k("div",{class:q([{"fixed-header":f(r)},"layout-header"])},[u(f(Ae)),ge(u(f(Re),null,null,512),[[ye,f(a)]])],2),u(f($e),{class:"app-main"})],2)],2))}}),Eo=P(To,[["__scopeId","data-v-e4154407"]]),Vo={class:"app-wrapper"},Mo={class:"fixed-header layout-header"},Lo={class:"content"},Io=A({__name:"TopMode",setup(n){const e=G(),{showTagsView:t,showLogo:s}=oe(e);return(o,a)=>(i(),C("div",Vo,[k("div",Mo,[k("div",Lo,[f(s)?(i(),b(f(Le),{key:0,collapse:!1,class:"logo"})):I("",!0),u(f(Ae),{class:"navigation-bar"})]),ge(u(f(Re),null,null,512),[[ye,f(t)]])]),k("div",{class:q([{hasTagsView:f(t)},"main-container"])},[u(f($e),{class:"app-main"})],2)]))}}),Ao=P(Io,[["__scopeId","data-v-da4d3997"]]),Ro={class:"fixed-header layout-header"},Do={class:"content"},Po=A({__name:"LeftTopMode",setup(n){const e=se(),t=G(),{showTagsView:s,showLogo:o}=oe(t),a=L(()=>({hideSidebar:!e.sidebar.opened}));return(r,l)=>(i(),C("div",{class:q([a.value,"app-wrapper"])},[k("div",Ro,[f(o)?(i(),b(f(Le),{key:0,collapse:!1,class:"logo"})):I("",!0),k("div",Do,[u(f(Ae)),ge(u(f(Re),null,null,512),[[ye,f(s)]])])]),k("div",{class:q([{hasTagsView:f(s)},"main-container"])},[u(f(Ie),{class:"sidebar-container"}),u(f($e),{class:"app-main"})],2)],2))}}),Fo=P(Po,[["__scopeId","data-v-6c3d4686"]]),xe="--v3-tagsview-height",qo=A({__name:"index",setup(n){Dt();const{setWatermark:e,clearWatermark:t}=yt(),{isMobile:s}=ae(),{isLeft:o,isTop:a,isLeftTop:r}=ee(),l=G(),{showSettings:c,showTagsView:d,showWatermark:p}=oe(l),m=ie(xe);return fe(()=>{d.value?Fe(xe,m):Fe(xe,"0px")}),fe(()=>{p.value?e("V3 Admin Vite"):t()}),(w,v)=>(i(),C("div",null,[f(o)||f(s)?(i(),b(Eo,{key:0})):f(a)?(i(),b(Ao,{key:1})):f(r)?(i(),b(Fo,{key:2})):I("",!0),f(c)?(i(),b(f($o),{key:3},{default:_(()=>[u(f(go))]),_:1})):I("",!0)]))}});export{qo as default}; diff --git a/static/index-DeU_5Hj6.js b/static/index-CqFYS1wj.js similarity index 97% rename from static/index-DeU_5Hj6.js rename to static/index-CqFYS1wj.js index 8965777f..2738f20f 100644 --- a/static/index-DeU_5Hj6.js +++ b/static/index-CqFYS1wj.js @@ -1 +1 @@ -import{g as K,d as Q,c as W,u as X}from"./index-DSkebEBU.js";import{l as D,B as Y,r as ee,C as ae,D as le,F as te,G as ne,H as oe,b as E}from"./element-C5mYgMeM.js";import{Z as M,p as re,r as y,d as se,ai as d,aq as ie,q as c,t as ue,P as $,M as g,O as l,U as a,u as r,S as s,v as w,T as de,R as pe}from"./vue-BWN0lbwY.js";import{_ as me}from"./index-lhjAkg-7.js";import"./vxe-CtPXIgsa.js";const ce={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function fe(S={}){const i=M({...ce,...S});return{paginationData:i,handleCurrentChange:C=>{i.currentPage=C},handleSizeChange:C=>{i.pageSize=C}}}const ge={class:"app-container"},_e={class:"toolbar-wrapper"},ve={class:"table-wrapper"},be={class:"pager-wrapper"},ye=re({name:"ElementPlus",__name:"index",setup(S){const i=y(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:C}=fe(),P={id:void 0,username:"",password:""},_=y(!1),V=y(null),u=y(D(P)),N={},O=()=>{var n;(n=V.value)==null||n.validate((e,v)=>{if(!e)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?W:X)(u.value).then(()=>{E.success("操作成功"),_.value=!1,h()}).finally(()=>{i.value=!1})})},q=()=>{var n;(n=V.value)==null||n.clearValidate(),u.value=D(P)},j=n=>{oe.confirm(`正在删除用户:${n.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Q(n.id).then(()=>{E.success("删除成功"),h()})})},G=n=>{_.value=!0,u.value=D(n)},z=y([]),T=y(null),f=M({username:"",phone:""}),h=()=>{i.value=!0,K({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:n})=>{o.total=n.total,z.value=n.list}).catch(()=>{z.value=[]}).finally(()=>{i.value=!1})},U=()=>{o.currentPage===1?h():o.currentPage=1},H=()=>{var n;(n=T.value)==null||n.resetFields(),U()};return se([()=>o.currentPage,()=>o.pageSize],h,{immediate:!0}),(n,e)=>{const v=d("el-input"),b=d("el-form-item"),p=d("el-button"),B=d("el-form"),A=d("el-card"),F=d("el-tooltip"),m=d("el-table-column"),k=d("el-tag"),I=d("el-table"),L=d("el-pagination"),Z=d("el-dialog"),R=ie("loading");return c(),ue("div",ge,[$((c(),g(A,{shadow:"never",class:"search-wrapper"},{default:l(()=>[a(B,{ref_key:"searchFormRef",ref:T,inline:!0,model:f},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:f.username,"onUpdate:modelValue":e[0]||(e[0]=t=>f.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,{prop:"phone",label:"手机号"},{default:l(()=>[a(v,{modelValue:f.phone,"onUpdate:modelValue":e[1]||(e[1]=t=>f.phone=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,null,{default:l(()=>[a(p,{type:"primary",icon:r(Y),onClick:U},{default:l(()=>e[7]||(e[7]=[s("查询")])),_:1},8,["icon"]),a(p,{icon:r(ee),onClick:H},{default:l(()=>e[8]||(e[8]=[s("重置")])),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[R,i.value]]),$((c(),g(A,{shadow:"never"},{default:l(()=>[w("div",_e,[w("div",null,[a(p,{type:"primary",icon:r(ae),onClick:e[2]||(e[2]=t=>_.value=!0)},{default:l(()=>e[9]||(e[9]=[s("新增用户")])),_:1},8,["icon"]),a(p,{type:"danger",icon:r(le)},{default:l(()=>e[10]||(e[10]=[s("批量删除")])),_:1},8,["icon"])]),w("div",null,[a(F,{content:"下载"},{default:l(()=>[a(p,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),a(F,{content:"刷新当前页"},{default:l(()=>[a(p,{type:"primary",icon:r(ne),circle:"",onClick:h},null,8,["icon"])]),_:1})])]),w("div",ve,[a(I,{data:z.value},{default:l(()=>[a(m,{type:"selection",width:"50",align:"center"}),a(m,{prop:"username",label:"用户名",align:"center"}),a(m,{prop:"roles",label:"角色",align:"center"},{default:l(t=>[t.row.roles==="admin"?(c(),g(k,{key:0,type:"primary",effect:"plain","disable-transitions":""},{default:l(()=>e[11]||(e[11]=[s(" admin ")])),_:1})):(c(),g(k,{key:1,type:"warning",effect:"plain","disable-transitions":""},{default:l(()=>[s(de(t.row.roles),1)]),_:2},1024))]),_:1}),a(m,{prop:"phone",label:"手机号",align:"center"}),a(m,{prop:"email",label:"邮箱",align:"center"}),a(m,{prop:"status",label:"状态",align:"center"},{default:l(t=>[t.row.status?(c(),g(k,{key:0,type:"success",effect:"plain","disable-transitions":""},{default:l(()=>e[12]||(e[12]=[s("启用")])),_:1})):(c(),g(k,{key:1,type:"danger",effect:"plain","disable-transitions":""},{default:l(()=>e[13]||(e[13]=[s("禁用")])),_:1}))]),_:1}),a(m,{prop:"createTime",label:"创建时间",align:"center"}),a(m,{fixed:"right",label:"操作",width:"150",align:"center"},{default:l(t=>[a(p,{type:"primary",text:"",bg:"",size:"small",onClick:J=>G(t.row)},{default:l(()=>e[14]||(e[14]=[s("修改")])),_:2},1032,["onClick"]),a(p,{type:"danger",text:"",bg:"",size:"small",onClick:J=>j(t.row)},{default:l(()=>e[15]||(e[15]=[s("删除")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",be,[a(L,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(C),onCurrentChange:r(x)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[R,i.value]]),a(Z,{modelValue:_.value,"onUpdate:modelValue":e[6]||(e[6]=t=>_.value=t),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:q,width:"30%"},{footer:l(()=>[a(p,{onClick:e[5]||(e[5]=t=>_.value=!1)},{default:l(()=>e[16]||(e[16]=[s("取消")])),_:1}),a(p,{type:"primary",onClick:O,loading:i.value},{default:l(()=>e[17]||(e[17]=[s("确认")])),_:1},8,["loading"])]),default:l(()=>[a(B,{ref_key:"formRef",ref:V,model:u.value,rules:N,"label-width":"100px","label-position":"left"},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:u.value.username,"onUpdate:modelValue":e[3]||(e[3]=t=>u.value.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(c(),g(b,{key:0,prop:"password",label:"密码"},{default:l(()=>[a(v,{modelValue:u.value.password,"onUpdate:modelValue":e[4]||(e[4]=t=>u.value.password=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):pe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ze=me(ye,[["__scopeId","data-v-f7cdfa0d"]]);export{ze as default}; +import{g as K,d as Q,c as W,u as X}from"./index-DBUZIcJ7.js";import{l as D,B as Y,r as ee,C as ae,D as le,F as te,G as ne,H as oe,b as E}from"./element-C5mYgMeM.js";import{Z as M,p as re,r as y,d as se,ai as d,aq as ie,q as c,t as ue,P as $,M as g,O as l,U as a,u as r,S as s,v as w,T as de,R as pe}from"./vue-BWN0lbwY.js";import{_ as me}from"./index-B_OLftB1.js";import"./vxe-CtPXIgsa.js";const ce={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function fe(S={}){const i=M({...ce,...S});return{paginationData:i,handleCurrentChange:C=>{i.currentPage=C},handleSizeChange:C=>{i.pageSize=C}}}const ge={class:"app-container"},_e={class:"toolbar-wrapper"},ve={class:"table-wrapper"},be={class:"pager-wrapper"},ye=re({name:"ElementPlus",__name:"index",setup(S){const i=y(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:C}=fe(),P={id:void 0,username:"",password:""},_=y(!1),V=y(null),u=y(D(P)),N={},O=()=>{var n;(n=V.value)==null||n.validate((e,v)=>{if(!e)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?W:X)(u.value).then(()=>{E.success("操作成功"),_.value=!1,h()}).finally(()=>{i.value=!1})})},q=()=>{var n;(n=V.value)==null||n.clearValidate(),u.value=D(P)},j=n=>{oe.confirm(`正在删除用户:${n.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Q(n.id).then(()=>{E.success("删除成功"),h()})})},G=n=>{_.value=!0,u.value=D(n)},z=y([]),T=y(null),f=M({username:"",phone:""}),h=()=>{i.value=!0,K({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:n})=>{o.total=n.total,z.value=n.list}).catch(()=>{z.value=[]}).finally(()=>{i.value=!1})},U=()=>{o.currentPage===1?h():o.currentPage=1},H=()=>{var n;(n=T.value)==null||n.resetFields(),U()};return se([()=>o.currentPage,()=>o.pageSize],h,{immediate:!0}),(n,e)=>{const v=d("el-input"),b=d("el-form-item"),p=d("el-button"),B=d("el-form"),A=d("el-card"),F=d("el-tooltip"),m=d("el-table-column"),k=d("el-tag"),I=d("el-table"),L=d("el-pagination"),Z=d("el-dialog"),R=ie("loading");return c(),ue("div",ge,[$((c(),g(A,{shadow:"never",class:"search-wrapper"},{default:l(()=>[a(B,{ref_key:"searchFormRef",ref:T,inline:!0,model:f},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:f.username,"onUpdate:modelValue":e[0]||(e[0]=t=>f.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,{prop:"phone",label:"手机号"},{default:l(()=>[a(v,{modelValue:f.phone,"onUpdate:modelValue":e[1]||(e[1]=t=>f.phone=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(b,null,{default:l(()=>[a(p,{type:"primary",icon:r(Y),onClick:U},{default:l(()=>e[7]||(e[7]=[s("查询")])),_:1},8,["icon"]),a(p,{icon:r(ee),onClick:H},{default:l(()=>e[8]||(e[8]=[s("重置")])),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[R,i.value]]),$((c(),g(A,{shadow:"never"},{default:l(()=>[w("div",_e,[w("div",null,[a(p,{type:"primary",icon:r(ae),onClick:e[2]||(e[2]=t=>_.value=!0)},{default:l(()=>e[9]||(e[9]=[s("新增用户")])),_:1},8,["icon"]),a(p,{type:"danger",icon:r(le)},{default:l(()=>e[10]||(e[10]=[s("批量删除")])),_:1},8,["icon"])]),w("div",null,[a(F,{content:"下载"},{default:l(()=>[a(p,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),a(F,{content:"刷新当前页"},{default:l(()=>[a(p,{type:"primary",icon:r(ne),circle:"",onClick:h},null,8,["icon"])]),_:1})])]),w("div",ve,[a(I,{data:z.value},{default:l(()=>[a(m,{type:"selection",width:"50",align:"center"}),a(m,{prop:"username",label:"用户名",align:"center"}),a(m,{prop:"roles",label:"角色",align:"center"},{default:l(t=>[t.row.roles==="admin"?(c(),g(k,{key:0,type:"primary",effect:"plain","disable-transitions":""},{default:l(()=>e[11]||(e[11]=[s(" admin ")])),_:1})):(c(),g(k,{key:1,type:"warning",effect:"plain","disable-transitions":""},{default:l(()=>[s(de(t.row.roles),1)]),_:2},1024))]),_:1}),a(m,{prop:"phone",label:"手机号",align:"center"}),a(m,{prop:"email",label:"邮箱",align:"center"}),a(m,{prop:"status",label:"状态",align:"center"},{default:l(t=>[t.row.status?(c(),g(k,{key:0,type:"success",effect:"plain","disable-transitions":""},{default:l(()=>e[12]||(e[12]=[s("启用")])),_:1})):(c(),g(k,{key:1,type:"danger",effect:"plain","disable-transitions":""},{default:l(()=>e[13]||(e[13]=[s("禁用")])),_:1}))]),_:1}),a(m,{prop:"createTime",label:"创建时间",align:"center"}),a(m,{fixed:"right",label:"操作",width:"150",align:"center"},{default:l(t=>[a(p,{type:"primary",text:"",bg:"",size:"small",onClick:J=>G(t.row)},{default:l(()=>e[14]||(e[14]=[s("修改")])),_:2},1032,["onClick"]),a(p,{type:"danger",text:"",bg:"",size:"small",onClick:J=>j(t.row)},{default:l(()=>e[15]||(e[15]=[s("删除")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",be,[a(L,{background:"",layout:r(o).layout,"page-sizes":r(o).pageSizes,total:r(o).total,"page-size":r(o).pageSize,currentPage:r(o).currentPage,onSizeChange:r(C),onCurrentChange:r(x)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[R,i.value]]),a(Z,{modelValue:_.value,"onUpdate:modelValue":e[6]||(e[6]=t=>_.value=t),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:q,width:"30%"},{footer:l(()=>[a(p,{onClick:e[5]||(e[5]=t=>_.value=!1)},{default:l(()=>e[16]||(e[16]=[s("取消")])),_:1}),a(p,{type:"primary",onClick:O,loading:i.value},{default:l(()=>e[17]||(e[17]=[s("确认")])),_:1},8,["loading"])]),default:l(()=>[a(B,{ref_key:"formRef",ref:V,model:u.value,rules:N,"label-width":"100px","label-position":"left"},{default:l(()=>[a(b,{prop:"username",label:"用户名"},{default:l(()=>[a(v,{modelValue:u.value.username,"onUpdate:modelValue":e[3]||(e[3]=t=>u.value.username=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(c(),g(b,{key:0,prop:"password",label:"密码"},{default:l(()=>[a(v,{modelValue:u.value.password,"onUpdate:modelValue":e[4]||(e[4]=t=>u.value.password=t),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):pe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ze=me(ye,[["__scopeId","data-v-f7cdfa0d"]]);export{ze as default}; diff --git a/static/index-Csy9NssY.js b/static/index-Csy9NssY.js deleted file mode 100644 index dd8e14ea..00000000 --- a/static/index-Csy9NssY.js +++ /dev/null @@ -1 +0,0 @@ -import{ay as lt,Z as rt,r as D,d as Oe,E as qe,c as He,A as je,f as M,p as A,q as i,t as C,T as N,u as f,ai as g,v as S,U as u,O as _,W as Xe,M as b,aB as ct,Q as ue,R as L,aC as ve,aD as he,F as H,aa as Y,a2 as re,H as de,a9 as it,S as K,J as q,aE as Ke,w as fe,aF as Ge,b as ut,I as Je,aG as dt,s as ft,a8 as le,aH as ne,n as pt,aI as mt,P as ge,V as ye}from"./vue-BWN0lbwY.js";import{g as _t,S as Ye,D as Q,s as De,a as vt,u as be,b as G,L as ee,_ as P,c as Ze,d as Ce,e as ht,r as gt}from"./index-lhjAkg-7.js";import{u as yt}from"./useWatermark-CFXy0vbL.js";import{h as bt,j as wt,g as kt,k as St,b as pe,l as xt,n as Ct,o as Qe,u as $t,r as Tt,p as Et,q as Vt,s as Mt,t as Lt}from"./element-C5mYgMeM.js";import{_ as It}from"./index.vue_vue_type_script_setup_true_lang-CGuepwMI.js";import"./vxe-CtPXIgsa.js";function At(n){n?De(vt):De(Ye)}const oe=lt("app",()=>{const n=rt({opened:_t()!==Ye,withoutAnimation:!1}),e=D(Q.Desktop);return Oe(()=>n.opened,s=>At(s)),{device:e,sidebar:n,toggleSidebar:s=>{n.opened=!n.opened,n.withoutAnimation=s},closeSidebar:s=>{n.opened=!1,n.withoutAnimation=s},toggleDevice:s=>{e.value=s}}}),Rt=992,Dt=()=>{const n=oe(),{listenerRouteChange:e}=be(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const o=t();n.toggleDevice(o?Q.Mobile:Q.Desktop),o&&n.closeSidebar(!0)}};e(()=>{n.device===Q.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),qe(()=>{window.addEventListener("resize",a)}),He(()=>{t()&&(n.toggleDevice(Q.Mobile),n.closeSidebar(!0))}),je(()=>{window.removeEventListener("resize",a)})},et=oe(),Pt=M(()=>et.device===Q.Mobile),Ft=M(()=>et.device===Q.Desktop);function se(){return{isMobile:Pt,isDesktop:Ft}}const we=G(),zt=M(()=>we.layoutMode===ee.Left),Wt=M(()=>we.layoutMode===ee.Top),Bt=M(()=>we.layoutMode===ee.LeftTop),Nt=n=>{we.layoutMode=n};function ae(){return{isLeft:zt,isTop:Wt,isLeftTop:Bt,setLayoutMode:Nt}}const Ut={class:"layout-footer"},Ot=A({__name:"index",setup(n){const e="V3 Admin Vite";return(t,a)=>(i(),C("footer",Ut,"MIT © 2021-PRESENT "+N(f(e)),1))}}),qt=P(Ot,[["__scopeId","data-v-18d14396"]]),Ht={class:"app-main"},jt={class:"app-scrollbar"},Xt=A({__name:"AppMain",setup(n){const e=Ze(),t=G();return(a,o)=>{const s=g("router-view"),l=g("el-backtop");return i(),C("section",Ht,[S("div",jt,[u(s,null,{default:_(({Component:r,route:c})=>[u(Xe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(i(),b(ct,{include:f(e).cachedViews},[(i(),b(ue(r),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),f(t).showFooter?(i(),b(qt,{key:0})):L("",!0)]),u(l),u(l,{target:".app-scrollbar"})])}}}),$e=P(Xt,[["__scopeId","data-v-e96aa434"]]),Kt=A({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,a=e,o=()=>{a("toggleClick")};return(s,l)=>{const r=g("el-icon");return i(),C("div",{onClick:o},[u(r,{size:20,class:"icon"},{default:_(()=>[t.isActive?(i(),b(f(bt),{key:0})):(i(),b(f(wt),{key:1}))]),_:1})])}}}),Gt=P(Kt,[["__scopeId","data-v-a21f53d4"]]);var Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.TokenData=void 0;Z.parse=Me;var Jt=Z.compile=tn;Z.match=on;Z.pathToRegexp=ot;Z.stringify=ln;const Te="/",Ee=n=>n,tt=/^[$_\p{ID_Start}]$/u,Ve=/^[$\u200c\u200d\p{ID_Continue}]$/u,me="https://git.new/pathToRegexpError",Yt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function Zt(n){return n.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function X(n){return n.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Qt(n){const e=[...n];let t=0;function a(){let o="";if(tt.test(e[++t]))for(o+=e[t];Ve.test(e[++t]);)o+=e[t];else if(e[t]==='"'){let s=t;for(;tnn(o,e,t));return o=>{const s=[""];for(const l of a){const[r,...c]=l(o);s[0]+=r,s.push(...c)}return s}}function nn(n,e,t){if(n.type==="text")return()=>[n.value];if(n.type==="group"){const o=nt(n.tokens,e,t);return s=>{const[l,...r]=o(s);return r.length?[""]:[l]}}const a=t||Ee;return n.type==="wildcard"&&t!==!1?o=>{const s=o[n.name];if(s==null)return["",n.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${n.name}" to be a non-empty array`);return[s.map((l,r)=>{if(typeof l!="string")throw new TypeError(`Expected "${n.name}/${r}" to be a string`);return a(l)}).join(e)]}:o=>{const s=o[n.name];if(s==null)return["",n.name];if(typeof s!="string")throw new TypeError(`Expected "${n.name}" to be a string`);return[a(s)]}}function on(n,e={}){const{decode:t=decodeURIComponent,delimiter:a=Te}=e,{regexp:o,keys:s}=ot(n,e),l=s.map(r=>t===!1?Ee:r.type==="param"?t:c=>c.split(a).map(t));return function(c){const d=o.exec(c);if(!d)return!1;const p=d[0],m=Object.create(null);for(let w=1;wv instanceof ke?v:Me(v,e));for(const{tokens:v}of p)for(const h of ce(v,0,[])){const x=sn(h,t,l);r.push(x)}let m=`^(?:${r.join("|")})`;return s&&(m+=`(?:${X(t)}$)?`),m+=a?"$":`(?=${X(t)}|$)`,{regexp:new RegExp(m,c),keys:l}}function*ce(n,e,t){if(e===n.length)return yield t;const a=n[e];if(a.type==="group"){const o=t.slice();for(const s of ce(a.tokens,0,o))yield*ce(n,e+1,s)}else t.push(a);yield*ce(n,e+1,t)}function sn(n,e,t){let a="",o="",s=!0;for(let l=0;lVe.test(a)):!1}function cn(n){return(n==null?void 0:n.type)!=="text"?!0:!Ve.test(n.value[0])}const un={key:0,class:"no-redirect"},dn=["onClick"],fn=A({__name:"index",setup(n){const e=ve(),t=he(),{listenerRouteChange:a}=be(),o=D([]),s=()=>{o.value=e.matched.filter(c=>{var d,p;return((d=c.meta)==null?void 0:d.title)&&((p=c.meta)==null?void 0:p.breadcrumb)!==!1})},l=c=>Jt(c)(e.params),r=c=>{const{redirect:d,path:p}=c;if(d){t.push(d);return}t.push(l(p))};return a(c=>{c.path.startsWith("/redirect/")||s()},!0),(c,d)=>{const p=g("el-breadcrumb-item"),m=g("el-breadcrumb");return i(),b(m,null,{default:_(()=>[(i(!0),C(H,null,Y(o.value,(w,v)=>(i(),b(p,{key:w.path},{default:_(()=>[w.redirect==="noRedirect"||v===o.value.length-1?(i(),C("span",un,N(w.meta.title),1)):(i(),C("a",{key:1,onClick:re(h=>r(w),["prevent"])},N(w.meta.title),9,dn))]),_:2},1024))),128))]),_:1})}}}),pn=P(fn,[["__scopeId","data-v-5110efca"]]),_e=n=>/^(https?:|mailto:|tel:)/.test(n),mn=["href"],_n=A({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,a)=>{const o=g("router-link");return f(_e)(e.to)?(i(),C("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[de(t.$slots,"default")],8,mn)):(i(),b(o,{key:1,to:e.to},{default:_(()=>[de(t.$slots,"default")]),_:3},8,["to"]))}}});function j(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Pe(n,e){for(var t="",a=0,o=-1,s=0,l,r=0;r<=n.length;++r){if(r2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",a=0):(t=t.slice(0,c),a=t.length-1-t.lastIndexOf("/")),o=r,s=0;continue}}else if(t.length===2||t.length===1){t="",a=0,o=r,s=0;continue}}e&&(t.length>0?t+="/..":t="..",a=2)}else t.length>0?t+="/"+n.slice(o+1,r):t=n.slice(o+1,r),a=r-o-1;o=r,s=0}else l===46&&s!==-1?++s:s=-1}return t}function vn(n,e){var t=e.dir||e.root,a=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+a:t+n+a:a}var te={resolve:function(){for(var e="",t=!1,a,o=arguments.length-1;o>=-1&&!t;o--){var s;o>=0?s=arguments[o]:(a===void 0&&(a=process.cwd()),s=a),j(s),s.length!==0&&(e=s+"/"+e,t=s.charCodeAt(0)===47)}return e=Pe(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(j(e),e.length===0)return".";var t=e.charCodeAt(0)===47,a=e.charCodeAt(e.length-1)===47;return e=Pe(e,!t),e.length===0&&!t&&(e="."),e.length>0&&a&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return j(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=a:e+="/"+a)}return e===void 0?".":te.normalize(e)},relative:function(e,t){if(j(e),j(t),e===t||(e=te.resolve(e),t=te.resolve(t),e===t))return"";for(var a=1;ad){if(t.charCodeAt(l+m)===47)return t.slice(l+m+1);if(m===0)return t.slice(l+m)}else s>d&&(e.charCodeAt(a+m)===47?p=m:m===0&&(p=0));break}var w=e.charCodeAt(a+m),v=t.charCodeAt(l+m);if(w!==v)break;w===47&&(p=m)}var h="";for(m=a+p+1;m<=o;++m)(m===o||e.charCodeAt(m)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(l+p):(l+=p,t.charCodeAt(l)===47&&++l,t.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(j(e),e.length===0)return".";for(var t=e.charCodeAt(0),a=t===47,o=-1,s=!0,l=e.length-1;l>=1;--l)if(t=e.charCodeAt(l),t===47){if(!s){o=l;break}}else s=!1;return o===-1?a?"/":".":a&&o===1?"//":e.slice(0,o)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');j(e);var a=0,o=-1,s=!0,l;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,c=-1;for(l=e.length-1;l>=0;--l){var d=e.charCodeAt(l);if(d===47){if(!s){a=l+1;break}}else c===-1&&(s=!1,c=l+1),r>=0&&(d===t.charCodeAt(r)?--r===-1&&(o=l):(r=-1,o=c))}return a===o?o=c:o===-1&&(o=e.length),e.slice(a,o)}else{for(l=e.length-1;l>=0;--l)if(e.charCodeAt(l)===47){if(!s){a=l+1;break}}else o===-1&&(s=!1,o=l+1);return o===-1?"":e.slice(a,o)}},extname:function(e){j(e);for(var t=-1,a=0,o=-1,s=!0,l=0,r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c===47){if(!s){a=r+1;break}continue}o===-1&&(s=!1,o=r+1),c===46?t===-1?t=r:l!==1&&(l=1):t!==-1&&(l=-1)}return t===-1||o===-1||l===0||l===1&&t===o-1&&t===a+1?"":e.slice(t,o)},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 vn("/",e)},parse:function(e){j(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var a=e.charCodeAt(0),o=a===47,s;o?(t.root="/",s=1):s=0;for(var l=-1,r=0,c=-1,d=!0,p=e.length-1,m=0;p>=s;--p){if(a=e.charCodeAt(p),a===47){if(!d){r=p+1;break}continue}c===-1&&(d=!1,c=p+1),a===46?l===-1?l=p:m!==1&&(m=1):l!==-1&&(m=-1)}return l===-1||c===-1||m===0||m===1&&l===c-1&&l===r+1?c!==-1&&(r===0&&o?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(r,c)):(r===0&&o?(t.name=e.slice(1,l),t.base=e.slice(1,c)):(t.name=e.slice(r,l),t.base=e.slice(r,c)),t.ext=e.slice(l,c)),r>0?t.dir=e.slice(0,r-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};te.posix=te;var hn=te;const st=kt(hn),gn={key:2},yn=A({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(n){const e=n,t=M(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),a=M(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(c=>{var d;return!((d=c.meta)!=null&&d.hidden)}))??[]}),o=M(()=>a.value.length),s=M(()=>{const r=o.value;switch(!0){case r>1:return null;case r===1:return a.value[0];default:return{...e.item,path:""}}}),l=r=>{switch(!0){case _e(r):return r;case _e(e.basePath):return e.basePath;default:return st.resolve(e.basePath,r)}};return(r,c)=>{const d=g("SvgIcon"),p=g("el-menu-item"),m=g("SidebarItem",!0),w=g("el-sub-menu");return!t.value&&s.value&&!s.value.children?(i(),C(H,{key:0},[s.value.meta?(i(),b(_n,{key:0,to:l(s.value.path)},{default:_(()=>[u(p,{index:l(s.value.path)},it({default:_(()=>[s.value.meta.svgIcon?(i(),b(d,{key:0,name:s.value.meta.svgIcon},null,8,["name"])):s.value.meta.elIcon?(i(),b(ue(s.value.meta.elIcon),{key:1,class:"el-icon"})):L("",!0)]),_:2},[s.value.meta.title?{name:"title",fn:_(()=>[K(N(s.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):L("",!0)],64)):(i(),b(w,{key:1,index:l(e.item.path),teleported:""},{title:_(()=>{var v,h,x;return[(v=e.item.meta)!=null&&v.svgIcon?(i(),b(d,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(i(),b(ue(e.item.meta.elIcon),{key:1,class:"el-icon"})):L("",!0),(x=e.item.meta)!=null&&x.title?(i(),C("span",gn,N(e.item.meta.title),1)):L("",!0)]}),default:_(()=>[e.item.children?(i(!0),C(H,{key:0},Y(a.value,v=>(i(),b(m,{key:v.path,item:v,"base-path":l(v.path)},null,8,["item","base-path"]))),128)):L("",!0)]),_:1},8,["index"]))}}}),bn=P(yn,[["__scopeId","data-v-9391d27c"]]),wn="/v3-admin-vite/static/logo-BY3URNHQ.png",kn="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",Sn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",xn=["src"],Cn=["src"],$n=A({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:a}=ae();return(o,s)=>{const l=g("router-link");return i(),C("div",{class:q(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":f(a)}])},[u(Xe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(i(),b(l,{key:"collapse",to:"/"},{default:_(()=>[S("img",{src:f(wn),class:"layout-logo"},null,8,xn)]),_:1})):(i(),b(l,{key:"expand",to:"/"},{default:_(()=>[S("img",{src:f(t)?f(kn):f(Sn),class:"layout-logo-text"},null,8,Cn)]),_:1}))]),_:1})],2)}}}),Le=P($n,[["__scopeId","data-v-52f1a9b3"]]),ie=(n,e=document.documentElement)=>n!=null&&n.startsWith("--")?getComputedStyle(e).getPropertyValue(n):(console.warn("CSS 变量名应以 '--' 开头"),""),Fe=(n,e,t=document.documentElement)=>{if(!(n!=null&&n.startsWith("--"))){console.warn("CSS 变量名应以 '--' 开头");return}t.style.setProperty(n,e)},Tn=A({__name:"index",setup(n){Ke(k=>({"5f7dc346":O.value,"52bd9f87":I.value,c570f0e2:R.value,"4ba5ad12":U.value,"6d87258a":F.value}));const e=ie("--v3-sidebar-menu-bg-color"),t=ie("--v3-sidebar-menu-text-color"),a=ie("--v3-sidebar-menu-active-text-color"),{isMobile:o}=se(),{isLeft:s,isTop:l}=ae(),r=ve(),c=oe(),d=Ce(),p=G(),m=M(()=>{const{meta:{activeMenu:k},path:$}=r;return k||$}),w=M(()=>d.routes.filter(k=>{var $;return!(($=k.meta)!=null&&$.hidden)})),v=M(()=>!c.sidebar.opened),h=M(()=>s.value&&p.showLogo),x=M(()=>s.value?e:void 0),V=M(()=>s.value?t:void 0),F=M(()=>s.value?a:void 0),R=M(()=>l.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),U=M(()=>l.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),O=M(()=>l.value?"0px":"2px"),I=M(()=>l.value?"none":"block");return(k,$)=>{const y=g("el-menu"),E=g("el-scrollbar");return i(),C("div",{class:q({"has-logo":h.value})},[h.value?(i(),b(Le,{key:0,collapse:v.value},null,8,["collapse"])):L("",!0),u(E,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[u(y,{"default-active":m.value,collapse:v.value&&!f(l),"background-color":x.value,"text-color":V.value,"active-text-color":F.value,"unique-opened":!0,"collapse-transition":!1,mode:f(l)&&!f(o)?"horizontal":"vertical"},{default:_(()=>[(i(!0),C(H,null,Y(w.value,z=>(i(),b(bn,{key:z.path,item:z,"base-path":z.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Ie=P(Tn,[["__scopeId","data-v-a0402d2e"]]),En={class:"card-header"},Vn={class:"card-title"},Mn={class:"card-time"},Ln={key:0,class:"card-avatar"},In=["src"],An={class:"card-body"},Rn=A({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,a)=>{const o=g("el-empty"),s=g("el-tag"),l=g("el-card");return e.list.length===0?(i(),b(o,{key:0})):(i(!0),C(H,{key:1},Y(e.list,(r,c)=>(i(),b(l,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[S("div",En,[S("div",null,[S("span",null,[S("span",Vn,N(r.title),1),r.extra?(i(),b(s,{key:0,type:r.status,effect:"plain",size:"small"},{default:_(()=>[K(N(r.extra),1)]),_:2},1032,["type"])):L("",!0)]),S("div",Mn,N(r.datetime),1)]),r.avatar?(i(),C("div",Ln,[S("img",{src:r.avatar,width:"34"},null,8,In)])):L("",!0)])]),default:_(()=>[S("div",An,N(r.description??"No Data"),1)]),_:2},1024))),128))}}}),Dn=P(Rn,[["__scopeId","data-v-c0dacc5d"]]),Pn=[{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"}],Fn=[{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"}],zn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Wn={class:"notify"},Bn={class:"notify-history"},ze=99,Nn=350,Un=A({__name:"index",setup(n){const e=M(()=>a.value.reduce((s,l)=>s+l.list.length,0)),t=D("通知"),a=D([{name:"通知",type:"primary",list:Pn},{name:"消息",type:"danger",list:Fn},{name:"待办",type:"warning",list:zn}]),o=()=>{pe.success(`跳转到${t.value}历史页面`)};return(s,l)=>{const r=g("el-icon"),c=g("el-tooltip"),d=g("el-badge"),p=g("el-scrollbar"),m=g("el-tab-pane"),w=g("el-tabs"),v=g("el-button"),h=g("el-popover");return i(),C("div",Wn,[u(h,{placement:"bottom",width:Nn,trigger:"click"},{reference:_(()=>[u(d,{value:e.value,max:ze,hidden:e.value===0},{default:_(()=>[u(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[u(r,{size:20},{default:_(()=>[u(f(St))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[u(w,{modelValue:t.value,"onUpdate:modelValue":l[0]||(l[0]=x=>t.value=x),class:"demo-tabs",stretch:""},{default:_(()=>[(i(!0),C(H,null,Y(a.value,(x,V)=>(i(),b(m,{name:x.name,key:V},{label:_(()=>[K(N(x.name)+" ",1),u(d,{value:x.list.length,max:ze,type:x.type},null,8,["value","type"])]),default:_(()=>[u(p,{height:"400px"},{default:_(()=>[u(Dn,{list:x.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),S("div",Bn,[u(v,{link:"",onClick:o},{default:_(()=>[K("查看"+N(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),On=P(Un,[["__scopeId","data-v-a5fd6355"]]),We=[["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"]],J=(()=>{if(typeof document>"u")return!1;const n=We[0],e={};for(const t of We)if((t==null?void 0:t[1])in document){for(const[o,s]of t.entries())e[n[o]]=s;return e}return!1})(),Be={change:J.fullscreenchange,error:J.fullscreenerror};let B={request(n=document.documentElement,e){return new Promise((t,a)=>{const o=()=>{B.off("change",o),t()};B.on("change",o);const s=n[J.requestFullscreen](e);s instanceof Promise&&s.then(o).catch(a)})},exit(){return new Promise((n,e)=>{if(!B.isFullscreen){n();return}const t=()=>{B.off("change",t),n()};B.on("change",t);const a=document[J.exitFullscreen]();a instanceof Promise&&a.then(t).catch(e)})},toggle(n,e){return B.isFullscreen?B.exit():B.request(n,e)},onchange(n){B.on("change",n)},onerror(n){B.on("error",n)},on(n,e){const t=Be[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Be[n];t&&document.removeEventListener(t,e,!1)},raw:J};Object.defineProperties(B,{isFullscreen:{get:()=>!!document[J.fullscreenElement]},element:{enumerable:!0,get:()=>document[J.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[J.fullscreenEnabled]}});J||(B={isEnabled:!1});const Ne="content-large",Ue="content-full",qn=A({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=document.body.classList,a=B.isEnabled,o=D(!1),s=M(()=>o.value?e.exitTips:e.openTips),l=M(()=>o.value?"fullscreen-exit":"fullscreen"),r=()=>{const h=document.querySelector(e.element)||void 0;a?B.toggle(h):pe.warning("您的浏览器无法工作")},c=()=>{o.value=B.isFullscreen,o.value||t.remove(Ne,Ue)};fe(h=>{a&&(B.on("change",c),h(()=>B.off("change",c)))});const d=D(!1),p=M(()=>d.value?"内容区复原":"内容区放大"),m=M(()=>d.value?"fullscreen-exit":"fullscreen"),w=()=>{d.value=!d.value,t.toggle(Ne,d.value)},v=()=>{d.value&&w(),t.add(Ue),r()};return(h,x)=>{const V=g("SvgIcon"),F=g("el-tooltip"),R=g("el-dropdown-item"),U=g("el-dropdown-menu"),O=g("el-dropdown");return i(),C("div",null,[h.content?(i(),b(O,{key:1,disabled:o.value},{dropdown:_(()=>[u(U,null,{default:_(()=>[u(R,{onClick:w},{default:_(()=>[K(N(p.value),1)]),_:1}),u(R,{onClick:v},{default:_(()=>x[0]||(x[0]=[K("内容区全屏")])),_:1})]),_:1})]),default:_(()=>[u(V,{name:m.value},null,8,["name"])]),_:1},8,["disabled"])):(i(),b(F,{key:0,effect:"dark",content:s.value,placement:"bottom"},{default:_(()=>[u(V,{name:l.value,onClick:r},null,8,["name"])]),_:1},8,["content"]))])}}}),at=P(qn,[["__scopeId","data-v-edf5152e"]]),Hn=["onMouseenter"],jn={class:"result-item-title"},Xn=A({__name:"SearchResult",props:dt({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=Ge(n,"modelValue"),a=n,o=ut(),s=D(0),l=p=>{const m=p.name===t.value;return{background:m?"var(--el-color-primary)":"",color:m?"#ffffff":""}},r=p=>{a.isPressUpOrDown||(t.value=p.name)},c=()=>{s.value=Number((window.innerHeight*.4).toFixed(1))},d=p=>{var h;const m=(h=o==null?void 0:o.proxy)==null?void 0:h.$refs[`resultItemRef${p}`];if(!m)return 0;const v=m[0].offsetTop+128;return v>s.value?v-s.value:0};return qe(()=>{window.addEventListener("resize",c)}),He(()=>{c()}),je(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:d}),(p,m)=>{const w=g("SvgIcon");return i(),C("div",null,[(i(!0),C(H,null,Y(p.list,(v,h)=>{var x,V,F;return i(),C("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Je(l(v)),onMouseenter:R=>r(v)},[(x=v.meta)!=null&&x.svgIcon?(i(),b(w,{key:0,name:v.meta.svgIcon},null,8,["name"])):(V=v.meta)!=null&&V.elIcon?(i(),b(ue(v.meta.elIcon),{key:1,class:"el-icon"})):L("",!0),S("span",jn,N((F=v.meta)==null?void 0:F.title),1),t.value&&t.value===v.name?(i(),b(w,{key:2,name:"keyboard-enter"})):L("",!0)],44,Hn)}),128))])}}}),Kn=P(Xn,[["__scopeId","data-v-91c42de6"]]),Gn={class:"search-footer"},Jn={class:"search-footer-item"},Yn={class:"search-footer-item"},Zn={class:"search-footer-item"},Qn={class:"search-footer-total"},eo=A({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=se();return(a,o)=>{const s=g("SvgIcon");return i(),C("div",Gn,[f(t)?L("",!0):(i(),C(H,{key:0},[S("span",Jn,[u(s,{name:"keyboard-enter"}),o[0]||(o[0]=S("span",null,"确认",-1))]),S("span",Yn,[u(s,{name:"keyboard-up"}),u(s,{name:"keyboard-down"}),o[1]||(o[1]=S("span",null,"切换",-1))]),S("span",Zn,[u(s,{name:"keyboard-esc"}),o[2]||(o[2]=S("span",null,"关闭",-1))])],64)),S("span",Qn,"共 "+N(e.total)+" 项",1)])}}}),to=P(eo,[["__scopeId","data-v-8dce46e8"]]),no=A({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Ge(n,"modelValue"),t=he(),{isMobile:a}=se(),o=D(null),s=D(null),l=D(null),r=D(""),c=ft([]),d=D(void 0),p=D(!1),m=M(()=>a.value?"80vw":"40vw"),w=M(()=>xt(Ce().routes)),v=Ct(()=>{var $;const I=h(w.value);c.value=I.filter(y=>{var E,z;return r.value?(z=(E=y.meta)==null?void 0:E.title)==null?void 0:z.toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim()):!1});const k=($=c.value)==null?void 0:$.length;d.value=k>0?c.value[0].name:void 0},500),h=(I,k=[])=>(I.forEach($=>{k.push($),$.children&&h($.children,k)}),k),x=()=>{e.value=!1,setTimeout(()=>{r.value="",c.value=[]},200)},V=I=>{var $;if(!l.value)return;const k=l.value.getScrollTop(I);($=s.value)==null||$.setScrollTop(k)},F=()=>{p.value=!0;const{length:I}=c.value;if(I===0)return;const k=c.value.findIndex($=>$.name===d.value);if(k===0){const $=c.value[I-1].name;d.value===$&&I>1?(d.value=c.value[I-2].name,V(I-2)):(d.value=$,V(I-1))}else d.value=c.value[k-1].name,V(k-1)},R=()=>{p.value=!0;const{length:I}=c.value;if(I===0)return;const k=c.value.map($=>$.name).lastIndexOf(d.value);if(k===I-1){const $=c.value[0].name;d.value===$&&I>1?(d.value=c.value[1].name,V(1)):(d.value=$,V(0))}else d.value=c.value[k+1].name,V(k+1)},U=()=>{var y;const{length:I}=c.value;if(I===0)return;const k=d.value,$=(y=c.value.find(E=>E.name===k))==null?void 0:y.path;if($&&_e($)){window.open($,"_blank","noopener, noreferrer");return}if(!k){pe.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:k})}catch{pe.error("该菜单有必填的动态参数,无法通过搜索进入");return}x()},O=()=>{p.value=!1};return(I,k)=>{const $=g("SvgIcon"),y=g("el-input"),E=g("el-empty"),z=g("el-dialog");return i(),b(z,{modelValue:e.value,"onUpdate:modelValue":k[2]||(k[2]=T=>e.value=T),onOpened:k[3]||(k[3]=T=>{var W;return(W=o.value)==null?void 0:W.focus()}),onClosed:k[4]||(k[4]=T=>{var W;return(W=o.value)==null?void 0:W.blur()}),onKeydown:[le(F,["up"]),le(R,["down"]),le(U,["enter"])],onKeyup:le(O,["up","down"]),"before-close":x,width:m.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[u(to,{total:c.value.length},null,8,["total"])]),default:_(()=>[u(y,{ref_key:"inputRef",ref:o,modelValue:r.value,"onUpdate:modelValue":k[0]||(k[0]=T=>r.value=T),onInput:f(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[u($,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(i(),b(E,{key:0,description:"暂无搜索结果","image-size":100})):(i(),C(H,{key:1},[k[5]||(k[5]=S("p",null,"搜索结果",-1)),u(f(Qe),{ref_key:"scrollbarRef",ref:s,"max-height":"40vh",always:""},{default:_(()=>[u(Kn,{ref_key:"searchResultRef",ref:l,modelValue:d.value,"onUpdate:modelValue":k[1]||(k[1]=T=>d.value=T),list:c.value,isPressUpOrDown:p.value,onClick:U},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),oo=A({__name:"index",setup(n){const e=D(!1),t=()=>{e.value=!0};return(a,o)=>{const s=g("SvgIcon"),l=g("el-tooltip");return i(),C("div",null,[u(l,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[u(s,{name:"search",onClick:t})]),_:1}),u(no,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=r=>e.value=r)},null,8,["modelValue"])])}}}),so=P(oo,[["__scopeId","data-v-dc5accb4"]]),ao={class:"navigation-bar"},lo={class:"right-menu"},ro={class:"right-menu-avatar"},co={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},io={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},uo=A({__name:"index",setup(n){const{isMobile:e}=se(),{isTop:t}=ae(),a=he(),o=oe(),s=ht(),l=G(),{showNotify:r,showThemeSwitch:c,showScreenfull:d,showSearchMenu:p}=ne(l),m=()=>{o.toggleSidebar(!1)},w=()=>{s.logout(),a.push("/login")};return(v,h)=>{const x=g("el-avatar"),V=g("el-dropdown-item"),F=g("el-dropdown-menu"),R=g("el-dropdown");return i(),C("div",ao,[!f(t)||f(e)?(i(),b(Gt,{key:0,"is-active":f(o).sidebar.opened,class:"hamburger",onToggleClick:m},null,8,["is-active"])):L("",!0),!f(t)||f(e)?(i(),b(pn,{key:1,class:"breadcrumb"})):L("",!0),f(t)&&!f(e)?(i(),b(Ie,{key:2,class:"sidebar"})):L("",!0),S("div",lo,[f(p)?(i(),b(so,{key:0,class:"right-menu-item"})):L("",!0),f(d)?(i(),b(at,{key:1,class:"right-menu-item"})):L("",!0),f(c)?(i(),b(It,{key:2,class:"right-menu-item"})):L("",!0),f(r)?(i(),b(On,{key:3,class:"right-menu-item"})):L("",!0),u(R,{class:"right-menu-item"},{dropdown:_(()=>[u(F,null,{default:_(()=>[S("a",co,[u(V,null,{default:_(()=>h[0]||(h[0]=[K("GitHub")])),_:1})]),S("a",io,[u(V,null,{default:_(()=>h[1]||(h[1]=[K("Gitee")])),_:1})]),u(V,{divided:"",onClick:w},{default:_(()=>h[2]||(h[2]=[S("span",{style:{display:"block"}},"退出登录",-1)])),_:1})]),_:1})]),default:_(()=>[S("div",ro,[u(x,{icon:f($t),size:30},null,8,["icon"]),S("span",null,N(f(s).username),1)])]),_:1})])])}}}),Ae=P(uo,[["__scopeId","data-v-1ee6dd91"]]),fo={class:"select-layout-mode"},po=A({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:a,setLayoutMode:o}=ae();return(s,l)=>{const r=g("el-aside"),c=g("el-header"),d=g("el-main"),p=g("el-container"),m=g("el-tooltip");return i(),C("div",fo,[u(m,{content:"左侧模式"},{default:_(()=>[u(p,{class:q(["layout-mode left",{active:f(e)}]),onClick:l[0]||(l[0]=w=>f(o)(f(ee).Left))},{default:_(()=>[u(r),u(p,null,{default:_(()=>[u(c),u(d)]),_:1})]),_:1},8,["class"])]),_:1}),u(m,{content:"顶部模式"},{default:_(()=>[u(p,{class:q(["layout-mode top",{active:f(t)}]),onClick:l[1]||(l[1]=w=>f(o)(f(ee).Top))},{default:_(()=>[u(c),u(d)]),_:1},8,["class"])]),_:1}),u(m,{content:"混合模式"},{default:_(()=>[u(p,{class:q(["layout-mode left-top",{active:f(a)}]),onClick:l[2]||(l[2]=w=>f(o)(f(ee).LeftTop))},{default:_(()=>[u(c),u(p,null,{default:_(()=>[u(r),u(d)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),mo=P(po,[["__scopeId","data-v-b859d856"]]),_o={class:"setting-container"},vo={class:"setting-name"},ho=A({__name:"index",setup(n){const{isLeft:e}=ae(),t=G(),{showTagsView:a,showLogo:o,fixedHeader:s,showFooter:l,showNotify:r,showThemeSwitch:c,showScreenfull:d,showSearchMenu:p,cacheTagsView:m,showWatermark:w,showGreyMode:v,showColorWeakness:h}=ne(t),x={显示标签栏:a,"显示 Logo":o,"固定 Header":s,"显示页脚 Footer":l,显示消息通知:r,显示切换主题按钮:c,显示全屏按钮:d,显示搜索按钮:p,是否缓存标签栏:m,开启系统水印:w,显示灰色模式:v,显示色弱模式:h};fe(()=>{!e.value&&(s.value=!0)});const V=()=>{gt(),location.reload()};return(F,R)=>{const U=g("el-divider"),O=g("el-switch"),I=g("el-button");return i(),C("div",_o,[R[1]||(R[1]=S("h4",null,"布局配置",-1)),u(mo),u(U),R[2]||(R[2]=S("h4",null,"功能配置",-1)),(i(),C(H,null,Y(x,(k,$,y)=>S("div",{class:"setting-item",key:y},[S("span",vo,N($),1),u(O,{modelValue:k.value,"onUpdate:modelValue":E=>k.value=E,disabled:!f(e)&&$==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),u(I,{type:"danger",icon:f(Tt),onClick:V},{default:_(()=>R[0]||(R[0]=[K("重 置")])),_:1},8,["icon"])])}}}),go=P(ho,[["__scopeId","data-v-0520d80d"]]),yo={class:"scroll-container"},bo=200,wo=A({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=ve(),a=G(),{listenerRouteChange:o}=be(),s=D(),l=D();let r=0;const c=({scrollLeft:v})=>{r=v},d=({deltaY:v})=>{/^-/.test(v.toString())?m("left"):m("right")},p=()=>{const v=l.value.clientWidth,h=s.value.wrapRef.clientWidth,x=v-h-r;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:x}},m=(v,h=bo)=>{let x=0;const{scrollbarContentRefWidth:V,scrollbarRefWidth:F,lastDistance:R}=p();F>V||(v==="left"?x=Math.max(0,r-h):x=Math.min(r+h,r+R),s.value.setScrollLeft(x))},w=()=>{const v=e.tagRefs;for(let h=0;hU){const O=F-U;m("right",O);return}}};return o(()=>{pt(w)}),(v,h)=>{const x=g("el-icon");return i(),C("div",yo,[u(x,{class:"arrow left",onClick:h[0]||(h[0]=V=>m("left"))},{default:_(()=>[u(f(Et))]),_:1}),u(f(Qe),{ref_key:"scrollbarRef",ref:s,onWheelPassive:d,onScroll:c},{default:_(()=>[S("div",{ref_key:"scrollbarContentRef",ref:l,class:"scrollbar-content"},[de(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),u(x,{class:"arrow right",onClick:h[1]||(h[1]=V=>m("right"))},{default:_(()=>[u(f(Vt))]),_:1}),f(a).showScreenfull?(i(),b(at,{key:0,content:!0,class:"screenfull"})):L("",!0)])}}}),ko=P(wo,[["__scopeId","data-v-5784e87c"]]),So={class:"tags-view-container"},xo=A({__name:"index",setup(n){const e=he(),t=ve(),a=Ze(),o=Ce(),{listenerRouteChange:s}=be(),l=D([]),r=D(!1),c=D(0),d=D(0),p=D({});let m=[];const w=y=>y.path===t.path,v=y=>{var E;return(E=y.meta)==null?void 0:E.affix},h=(y,E="/")=>{const z=[];return y.forEach(T=>{if(v(T)){const W=st.resolve(E,T.path);z.push({fullPath:W,path:W,name:T.name,meta:{...T.meta}})}if(T.children){const W=h(T.children,T.path);z.push(...W)}}),z},x=()=>{m=h(o.routes);for(const y of m)y.name&&a.addVisitedView(y)},V=y=>{y.name&&(a.addVisitedView(y),a.addCachedView(y))},F=y=>{a.delCachedView(y),e.replace({path:"/redirect"+y.path,query:y.query})},R=y=>{a.delVisitedView(y),a.delCachedView(y),w(y)&&I(a.visitedViews,y)},U=()=>{const y=p.value.fullPath;y!==t.path&&y!==void 0&&e.push(y),a.delOthersVisitedViews(p.value),a.delOthersCachedViews(p.value)},O=y=>{a.delAllVisitedViews(),a.delAllCachedViews(),!m.some(E=>E.path===t.path)&&I(a.visitedViews,y)},I=(y,E)=>{const z=y.slice(-1)[0],T=z==null?void 0:z.fullPath;T!==void 0?e.push(T):E.name==="Dashboard"?e.push({path:"/redirect"+E.path,query:E.query}):e.push("/")},k=(y,E)=>{const W=document.body.offsetWidth-100,Se=E.clientX+10;d.value=Se>W?W:Se,c.value=E.clientY,r.value=!0,p.value=y},$=()=>{r.value=!1};return Oe(r,y=>{y?document.body.addEventListener("click",$):document.body.removeEventListener("click",$)}),x(),s(y=>{V(y)},!0),(y,E)=>{const z=g("el-icon");return i(),C("div",So,[u(ko,{class:"tags-view-wrapper","tag-refs":l.value},{default:_(()=>[(i(!0),C(H,null,Y(f(a).visitedViews,T=>(i(),b(f(mt),{ref_for:!0,ref_key:"tagRefs",ref:l,key:T.path,class:q([{active:w(T)},"tags-view-item"]),to:{path:T.path,query:T.query},onMouseup:re(W=>!v(T)&&R(T),["middle"]),onContextmenu:re(W=>k(T,W),["prevent"])},{default:_(()=>{var W;return[K(N((W=T.meta)==null?void 0:W.title)+" ",1),v(T)?L("",!0):(i(),b(z,{key:0,size:12,onClick:re(Se=>R(T),["prevent","stop"])},{default:_(()=>[u(f(Mt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ge(S("ul",{class:"contextmenu",style:Je({left:d.value+"px",top:c.value+"px"})},[S("li",{onClick:E[0]||(E[0]=T=>F(p.value))},"刷新"),v(p.value)?L("",!0):(i(),C("li",{key:0,onClick:E[1]||(E[1]=T=>R(p.value))},"关闭")),S("li",{onClick:U},"关闭其它"),S("li",{onClick:E[2]||(E[2]=T=>O(p.value))},"关闭所有")],4),[[ye,r.value]])])}}}),Re=P(xo,[["__scopeId","data-v-01b5745a"]]),Co=A({__name:"index",props:{buttonTop:{default:350}},setup(n){Ke(o=>({"14e85e11":t}));const t=n.buttonTop+"px",a=D(!1);return(o,s)=>{const l=g("el-icon"),r=g("el-drawer");return i(),C(H,null,[S("div",{class:"handle-button",onClick:s[0]||(s[0]=c=>a.value=!0)},[u(l,{size:24},{default:_(()=>[u(f(Lt))]),_:1})]),u(r,{modelValue:a.value,"onUpdate:modelValue":s[1]||(s[1]=c=>a.value=c),size:"300px","with-header":!1},{default:_(()=>[de(o.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),$o=P(Co,[["__scopeId","data-v-272ec5c4"]]),To=A({__name:"LeftMode",setup(n){const{isMobile:e}=se(),t=oe(),a=G(),{showTagsView:o,fixedHeader:s}=ne(a),l=M(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),r=()=>{t.closeSidebar(!1)};return(c,d)=>(i(),C("div",{class:q([l.value,"app-wrapper"])},[l.value.mobile&&l.value.openSidebar?(i(),C("div",{key:0,class:"drawer-bg",onClick:r})):L("",!0),u(f(Ie),{class:"sidebar-container"}),S("div",{class:q([{hasTagsView:f(o)},"main-container"])},[S("div",{class:q([{"fixed-header":f(s)},"layout-header"])},[u(f(Ae)),ge(u(f(Re),null,null,512),[[ye,f(o)]])],2),u(f($e),{class:"app-main"})],2)],2))}}),Eo=P(To,[["__scopeId","data-v-79281f6e"]]),Vo={class:"app-wrapper"},Mo={class:"fixed-header layout-header"},Lo={class:"content"},Io=A({__name:"TopMode",setup(n){const e=G(),{showTagsView:t,showLogo:a}=ne(e);return(o,s)=>(i(),C("div",Vo,[S("div",Mo,[S("div",Lo,[f(a)?(i(),b(f(Le),{key:0,collapse:!1,class:"logo"})):L("",!0),u(f(Ae),{class:"navigation-bar"})]),ge(u(f(Re),null,null,512),[[ye,f(t)]])]),S("div",{class:q([{hasTagsView:f(t)},"main-container"])},[u(f($e),{class:"app-main"})],2)]))}}),Ao=P(Io,[["__scopeId","data-v-da4d3997"]]),Ro={class:"fixed-header layout-header"},Do={class:"content"},Po=A({__name:"LeftTopMode",setup(n){const e=oe(),t=G(),{showTagsView:a,showLogo:o}=ne(t),s=M(()=>({hideSidebar:!e.sidebar.opened}));return(l,r)=>(i(),C("div",{class:q([s.value,"app-wrapper"])},[S("div",Ro,[f(o)?(i(),b(f(Le),{key:0,collapse:!1,class:"logo"})):L("",!0),S("div",Do,[u(f(Ae)),ge(u(f(Re),null,null,512),[[ye,f(a)]])])]),S("div",{class:q([{hasTagsView:f(a)},"main-container"])},[u(f(Ie),{class:"sidebar-container"}),u(f($e),{class:"app-main"})],2)],2))}}),Fo=P(Po,[["__scopeId","data-v-a513453e"]]),xe="--v3-tagsview-height",qo=A({__name:"index",setup(n){Dt();const{setWatermark:e,clearWatermark:t}=yt(),{isMobile:a}=se(),{isLeft:o,isTop:s,isLeftTop:l}=ae(),r=G(),{showSettings:c,showTagsView:d,showWatermark:p}=ne(r),m=ie(xe);return fe(()=>{d.value?Fe(xe,m):Fe(xe,"0px")}),fe(()=>{p.value?e("V3 Admin Vite"):t()}),(w,v)=>(i(),C("div",null,[f(o)||f(a)?(i(),b(Eo,{key:0})):f(s)?(i(),b(Ao,{key:1})):f(l)?(i(),b(Fo,{key:2})):L("",!0),f(c)?(i(),b(f($o),{key:3},{default:_(()=>[u(f(go))]),_:1})):L("",!0)]))}});export{qo as default}; diff --git a/static/index-CwQ7_t66.css b/static/index-CwQ7_t66.css new file mode 100644 index 00000000..f3d52454 --- /dev/null +++ b/static/index-CwQ7_t66.css @@ -0,0 +1 @@ +@charset "UTF-8";.layout-footer[data-v-18d14396]{width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;color:var(--el-text-color-placeholder)}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar{width:8px;height:8px}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#90939955}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:hover{background-color:#90939977}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:active{background-color:#90939999}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-corner{background-color:transparent}.app-main[data-v-e96aa434]{width:100%;display:flex}.app-scrollbar[data-v-e96aa434]{flex-grow:1;overflow:auto;display:flex;flex-direction:column}.app-scrollbar .app-container-grow[data-v-e96aa434]{flex-grow:1}.icon[data-v-a21f53d4]{vertical-align:middle;color:var(--v3-hamburger-text-color)}.el-breadcrumb[data-v-5110efca]{line-height:var(--v3-navigationbar-height)}.el-breadcrumb .no-redirect[data-v-5110efca]{color:var(--el-text-color-placeholder)}.el-breadcrumb a[data-v-5110efca]{font-weight:400}.svg-icon[data-v-9391d27c]{min-width:1em;margin-right:12px;font-size:18px}.el-icon[data-v-9391d27c]{width:1em!important;margin-right:12px!important;font-size:18px}.layout-logo-container[data-v-52f1a9b3]{position:relative;width:100%;height:var(--v3-header-height);line-height:var(--v3-header-height);text-align:center;overflow:hidden}.layout-logo-container .layout-logo[data-v-52f1a9b3]{display:none}.layout-logo-container .layout-logo-text[data-v-52f1a9b3]{height:100%;vertical-align:middle}.layout-mode-top[data-v-52f1a9b3]{height:var(--v3-navigationbar-height);line-height:var(--v3-navigationbar-height)}.collapse .layout-logo[data-v-52f1a9b3]{width:32px;height:32px;vertical-align:middle;display:inline-block}.collapse .layout-logo-text[data-v-52f1a9b3]{display:none}.el-menu--collapse[data-v-d9a55038] .el-sub-menu.is-active .el-sub-menu__title:before,[data-v-d9a55038] .el-menu-item.is-active:before{content:"";position:absolute;top:0;left:0;width:var(--3c13d016);height:100%;background-color:var(--v3-sidebar-menu-tip-line-bg-color)}.has-logo .el-scrollbar[data-v-d9a55038]{height:calc(100% - var(--v3-header-height))}.el-scrollbar[data-v-d9a55038]{height:100%}.el-scrollbar[data-v-d9a55038] .scrollbar-wrapper{overflow-x:hidden!important}.el-scrollbar[data-v-d9a55038] .el-scrollbar__bar.is-horizontal{display:none}.el-menu[data-v-d9a55038]{border:none;width:100%!important}.el-menu--horizontal[data-v-d9a55038]{height:var(--a4029414)}[data-v-d9a55038] .el-menu-item,[data-v-d9a55038] .el-sub-menu__title,[data-v-d9a55038] .el-sub-menu .el-menu-item,[data-v-d9a55038] .el-menu--horizontal .el-menu-item{height:var(--a4029414);line-height:var(--a4029414)}[data-v-d9a55038] .el-menu-item.is-active,[data-v-d9a55038] .el-menu-item:hover,[data-v-d9a55038] .el-sub-menu__title.is-active,[data-v-d9a55038] .el-sub-menu__title:hover,[data-v-d9a55038] .el-sub-menu .el-menu-item.is-active,[data-v-d9a55038] .el-sub-menu .el-menu-item:hover,[data-v-d9a55038] .el-menu--horizontal .el-menu-item.is-active,[data-v-d9a55038] .el-menu--horizontal .el-menu-item:hover{background-color:var(--cc5b4bc4)}[data-v-d9a55038] .el-sub-menu.is-active>.el-sub-menu__title{color:var(--2d82259e)!important}.card-container[data-v-c0dacc5d]{margin-bottom:10px}.card-container .card-header[data-v-c0dacc5d]{display:flex;justify-content:space-between;align-items:center}.card-container .card-header .card-title[data-v-c0dacc5d]{font-weight:700;margin-right:10px}.card-container .card-header .card-time[data-v-c0dacc5d]{font-size:12px;color:var(--el-text-color-secondary)}.card-container .card-header .card-avatar[data-v-c0dacc5d]{display:flex;align-items:center}.card-container .card-body[data-v-c0dacc5d]{font-size:12px}.notify[data-v-a5fd6355]{margin-right:10px}.notify-history[data-v-a5fd6355]{text-align:center;padding-top:12px;border-top:1px solid var(--el-border-color)}.svg-icon[data-v-edf5152e]{font-size:20px}.svg-icon[data-v-edf5152e]:focus{outline:none}.result-item-title[data-v-91c42de6]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.result-item[data-v-91c42de6]{display:flex;align-items:center;height:56px;padding:0 15px;margin-bottom:8px;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer}.result-item .svg-icon[data-v-91c42de6]{min-width:1em;font-size:18px}.result-item .el-icon[data-v-91c42de6]{width:1em;font-size:18px}.result-item-title[data-v-91c42de6]{flex:1;margin-left:12px}.search-footer[data-v-8dce46e8]{display:flex;color:var(--el-text-color-secondary);font-size:14px}.search-footer-item[data-v-8dce46e8]{display:flex;align-items:center;margin-right:12px}.search-footer-item .svg-icon[data-v-8dce46e8]{margin-right:5px;padding:2px;font-size:20px;background-color:var(--el-fill-color)}.search-footer-total[data-v-8dce46e8]{margin:0 0 0 auto}.search-modal__private .svg-icon{font-size:18px}.search-modal__private .el-dialog__header{display:none}.search-modal__private .el-dialog__footer{border-top:1px solid var(--el-border-color);padding-top:var(--el-dialog-padding-primary)}.svg-icon[data-v-dc5accb4]{font-size:20px}.svg-icon[data-v-dc5accb4]:focus{outline:none}.navigation-bar[data-v-1ee6dd91]{height:var(--v3-navigationbar-height);overflow:hidden;color:var(--v3-navigationbar-text-color);display:flex;justify-content:space-between}.navigation-bar .hamburger[data-v-1ee6dd91]{display:flex;align-items:center;height:100%;padding:0 15px;cursor:pointer}.navigation-bar .breadcrumb[data-v-1ee6dd91]{flex:1}@media screen and (max-width: 576px){.navigation-bar .breadcrumb[data-v-1ee6dd91]{display:none}}.navigation-bar .sidebar[data-v-1ee6dd91]{flex:1;min-width:0px}.navigation-bar .sidebar[data-v-1ee6dd91] .el-menu{background-color:transparent}.navigation-bar .sidebar[data-v-1ee6dd91] .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-color-primary)!important}.navigation-bar .right-menu[data-v-1ee6dd91]{margin-right:10px;height:100%;display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item[data-v-1ee6dd91]{padding:0 10px;cursor:pointer}.navigation-bar .right-menu .right-menu-item .right-menu-avatar[data-v-1ee6dd91]{display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item .right-menu-avatar .el-avatar[data-v-1ee6dd91]{margin-right:10px}.navigation-bar .right-menu .right-menu-item .right-menu-avatar span[data-v-1ee6dd91]{font-size:16px}.select-layout-mode[data-v-b859d856]{display:flex;justify-content:space-between}.layout-mode[data-v-b859d856]{width:60px;flex-grow:0;overflow:hidden;cursor:pointer;border-radius:6px;border:2px solid transparent}.layout-mode[data-v-b859d856]:hover,.active[data-v-b859d856]{border:2px solid var(--el-color-primary)}.el-header[data-v-b859d856]{height:12px}.el-aside[data-v-b859d856]{width:16px}.left .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.top .el-header[data-v-b859d856]{background-color:var(--el-color-primary)}.top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.left-top .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left-top .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left-top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.setting-container .setting-item .setting-name[data-v-0520d80d]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.setting-container[data-v-0520d80d]{padding:20px}.setting-container .setting-item[data-v-0520d80d]{font-size:14px;color:var(--el-text-color-regular);padding:5px 0;display:flex;justify-content:space-between;align-items:center}.setting-container .el-button[data-v-0520d80d]{margin-top:40px;width:100%}.scroll-container[data-v-5784e87c]{height:100%;-webkit-user-select:none;user-select:none;display:flex;justify-content:space-between}.scroll-container .arrow[data-v-5784e87c]{width:40px;height:100%;font-size:18px;cursor:pointer}.scroll-container .arrow.left[data-v-5784e87c]{box-shadow:5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .arrow.right[data-v-5784e87c]{box-shadow:-5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .el-scrollbar[data-v-5784e87c]{flex:1;white-space:nowrap}.scroll-container .el-scrollbar .scrollbar-content[data-v-5784e87c]{display:inline-block}.scroll-container .screenfull[data-v-5784e87c]{width:40px;display:flex;justify-content:center;align-items:center;cursor:pointer}.tags-view-container[data-v-01b5745a]{height:var(--v3-tagsview-height);width:100%;color:var(--v3-tagsview-text-color);overflow:hidden}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-01b5745a]{display:inline-block;position:relative;cursor:pointer;height:26px;line-height:26px;border:1px solid var(--v3-tagsview-tag-border-color);border-radius:var(--v3-tagsview-tag-border-radius);background-color:var(--v3-tagsview-tag-bg-color);padding:0 8px;font-size:12px;margin-left:5px;margin-top:4px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-01b5745a]:first-of-type{margin-left:5px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-01b5745a]:last-of-type{margin-right:5px}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-01b5745a]{background-color:var(--v3-tagsview-tag-active-bg-color);color:var(--v3-tagsview-tag-active-text-color);border-color:var(--v3-tagsview-tag-active-border-color)}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-01b5745a]{margin:0 2px;vertical-align:middle;border-radius:50%}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-01b5745a]:hover{background-color:var(--v3-tagsview-tag-icon-hover-bg-color);color:var(--v3-tagsview-tag-icon-hover-color)}.tags-view-container .contextmenu[data-v-01b5745a]{margin:0;z-index:3000;position:fixed;list-style-type:none;padding:5px 0;border-radius:4px;font-size:12px;color:var(--v3-tagsview-contextmenu-text-color);background-color:var(--v3-tagsview-contextmenu-bg-color);box-shadow:var(--v3-tagsview-contextmenu-box-shadow)}.tags-view-container .contextmenu li[data-v-01b5745a]{margin:0;padding:7px 16px;cursor:pointer}.tags-view-container .contextmenu li[data-v-01b5745a]:hover{color:var(--v3-tagsview-contextmenu-hover-text-color);background-color:var(--v3-tagsview-contextmenu-hover-bg-color)}.handle-button[data-v-272ec5c4]{width:48px;height:48px;background-color:var(--v3-rightpanel-button-bg-color);position:fixed;top:var(--14e85e11);right:0;border-radius:6px 0 0 6px;z-index:2000;cursor:pointer;pointer-events:auto;color:#fff;display:flex;align-items:center;justify-content:center}.app-wrapper[data-v-e4154407]:after{content:"";display:table;clear:both}.app-wrapper[data-v-e4154407]{position:relative;width:100%}.drawer-bg[data-v-e4154407]{background-color:#0000004d;width:100%;top:0;height:100%;position:absolute;z-index:999}.sidebar-container[data-v-e4154407]{background-color:var(--v3-sidebar-menu-bg-color);transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;top:0;bottom:0;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right)}.main-container[data-v-e4154407]{min-height:100%;transition:margin-left .35s;margin-left:var(--v3-sidebar-width);position:relative}.fixed-header[data-v-e4154407]{position:fixed!important;top:0;right:0;z-index:9;width:calc(100% - var(--v3-sidebar-width));transition:width .35s}.layout-header[data-v-e4154407]{position:relative;z-index:9;background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.app-main[data-v-e4154407]{min-height:calc(100vh - var(--v3-navigationbar-height));position:relative;overflow:hidden}.fixed-header+.app-main[data-v-e4154407]{padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-e4154407]{min-height:calc(100vh - var(--v3-header-height))}.hasTagsView .fixed-header+.app-main[data-v-e4154407]{padding-top:var(--v3-header-height)}.hideSidebar .sidebar-container[data-v-e4154407]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .main-container[data-v-e4154407]{margin-left:var(--v3-sidebar-hide-width)}.hideSidebar .fixed-header[data-v-e4154407]{width:calc(100% - var(--v3-sidebar-hide-width))}.mobile .sidebar-container[data-v-e4154407]{transition:transform .35s;width:var(--v3-sidebar-width)!important}.mobile .main-container[data-v-e4154407]{margin-left:0}.mobile .fixed-header[data-v-e4154407]{width:100%}.mobile.openSidebar[data-v-e4154407]{position:fixed;top:0}.mobile.hideSidebar .sidebar-container[data-v-e4154407]{pointer-events:none;transition-duration:.3s;transform:translate3d(calc(0px - var(--v3-sidebar-width)),0,0)}.mobile.noLeft .sidebar-container[data-v-e4154407]{background-color:var(--el-bg-color)}.withoutAnimation .sidebar-container[data-v-e4154407],.withoutAnimation .main-container[data-v-e4154407]{transition:none}.app-wrapper[data-v-da4d3997]:after{content:"";display:table;clear:both}.app-wrapper[data-v-da4d3997]{width:100%}.fixed-header[data-v-da4d3997]{position:fixed;top:0;z-index:1002;width:100%}.fixed-header .logo[data-v-da4d3997]{width:var(--v3-sidebar-width)}.fixed-header .content[data-v-da4d3997]{display:flex}.fixed-header .content .navigation-bar[data-v-da4d3997]{flex:1}.layout-header[data-v-da4d3997]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-da4d3997]{min-height:100%}.app-main[data-v-da4d3997]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-da4d3997]{padding-top:var(--v3-header-height)}.app-wrapper[data-v-6c3d4686]:after{content:"";display:table;clear:both}.app-wrapper[data-v-6c3d4686]{width:100%}.fixed-header[data-v-6c3d4686]{position:fixed;top:0;z-index:1002;width:100%;display:flex}.fixed-header .logo[data-v-6c3d4686]{flex:none;width:var(--v3-sidebar-width)}.fixed-header .content[data-v-6c3d4686]{flex:1;overflow:hidden}.layout-header[data-v-6c3d4686]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-6c3d4686]{min-height:100%}.sidebar-container[data-v-6c3d4686]{background-color:var(--el-menu-bg-color);transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right);padding-top:var(--v3-navigationbar-height)}.app-main[data-v-6c3d4686]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);padding-left:var(--v3-sidebar-width);height:100vh;overflow:auto}.hideSidebar .sidebar-container[data-v-6c3d4686]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .app-main[data-v-6c3d4686]{padding-left:var(--v3-sidebar-hide-width)}.hasTagsView .sidebar-container[data-v-6c3d4686],.hasTagsView .app-main[data-v-6c3d4686]{padding-top:var(--v3-header-height)} diff --git a/static/index-DSkebEBU.js b/static/index-DBUZIcJ7.js similarity index 79% rename from static/index-DSkebEBU.js rename to static/index-DBUZIcJ7.js index 582f5552..0c617d41 100644 --- a/static/index-DSkebEBU.js +++ b/static/index-DBUZIcJ7.js @@ -1 +1 @@ -import{i as e}from"./index-lhjAkg-7.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{i as e}from"./index-B_OLftB1.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/static/index-CzCqoH2W.js b/static/index-DPcx_Uvi.js similarity index 91% rename from static/index-CzCqoH2W.js rename to static/index-DPcx_Uvi.js index 0a591539..dbe4fa26 100644 --- a/static/index-CzCqoH2W.js +++ b/static/index-DPcx_Uvi.js @@ -1 +1 @@ -import{_ as c,e as _}from"./index-lhjAkg-7.js";import{ai as s,q as t,t as r,U as a,p as i,M as p,Q as d,u as m}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const f={},l={class:"app-container center"};function u(n,o){const e=s("el-empty");return t(),r("div",l,[a(e,{description:"欢迎来到 admin 角色专属首页"})])}const v=c(f,[["render",u],["__scopeId","data-v-7644c57f"]]),x={},h={class:"app-container center"};function y(n,o){const e=s("el-empty");return t(),r("div",h,[a(e,{description:"欢迎来到 editor 角色专属首页"})])}const $=c(x,[["render",y],["__scopeId","data-v-1ffd0ab5"]]),I=i({__name:"index",setup(n){const e=_().roles.includes("admin");return(k,B)=>(t(),p(d(m(e)?v:$)))}});export{I as default}; +import{_ as c,e as _}from"./index-B_OLftB1.js";import{ai as s,q as t,t as r,U as a,p as i,M as p,Q as d,u as m}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const f={},l={class:"app-container center"};function u(n,o){const e=s("el-empty");return t(),r("div",l,[a(e,{description:"欢迎来到 admin 角色专属首页"})])}const v=c(f,[["render",u],["__scopeId","data-v-7644c57f"]]),x={},h={class:"app-container center"};function y(n,o){const e=s("el-empty");return t(),r("div",h,[a(e,{description:"欢迎来到 editor 角色专属首页"})])}const $=c(x,[["render",y],["__scopeId","data-v-1ffd0ab5"]]),I=i({__name:"index",setup(n){const e=_().roles.includes("admin");return(k,B)=>(t(),p(d(m(e)?v:$)))}});export{I as default}; diff --git a/static/index-BWmsIUk1.js b/static/index-DTnylfwR.js similarity index 83% rename from static/index-BWmsIUk1.js rename to static/index-DTnylfwR.js index ab84a3b1..d06d748e 100644 --- a/static/index-BWmsIUk1.js +++ b/static/index-DTnylfwR.js @@ -1 +1 @@ -import{_ as n}from"./index-lhjAkg-7.js";import{ai as e,q as c,t as a,U as o,O as s}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default}; +import{_ as n}from"./index-B_OLftB1.js";import{ai as e,q as c,t as a,U as o,O as s}from"./vue-BWN0lbwY.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const h=n(_,[["render",m]]);export{h as default}; diff --git a/static/index-B5Im1QMx.js b/static/index-DaS3DRlm.js similarity index 97% rename from static/index-B5Im1QMx.js rename to static/index-DaS3DRlm.js index f078716a..453d67a5 100644 --- a/static/index-B5Im1QMx.js +++ b/static/index-DaS3DRlm.js @@ -1 +1 @@ -import{d as D,g as T}from"./index-DSkebEBU.js";import{U as s,p as P,r as _,Z as y,n as $,ai as x,q as M,t as S,O as p,S as h,K as k}from"./vue-BWN0lbwY.js";import{H as U,b as w}from"./element-C5mYgMeM.js";import"./index-lhjAkg-7.js";import"./vxe-CtPXIgsa.js";const E={default:({row:b,column:l})=>{const i=b[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},R={default:({row:b,column:l})=>{const i=b[l.field],[u,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[g])]}},O={class:"app-container"},I=P({name:"VxeTable",__name:"index",setup(b){const l=_(),i=y({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:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:R},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!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=_(),g=y({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=_(),m=y({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=y({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,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.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(),$(()=>{var f,n;!r.isUpdate&&((f=v.value)==null||f.reset()),(n=v.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=v.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),w.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};U.confirm(t,"提示",o).then(()=>{D(e.id).then(()=>{w.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=x("vxe-button"),a=x("el-button"),c=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return M(),S("div",O,[s(c,k({ref_key:"xGridDom",ref:l},i),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>r.onShowModal())},{default:p(()=>t[1]||(t[1]=[h("新增用户")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[h("批量删除")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>t[3]||(t[3]=[h("修改")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>t[4]||(t[4]=[h("删除")])),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:u},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{I as default}; +import{d as D,g as T}from"./index-DBUZIcJ7.js";import{U as s,p as P,r as _,Z as y,n as $,ai as x,q as M,t as S,O as p,S as h,K as k}from"./vue-BWN0lbwY.js";import{H as U,b as w}from"./element-C5mYgMeM.js";import"./index-B_OLftB1.js";import"./vxe-CtPXIgsa.js";const E={default:({row:b,column:l})=>{const i=b[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},R={default:({row:b,column:l})=>{const i=b[l.field],[u,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${u} el-tag--plain`},[g])]}},O={class:"app-container"},I=P({name:"VxeTable",__name:"index",setup(b){const l=_(),i=y({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:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:R},{field:"createTime",title:"创建时间"},{title:"操作",width:"150px",fixed:"right",showOverflow:!1,slots:{default:"row-operate"}}],proxyConfig:{seq:!0,form:!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=_(),g=y({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=_(),m=y({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=y({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,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.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(),$(()=>{var f,n;!r.isUpdate&&((f=v.value)==null||f.reset()),(n=v.value)==null||n.clearValidate()})},onSubmitForm:()=>{var e;m.loading||(e=v.value)==null||e.validate(t=>{if(t)return;m.loading=!0;const o=()=>{var a;m.loading=!1,(a=u.value)==null||a.close(),w.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};U.confirm(t,"提示",o).then(()=>{D(e.id).then(()=>{w.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=x("vxe-button"),a=x("el-button"),c=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return M(),S("div",O,[s(c,k({ref_key:"xGridDom",ref:l},i),{"toolbar-btns":p(()=>[s(o,{status:"primary",icon:"vxe-icon-add",onClick:t[0]||(t[0]=n=>r.onShowModal())},{default:p(()=>t[1]||(t[1]=[h("新增用户")])),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>t[2]||(t[2]=[h("批量删除")])),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>t[3]||(t[3]=[h("修改")])),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>t[4]||(t[4]=[h("删除")])),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:u},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{I as default}; diff --git a/static/index-Dd44OBIm.css b/static/index-Dd44OBIm.css deleted file mode 100644 index 086b947a..00000000 --- a/static/index-Dd44OBIm.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.layout-footer[data-v-18d14396]{width:100%;min-height:50px;display:flex;align-items:center;justify-content:center;color:var(--el-text-color-placeholder)}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar{width:8px;height:8px}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb{border-radius:4px;background-color:#90939955}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:hover{background-color:#90939977}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-thumb:active{background-color:#90939999}.app-scrollbar[data-v-e96aa434]::-webkit-scrollbar-corner{background-color:transparent}.app-main[data-v-e96aa434]{width:100%;display:flex}.app-scrollbar[data-v-e96aa434]{flex-grow:1;overflow:auto;display:flex;flex-direction:column}.app-scrollbar .app-container-grow[data-v-e96aa434]{flex-grow:1}.icon[data-v-a21f53d4]{vertical-align:middle;color:var(--v3-hamburger-text-color)}.el-breadcrumb[data-v-5110efca]{line-height:var(--v3-navigationbar-height)}.el-breadcrumb .no-redirect[data-v-5110efca]{color:var(--el-text-color-placeholder)}.el-breadcrumb a[data-v-5110efca]{font-weight:400}.svg-icon[data-v-9391d27c]{min-width:1em;margin-right:12px;font-size:18px}.el-icon[data-v-9391d27c]{width:1em!important;margin-right:12px!important;font-size:18px}.layout-logo-container[data-v-52f1a9b3]{position:relative;width:100%;height:var(--v3-header-height);line-height:var(--v3-header-height);text-align:center;overflow:hidden}.layout-logo-container .layout-logo[data-v-52f1a9b3]{display:none}.layout-logo-container .layout-logo-text[data-v-52f1a9b3]{height:100%;vertical-align:middle}.layout-mode-top[data-v-52f1a9b3]{height:var(--v3-navigationbar-height);line-height:var(--v3-navigationbar-height)}.collapse .layout-logo[data-v-52f1a9b3]{width:32px;height:32px;vertical-align:middle;display:inline-block}.collapse .layout-logo-text[data-v-52f1a9b3]{display:none}.el-menu--collapse[data-v-a0402d2e] .el-sub-menu.is-active .el-sub-menu__title:before,[data-v-a0402d2e] .el-menu-item.is-active:before{content:"";position:absolute;top:0;left:0;width:var(--5f7dc346);height:100%;background-color:var(--v3-sidebar-menu-tip-line-bg-color)}.has-logo .el-scrollbar[data-v-a0402d2e]{height:calc(101% - var(--v3-header-height))}.el-scrollbar[data-v-a0402d2e]{height:101%}.el-scrollbar[data-v-a0402d2e] .scrollbar-wrapper{overflow-x:hidden!important}.el-scrollbar[data-v-a0402d2e] .scrollbar-wrapper .el-scrollbar__view{height:100%}.el-scrollbar[data-v-a0402d2e] .el-scrollbar__bar.is-horizontal{display:none}.el-scrollbar[data-v-a0402d2e] .el-scrollbar__bar.is-vertical{display:var(--52bd9f87)}.el-menu[data-v-a0402d2e]{border:none;min-height:100%;width:100%!important}.el-menu--horizontal[data-v-a0402d2e]{height:var(--c570f0e2)}[data-v-a0402d2e] .el-menu-item,[data-v-a0402d2e] .el-sub-menu__title,[data-v-a0402d2e] .el-sub-menu .el-menu-item,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item{height:var(--c570f0e2);line-height:var(--c570f0e2)}[data-v-a0402d2e] .el-menu-item.is-active,[data-v-a0402d2e] .el-menu-item:hover,[data-v-a0402d2e] .el-sub-menu__title.is-active,[data-v-a0402d2e] .el-sub-menu__title:hover,[data-v-a0402d2e] .el-sub-menu .el-menu-item.is-active,[data-v-a0402d2e] .el-sub-menu .el-menu-item:hover,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item.is-active,[data-v-a0402d2e] .el-menu--horizontal .el-menu-item:hover{background-color:var(--4ba5ad12)}[data-v-a0402d2e] .el-sub-menu.is-active>.el-sub-menu__title{color:var(--6d87258a)!important}.card-container[data-v-c0dacc5d]{margin-bottom:10px}.card-container .card-header[data-v-c0dacc5d]{display:flex;justify-content:space-between;align-items:center}.card-container .card-header .card-title[data-v-c0dacc5d]{font-weight:700;margin-right:10px}.card-container .card-header .card-time[data-v-c0dacc5d]{font-size:12px;color:var(--el-text-color-secondary)}.card-container .card-header .card-avatar[data-v-c0dacc5d]{display:flex;align-items:center}.card-container .card-body[data-v-c0dacc5d]{font-size:12px}.notify[data-v-a5fd6355]{margin-right:10px}.notify-history[data-v-a5fd6355]{text-align:center;padding-top:12px;border-top:1px solid var(--el-border-color)}.svg-icon[data-v-edf5152e]{font-size:20px}.svg-icon[data-v-edf5152e]:focus{outline:none}.result-item-title[data-v-91c42de6]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.result-item[data-v-91c42de6]{display:flex;align-items:center;height:56px;padding:0 15px;margin-bottom:8px;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer}.result-item .svg-icon[data-v-91c42de6]{min-width:1em;font-size:18px}.result-item .el-icon[data-v-91c42de6]{width:1em;font-size:18px}.result-item-title[data-v-91c42de6]{flex:1;margin-left:12px}.search-footer[data-v-8dce46e8]{display:flex;color:var(--el-text-color-secondary);font-size:14px}.search-footer-item[data-v-8dce46e8]{display:flex;align-items:center;margin-right:12px}.search-footer-item .svg-icon[data-v-8dce46e8]{margin-right:5px;padding:2px;font-size:20px;background-color:var(--el-fill-color)}.search-footer-total[data-v-8dce46e8]{margin:0 0 0 auto}.search-modal__private .svg-icon{font-size:18px}.search-modal__private .el-dialog__header{display:none}.search-modal__private .el-dialog__footer{border-top:1px solid var(--el-border-color);padding-top:var(--el-dialog-padding-primary)}.svg-icon[data-v-dc5accb4]{font-size:20px}.svg-icon[data-v-dc5accb4]:focus{outline:none}.navigation-bar[data-v-1ee6dd91]{height:var(--v3-navigationbar-height);overflow:hidden;color:var(--v3-navigationbar-text-color);display:flex;justify-content:space-between}.navigation-bar .hamburger[data-v-1ee6dd91]{display:flex;align-items:center;height:100%;padding:0 15px;cursor:pointer}.navigation-bar .breadcrumb[data-v-1ee6dd91]{flex:1}@media screen and (max-width: 576px){.navigation-bar .breadcrumb[data-v-1ee6dd91]{display:none}}.navigation-bar .sidebar[data-v-1ee6dd91]{flex:1;min-width:0px}.navigation-bar .sidebar[data-v-1ee6dd91] .el-menu{background-color:transparent}.navigation-bar .sidebar[data-v-1ee6dd91] .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-color-primary)!important}.navigation-bar .right-menu[data-v-1ee6dd91]{margin-right:10px;height:100%;display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item[data-v-1ee6dd91]{padding:0 10px;cursor:pointer}.navigation-bar .right-menu .right-menu-item .right-menu-avatar[data-v-1ee6dd91]{display:flex;align-items:center}.navigation-bar .right-menu .right-menu-item .right-menu-avatar .el-avatar[data-v-1ee6dd91]{margin-right:10px}.navigation-bar .right-menu .right-menu-item .right-menu-avatar span[data-v-1ee6dd91]{font-size:16px}.select-layout-mode[data-v-b859d856]{display:flex;justify-content:space-between}.layout-mode[data-v-b859d856]{width:60px;flex-grow:0;overflow:hidden;cursor:pointer;border-radius:6px;border:2px solid transparent}.layout-mode[data-v-b859d856]:hover,.active[data-v-b859d856]{border:2px solid var(--el-color-primary)}.el-header[data-v-b859d856]{height:12px}.el-aside[data-v-b859d856]{width:16px}.left .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.top .el-header[data-v-b859d856]{background-color:var(--el-color-primary)}.top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.left-top .el-header[data-v-b859d856]{background-color:var(--el-fill-color-darker)}.left-top .el-aside[data-v-b859d856]{background-color:var(--el-color-primary)}.left-top .el-main[data-v-b859d856]{background-color:var(--el-fill-color-lighter)}.setting-container .setting-item .setting-name[data-v-0520d80d]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.setting-container[data-v-0520d80d]{padding:20px}.setting-container .setting-item[data-v-0520d80d]{font-size:14px;color:var(--el-text-color-regular);padding:5px 0;display:flex;justify-content:space-between;align-items:center}.setting-container .el-button[data-v-0520d80d]{margin-top:40px;width:100%}.scroll-container[data-v-5784e87c]{height:100%;-webkit-user-select:none;user-select:none;display:flex;justify-content:space-between}.scroll-container .arrow[data-v-5784e87c]{width:40px;height:100%;font-size:18px;cursor:pointer}.scroll-container .arrow.left[data-v-5784e87c]{box-shadow:5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .arrow.right[data-v-5784e87c]{box-shadow:-5px 0 5px -6px var(--el-border-color-darker)}.scroll-container .el-scrollbar[data-v-5784e87c]{flex:1;white-space:nowrap}.scroll-container .el-scrollbar .scrollbar-content[data-v-5784e87c]{display:inline-block}.scroll-container .screenfull[data-v-5784e87c]{width:40px;display:flex;justify-content:center;align-items:center;cursor:pointer}.tags-view-container[data-v-01b5745a]{height:var(--v3-tagsview-height);width:100%;color:var(--v3-tagsview-text-color);overflow:hidden}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-01b5745a]{display:inline-block;position:relative;cursor:pointer;height:26px;line-height:26px;border:1px solid var(--v3-tagsview-tag-border-color);border-radius:var(--v3-tagsview-tag-border-radius);background-color:var(--v3-tagsview-tag-bg-color);padding:0 8px;font-size:12px;margin-left:5px;margin-top:4px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-01b5745a]:first-of-type{margin-left:5px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-01b5745a]:last-of-type{margin-right:5px}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-01b5745a]{background-color:var(--v3-tagsview-tag-active-bg-color);color:var(--v3-tagsview-tag-active-text-color);border-color:var(--v3-tagsview-tag-active-border-color)}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-01b5745a]{margin:0 2px;vertical-align:middle;border-radius:50%}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-01b5745a]:hover{background-color:var(--v3-tagsview-tag-icon-hover-bg-color);color:var(--v3-tagsview-tag-icon-hover-color)}.tags-view-container .contextmenu[data-v-01b5745a]{margin:0;z-index:3000;position:fixed;list-style-type:none;padding:5px 0;border-radius:4px;font-size:12px;color:var(--v3-tagsview-contextmenu-text-color);background-color:var(--v3-tagsview-contextmenu-bg-color);box-shadow:var(--v3-tagsview-contextmenu-box-shadow)}.tags-view-container .contextmenu li[data-v-01b5745a]{margin:0;padding:7px 16px;cursor:pointer}.tags-view-container .contextmenu li[data-v-01b5745a]:hover{color:var(--v3-tagsview-contextmenu-hover-text-color);background-color:var(--v3-tagsview-contextmenu-hover-bg-color)}.handle-button[data-v-272ec5c4]{width:48px;height:48px;background-color:var(--v3-rightpanel-button-bg-color);position:fixed;top:var(--14e85e11);right:0;border-radius:6px 0 0 6px;z-index:2000;cursor:pointer;pointer-events:auto;color:#fff;display:flex;align-items:center;justify-content:center}.app-wrapper[data-v-79281f6e]:after{content:"";display:table;clear:both}.app-wrapper[data-v-79281f6e]{position:relative;width:100%}.drawer-bg[data-v-79281f6e]{background-color:#0000004d;width:100%;top:0;height:100%;position:absolute;z-index:999}.sidebar-container[data-v-79281f6e]{background-color:var(--v3-sidebar-menu-bg-color);transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;top:0;bottom:0;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right)}.main-container[data-v-79281f6e]{min-height:100%;transition:margin-left .35s;margin-left:var(--v3-sidebar-width);position:relative}.fixed-header[data-v-79281f6e]{position:fixed!important;top:0;right:0;z-index:9;width:calc(100% - var(--v3-sidebar-width));transition:width .35s}.layout-header[data-v-79281f6e]{position:relative;z-index:9;background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.app-main[data-v-79281f6e]{min-height:calc(100vh - var(--v3-navigationbar-height));position:relative;overflow:hidden}.fixed-header+.app-main[data-v-79281f6e]{padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-79281f6e]{min-height:calc(100vh - var(--v3-header-height))}.hasTagsView .fixed-header+.app-main[data-v-79281f6e]{padding-top:var(--v3-header-height)}.hideSidebar .sidebar-container[data-v-79281f6e]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .main-container[data-v-79281f6e]{margin-left:var(--v3-sidebar-hide-width)}.hideSidebar .fixed-header[data-v-79281f6e]{width:calc(100% - var(--v3-sidebar-hide-width))}.mobile .sidebar-container[data-v-79281f6e]{transition:transform .35s;width:var(--v3-sidebar-width)!important}.mobile .main-container[data-v-79281f6e]{margin-left:0}.mobile .fixed-header[data-v-79281f6e]{width:100%}.mobile.openSidebar[data-v-79281f6e]{position:fixed;top:0}.mobile.hideSidebar .sidebar-container[data-v-79281f6e]{pointer-events:none;transition-duration:.3s;transform:translate3d(calc(0px - var(--v3-sidebar-width)),0,0)}.withoutAnimation .sidebar-container[data-v-79281f6e],.withoutAnimation .main-container[data-v-79281f6e]{transition:none}.app-wrapper[data-v-da4d3997]:after{content:"";display:table;clear:both}.app-wrapper[data-v-da4d3997]{width:100%}.fixed-header[data-v-da4d3997]{position:fixed;top:0;z-index:1002;width:100%}.fixed-header .logo[data-v-da4d3997]{width:var(--v3-sidebar-width)}.fixed-header .content[data-v-da4d3997]{display:flex}.fixed-header .content .navigation-bar[data-v-da4d3997]{flex:1}.layout-header[data-v-da4d3997]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-da4d3997]{min-height:100%}.app-main[data-v-da4d3997]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);height:100vh;overflow:auto}.hasTagsView .app-main[data-v-da4d3997]{padding-top:var(--v3-header-height)}.app-wrapper[data-v-a513453e]:after{content:"";display:table;clear:both}.app-wrapper[data-v-a513453e]{width:100%}.fixed-header[data-v-a513453e]{position:fixed;top:0;z-index:1002;width:100%;display:flex}.fixed-header .logo[data-v-a513453e]{flex:none;width:var(--v3-sidebar-width)}.fixed-header .content[data-v-a513453e]{flex:1;overflow:hidden}.layout-header[data-v-a513453e]{background-color:var(--v3-header-bg-color);box-shadow:var(--v3-header-box-shadow);border-bottom:var(--v3-header-border-bottom)}.main-container[data-v-a513453e]{min-height:100%}.sidebar-container[data-v-a513453e]{transition:width .35s;width:var(--v3-sidebar-width)!important;height:100%;position:fixed;left:0;z-index:1001;overflow:hidden;border-right:var(--v3-sidebar-border-right);padding-top:var(--v3-navigationbar-height)}.app-main[data-v-a513453e]{transition:padding-left .35s;padding-top:var(--v3-navigationbar-height);padding-left:var(--v3-sidebar-width);height:100vh;overflow:auto}.hideSidebar .sidebar-container[data-v-a513453e]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .app-main[data-v-a513453e]{padding-left:var(--v3-sidebar-hide-width)}.hasTagsView .sidebar-container[data-v-a513453e],.hasTagsView .app-main[data-v-a513453e]{padding-top:var(--v3-header-height)} diff --git a/static/index.vue_vue_type_script_setup_true_lang-CGuepwMI.js b/static/index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js similarity index 94% rename from static/index.vue_vue_type_script_setup_true_lang-CGuepwMI.js rename to static/index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js index aa3e460e..bdf9314e 100644 --- a/static/index.vue_vue_type_script_setup_true_lang-CGuepwMI.js +++ b/static/index.vue_vue_type_script_setup_true_lang-b2LmzuSn.js @@ -1 +1 @@ -import{h as g}from"./index-lhjAkg-7.js";import{A as v}from"./element-C5mYgMeM.js";import{p as T,ai as o,q as c,M as p,O as e,v as _,U as r,u as i,t as C,F as B,aa as M,T as V}from"./vue-BWN0lbwY.js";const F=T({__name:"index",setup(b){const{themeList:u,activeThemeName:h,setTheme:f}=g(),w=({clientX:n,clientY:a},d)=>{const m=Math.hypot(Math.max(n,window.innerWidth-n),Math.max(a,window.innerHeight-a)),t=document.documentElement.style;t.setProperty("--v3-theme-x",n+"px"),t.setProperty("--v3-theme-y",a+"px"),t.setProperty("--v3-theme-r",m+"px");const s=()=>{f(d)};document.startViewTransition?document.startViewTransition(s):s()};return(n,a)=>{const d=o("el-icon"),m=o("el-tooltip"),t=o("el-dropdown-item"),s=o("el-dropdown-menu"),x=o("el-dropdown");return c(),p(x,{trigger:"click"},{dropdown:e(()=>[r(s,null,{default:e(()=>[(c(!0),C(B,null,M(i(u),(l,k)=>(c(),p(t,{key:k,disabled:i(h)===l.name,onClick:y=>{w(y,l.name)}},{default:e(()=>[_("span",null,V(l.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[_("div",null,[r(m,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[r(d,{size:20},{default:e(()=>[r(i(v))]),_:1})]),_:1})])]),_:1})}}});export{F as _}; +import{h as g}from"./index-B_OLftB1.js";import{A as v}from"./element-C5mYgMeM.js";import{p as T,ai as o,q as c,M as p,O as e,v as _,U as r,u as i,t as C,F as B,aa as M,T as V}from"./vue-BWN0lbwY.js";const F=T({__name:"index",setup(b){const{themeList:u,activeThemeName:h,setTheme:f}=g(),w=({clientX:n,clientY:a},d)=>{const m=Math.hypot(Math.max(n,window.innerWidth-n),Math.max(a,window.innerHeight-a)),t=document.documentElement.style;t.setProperty("--v3-theme-x",n+"px"),t.setProperty("--v3-theme-y",a+"px"),t.setProperty("--v3-theme-r",m+"px");const s=()=>{f(d)};document.startViewTransition?document.startViewTransition(s):s()};return(n,a)=>{const d=o("el-icon"),m=o("el-tooltip"),t=o("el-dropdown-item"),s=o("el-dropdown-menu"),x=o("el-dropdown");return c(),p(x,{trigger:"click"},{dropdown:e(()=>[r(s,null,{default:e(()=>[(c(!0),C(B,null,M(i(u),(l,k)=>(c(),p(t,{key:k,disabled:i(h)===l.name,onClick:y=>{w(y,l.name)}},{default:e(()=>[_("span",null,V(l.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[_("div",null,[r(m,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[r(d,{size:20},{default:e(()=>[r(i(v))]),_:1})]),_:1})])]),_:1})}}});export{F as _}; diff --git a/static/page-BW2SS80a.js b/static/page-C9G8YCb_.js similarity index 77% rename from static/page-BW2SS80a.js rename to static/page-C9G8YCb_.js index 1b636866..3d50e1d4 100644 --- a/static/page-BW2SS80a.js +++ b/static/page-C9G8YCb_.js @@ -1 +1 @@ -import{S as a}from"./SwitchRoles-B_14D8wJ.js";import{p as s,q as n,t as r,U as t,O as p,S as _,ai as c}from"./vue-BWN0lbwY.js";import{_ as i}from"./index-lhjAkg-7.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const m={class:"app-container"},l=s({__name:"page",setup(d){return(f,e)=>{const o=c("el-tag");return n(),r("div",m,[t(a),t(o,{type:"warning",size:"large"},{default:p(()=>e[0]||(e[0]=[_("当前页面只有 admin 角色可见,切换角色后将不能进入该页面")])),_:1})])}}}),C=i(l,[["__scopeId","data-v-70c1e438"]]);export{C as default}; +import{S as a}from"./SwitchRoles-Bu5yhVPP.js";import{p as s,q as n,t as r,U as t,O as p,S as _,ai as c}from"./vue-BWN0lbwY.js";import{_ as i}from"./index-B_OLftB1.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const m={class:"app-container"},l=s({__name:"page",setup(d){return(f,e)=>{const o=c("el-tag");return n(),r("div",m,[t(a),t(o,{type:"warning",size:"large"},{default:p(()=>e[0]||(e[0]=[_("当前页面只有 admin 角色可见,切换角色后将不能进入该页面")])),_:1})])}}}),C=i(l,[["__scopeId","data-v-70c1e438"]]);export{C as default}; diff --git a/static/use-watermark-CnmUtAlx.js b/static/use-watermark-BH-K4jq-.js similarity index 96% rename from static/use-watermark-CnmUtAlx.js rename to static/use-watermark-BH-K4jq-.js index e2c57761..3d1a3c28 100644 --- a/static/use-watermark-CnmUtAlx.js +++ b/static/use-watermark-BH-K4jq-.js @@ -1 +1 @@ -import{u as m}from"./useWatermark-CFXy0vbL.js";import{p as v,r as y,ai as i,q as _,t as W,v as d,U as t,O as o,u as l,S as n}from"./vue-BWN0lbwY.js";import{_ as b}from"./index-lhjAkg-7.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const g={class:"app-container"},x=v({__name:"use-watermark",setup($){const s=y(null),{setWatermark:f,clearWatermark:k}=m(s),{setWatermark:p,clearWatermark:C}=m();return(w,e)=>{const r=i("el-button"),u=i("el-button-group");return _(),W("div",g,[e[10]||(e[10]=d("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),d("div",{ref_key:"localRef",ref:s,class:"local"},null,512),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[0]||(e[0]=a=>l(f)("局部水印",{color:"#409eff"}))},{default:o(()=>e[4]||(e[4]=[n("创建局部水印")])),_:1}),t(r,{type:"warning",onClick:e[1]||(e[1]=a=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[5]||(e[5]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(k)},{default:o(()=>e[6]||(e[6]=[n("清除局部水印")])),_:1},8,["onClick"])]),_:1}),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[2]||(e[2]=a=>l(p)("全局水印",{color:"#409eff"}))},{default:o(()=>e[7]||(e[7]=[n("创建全局水印")])),_:1}),t(r,{type:"warning",onClick:e[3]||(e[3]=a=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[8]||(e[8]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(C)},{default:o(()=>e[9]||(e[9]=[n("清除全局水印")])),_:1},8,["onClick"])]),_:1})])}}}),c=b(x,[["__scopeId","data-v-dbeea05d"]]);export{c as default}; +import{u as m}from"./useWatermark-CFXy0vbL.js";import{p as v,r as y,ai as i,q as _,t as W,v as d,U as t,O as o,u as l,S as n}from"./vue-BWN0lbwY.js";import{_ as b}from"./index-B_OLftB1.js";import"./element-C5mYgMeM.js";import"./vxe-CtPXIgsa.js";const g={class:"app-container"},x=v({__name:"use-watermark",setup($){const s=y(null),{setWatermark:f,clearWatermark:k}=m(s),{setWatermark:p,clearWatermark:C}=m();return(w,e)=>{const r=i("el-button"),u=i("el-button-group");return _(),W("div",g,[e[10]||(e[10]=d("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),d("div",{ref_key:"localRef",ref:s,class:"local"},null,512),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[0]||(e[0]=a=>l(f)("局部水印",{color:"#409eff"}))},{default:o(()=>e[4]||(e[4]=[n("创建局部水印")])),_:1}),t(r,{type:"warning",onClick:e[1]||(e[1]=a=>l(f)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[5]||(e[5]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(k)},{default:o(()=>e[6]||(e[6]=[n("清除局部水印")])),_:1},8,["onClick"])]),_:1}),t(u,null,{default:o(()=>[t(r,{type:"primary",onClick:e[2]||(e[2]=a=>l(p)("全局水印",{color:"#409eff"}))},{default:o(()=>e[7]||(e[7]=[n("创建全局水印")])),_:1}),t(r,{type:"warning",onClick:e[3]||(e[3]=a=>l(p)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:o(()=>e[8]||(e[8]=[n(" 关闭防御功能 ")])),_:1}),t(r,{type:"danger",onClick:l(C)},{default:o(()=>e[9]||(e[9]=[n("清除全局水印")])),_:1},8,["onClick"])]),_:1})])}}}),c=b(x,[["__scopeId","data-v-dbeea05d"]]);export{c as default};