diff --git a/index.html b/index.html index 85f5d937..0f9865ac 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ V3 Admin Vite - + diff --git a/static/403-DGUYVBYK.js b/static/403-BPT2cHtt.js similarity index 99% rename from static/403-DGUYVBYK.js rename to static/403-BPT2cHtt.js index f7a22f4c..5e764cc0 100644 --- a/static/403-DGUYVBYK.js +++ b/static/403-BPT2cHtt.js @@ -1 +1 @@ -import{E as r}from"./ErrorPageLayout-LRKG6qam.js";import{p as t,q as s,aM as l,m as i,M as h,O as n,U as c,u as p}from"./vue-DFPEx4lP.js";import"./index-DspqxaJg.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},k=l('',50),a=[k];function v(e,o){return t(),s("svg",d,[...a])}const f={render:v},j=i({__name:"403",setup(e){return(o,u)=>(t(),h(r,null,{default:n(()=>[c(p(f))]),_:1}))}});export{j as default}; +import{E as r}from"./ErrorPageLayout-CchRe_u8.js";import{p as t,q as s,aM as l,m as i,M as h,O as n,U as c,u as p}from"./vue-DFPEx4lP.js";import"./index-CaT-hR_L.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const d={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},k=l('',50),a=[k];function v(e,o){return t(),s("svg",d,[...a])}const f={render:v},j=i({__name:"403",setup(e){return(o,u)=>(t(),h(r,null,{default:n(()=>[c(p(f))]),_:1}))}});export{j as default}; diff --git a/static/404-BgU7LMsX.js b/static/404-CmBJ_wSa.js similarity index 99% rename from static/404-BgU7LMsX.js rename to static/404-CmBJ_wSa.js index 41f6edb7..90962cf2 100644 --- a/static/404-BgU7LMsX.js +++ b/static/404-CmBJ_wSa.js @@ -1 +1 @@ -import{E as c}from"./ErrorPageLayout-LRKG6qam.js";import{p as a,q as h,aM as e,m as s,M as p,O as M,U as f,u as i}from"./vue-DFPEx4lP.js";import"./index-DspqxaJg.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},d=e('',141),r=[d];function v(l,t){return a(),h("svg",y,[...r])}const o={render:v},u=s({__name:"404",setup(l){return(t,m)=>(a(),p(c,null,{default:M(()=>[f(i(o))]),_:1}))}});export{u as default}; +import{E as c}from"./ErrorPageLayout-CchRe_u8.js";import{p as a,q as h,aM as e,m as s,M as p,O as M,U as f,u as i}from"./vue-DFPEx4lP.js";import"./index-CaT-hR_L.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const y={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},d=e('',141),r=[d];function v(l,t){return a(),h("svg",y,[...r])}const o={render:v},u=s({__name:"404",setup(l){return(t,m)=>(a(),p(c,null,{default:M(()=>[f(i(o))]),_:1}))}});export{u as default}; diff --git a/static/ErrorPageLayout-LRKG6qam.js b/static/ErrorPageLayout-CchRe_u8.js similarity index 87% rename from static/ErrorPageLayout-LRKG6qam.js rename to static/ErrorPageLayout-CchRe_u8.js index 76227f68..bd6ccbe4 100644 --- a/static/ErrorPageLayout-LRKG6qam.js +++ b/static/ErrorPageLayout-CchRe_u8.js @@ -1 +1 @@ -import{_ as n}from"./index-DspqxaJg.js";import{ah as e,p as c,q as _,t as d,H as l,U as t,O as o,S as p}from"./vue-DFPEx4lP.js";const i={},u={class:"error-page"},f={class:"error-page-svg"};function m(r,h){const a=e("el-button"),s=e("router-link");return c(),_("div",u,[d("div",f,[l(r.$slots,"default",{},void 0,!0)]),t(s,{to:"/"},{default:o(()=>[t(a,{type:"primary"},{default:o(()=>[p("回到首页")]),_:1})]),_:1})])}const k=n(i,[["render",m],["__scopeId","data-v-2fba9562"]]);export{k as E}; +import{_ as n}from"./index-CaT-hR_L.js";import{ah as e,p as c,q as _,t as d,H as l,U as t,O as o,S as p}from"./vue-DFPEx4lP.js";const i={},u={class:"error-page"},f={class:"error-page-svg"};function m(r,h){const a=e("el-button"),s=e("router-link");return c(),_("div",u,[d("div",f,[l(r.$slots,"default",{},void 0,!0)]),t(s,{to:"/"},{default:o(()=>[t(a,{type:"primary"},{default:o(()=>[p("回到首页")]),_:1})]),_:1})])}const k=n(i,[["render",m],["__scopeId","data-v-2fba9562"]]);export{k as E}; diff --git a/static/SwitchRoles-fruJ6acc.js b/static/SwitchRoles-JGfeZ0kU.js similarity index 91% rename from static/SwitchRoles-fruJ6acc.js rename to static/SwitchRoles-JGfeZ0kU.js index ebe1f769..0400f6f3 100644 --- a/static/SwitchRoles-fruJ6acc.js +++ b/static/SwitchRoles-JGfeZ0kU.js @@ -1 +1 @@ -import{e as p,_}from"./index-DspqxaJg.js";import{m as u,r as m,d as h,ah as c,p as f,q as v,t,T as S,u as w,U as s,O as b,aI as I,aJ as V}from"./vue-DFPEx4lP.js";const g=e=>(I("data-v-693bfeca"),e=e(),V(),e),x={class:"switch-roles"},R=g(()=>t("span",null,"切换用户(模拟重新登录):",-1)),B=u({__name:"SwitchRoles",setup(e){const o=p(),a=m(o.roles[0]);return h(a,l=>{o.changeRoles(l)}),(l,n)=>{const r=c("el-radio-button"),d=c("el-radio-group");return f(),v("div",null,[t("div",null,"你的角色:"+S(w(o).roles),1),t("div",x,[R,s(d,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i)},{default:b(()=>[s(r,{label:"editor",value:"editor"}),s(r,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),k=_(B,[["__scopeId","data-v-693bfeca"]]);export{k as S}; +import{e as p,_}from"./index-CaT-hR_L.js";import{m as u,r as m,d as h,ah as c,p as f,q as v,t,T as S,u as w,U as s,O as b,aI as I,aJ as V}from"./vue-DFPEx4lP.js";const g=e=>(I("data-v-693bfeca"),e=e(),V(),e),x={class:"switch-roles"},R=g(()=>t("span",null,"切换用户(模拟重新登录):",-1)),B=u({__name:"SwitchRoles",setup(e){const o=p(),a=m(o.roles[0]);return h(a,l=>{o.changeRoles(l)}),(l,n)=>{const r=c("el-radio-button"),d=c("el-radio-group");return f(),v("div",null,[t("div",null,"你的角色:"+S(w(o).roles),1),t("div",x,[R,s(d,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i)},{default:b(()=>[s(r,{label:"editor",value:"editor"}),s(r,{label:"admin",value:"admin"})]),_:1},8,["modelValue"])])])}}}),k=_(B,[["__scopeId","data-v-693bfeca"]]);export{k as S}; diff --git a/static/directive-DL2QNrGS.js b/static/directive-40zrojuP.js similarity index 94% rename from static/directive-DL2QNrGS.js rename to static/directive-40zrojuP.js index 9ef6a602..e6b2af27 100644 --- a/static/directive-DL2QNrGS.js +++ b/static/directive-40zrojuP.js @@ -1 +1 @@ -import{j as k,_ as g}from"./index-DspqxaJg.js";import{S as b}from"./SwitchRoles-fruJ6acc.js";import{m as y,ah as l,ap as P,p as s,q as x,U as a,t as r,P as m,M as o,O as t,S as e,u as _,R as p}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const u=n=>{if(Array.isArray(n)&&n.length>0){const{roles:f}=k();return f.some(v=>n.includes(v))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},w={class:"app-container"},z={class:"margin-top-30"},B={class:"margin-top-15"},C={class:"margin-top-30"},N=y({__name:"directive",setup(n){return(f,v)=>{const i=l("el-tag"),c=l("el-tab-pane"),h=l("el-tabs"),d=P("permission");return s(),x("div",w,[a(b),r("div",z,[r("div",null,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)]),_:1})),[[d,["admin"]]])]),r("div",null,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)]),_:1})),[[d,["editor"]]])]),r("div",B,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)]),_:1})),[[d,["admin","editor"]]])])]),r("div",C,[a(i,{type:"warning",size:"large"},{default:t(()=>[e(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")]),_:1}),a(h,{type:"border-card",class:"margin-top-15"},{default:t(()=>[_(u)(["admin"])?(s(),o(c,{key:0,label:"admin"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin'])"`)]),_:1}),e(" 所以只有 admin 可以看见这句话 ")]),_:1})):p("",!0),_(u)(["editor"])?(s(),o(c,{key:1,label:"editor"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['editor'])"`)]),_:1}),e(" 所以只有 editor 可以看见这句话 ")]),_:1})):p("",!0),_(u)(["admin","editor"])?(s(),o(c,{key:2,label:"admin 和 editor"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin', 'editor'])"`)]),_:1}),e(" 所以 admin 和 editor 都可以看见这句话 ")]),_:1})):p("",!0)]),_:1})])])}}}),U=g(N,[["__scopeId","data-v-295dc3c3"]]);export{U as default}; +import{j as k,_ as g}from"./index-CaT-hR_L.js";import{S as b}from"./SwitchRoles-JGfeZ0kU.js";import{m as y,ah as l,ap as P,p as s,q as x,U as a,t as r,P as m,M as o,O as t,S as e,u as _,R as p}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const u=n=>{if(Array.isArray(n)&&n.length>0){const{roles:f}=k();return f.some(v=>n.includes(v))}else return console.error("need roles! Like checkPermission(['admin','editor'])"),!1},w={class:"app-container"},z={class:"margin-top-30"},B={class:"margin-top-15"},C={class:"margin-top-30"},N=y({__name:"directive",setup(n){return(f,v)=>{const i=l("el-tag"),c=l("el-tab-pane"),h=l("el-tabs"),d=P("permission");return s(),x("div",w,[a(b),r("div",z,[r("div",null,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin']" 所以只有 admin 可以看见这句话 `)]),_:1})),[[d,["admin"]]])]),r("div",null,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['editor']" 所以只有 editor 可以看见这句话 `)]),_:1})),[[d,["editor"]]])]),r("div",B,[m((s(),o(i,{type:"success",size:"large",effect:"plain"},{default:t(()=>[e(` 这里采用了 v-permission="['admin', 'editor']" 所以 admin 和 editor 都可以看见这句话 `)]),_:1})),[[d,["admin","editor"]]])])]),r("div",C,[a(i,{type:"warning",size:"large"},{default:t(()=>[e(" 例如 Element Plus 的 el-tab-pane 或 el-table-column 以及其它动态渲染 Dom 的场景不适合使用 v-permission,这种情况下你可以通过 v-if 和 checkPermission 来实现: ")]),_:1}),a(h,{type:"border-card",class:"margin-top-15"},{default:t(()=>[_(u)(["admin"])?(s(),o(c,{key:0,label:"admin"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin'])"`)]),_:1}),e(" 所以只有 admin 可以看见这句话 ")]),_:1})):p("",!0),_(u)(["editor"])?(s(),o(c,{key:1,label:"editor"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['editor'])"`)]),_:1}),e(" 所以只有 editor 可以看见这句话 ")]),_:1})):p("",!0),_(u)(["admin","editor"])?(s(),o(c,{key:2,label:"admin 和 editor"},{default:t(()=>[e(" 这里采用了 "),a(i,null,{default:t(()=>[e(`v-if="checkPermission(['admin', 'editor'])"`)]),_:1}),e(" 所以 admin 和 editor 都可以看见这句话 ")]),_:1})):p("",!0)]),_:1})])])}}}),U=g(N,[["__scopeId","data-v-295dc3c3"]]);export{U as default}; diff --git a/static/index-cA5X2Sm3.js b/static/index-BUPxwKx8.js similarity index 92% rename from static/index-cA5X2Sm3.js rename to static/index-BUPxwKx8.js index 68d24a08..67e08251 100644 --- a/static/index-cA5X2Sm3.js +++ b/static/index-BUPxwKx8.js @@ -1 +1 @@ -import{_ as e}from"./index-DspqxaJg.js";import{p as o,q as n,t}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const a={},i={"h-full":"","uno-padding-20":""},s=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),r=[s];function c(d,l){return o(),n("div",i,r)}const h=e(a,[["render",c]]);export{h as default}; +import{_ as e}from"./index-CaT-hR_L.js";import{p as o,q as n,t}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const a={},i={"h-full":"","uno-padding-20":""},s=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),r=[s];function c(d,l){return o(),n("div",i,r)}const h=e(a,[["render",c]]);export{h as default}; diff --git a/static/index-BrXOIlcI.css b/static/index-BrXOIlcI.css deleted file mode 100644 index bb29ae20..00000000 --- a/static/index-BrXOIlcI.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-ed98da72]{min-width:1em;margin-right:12px;font-size:18px}.el-icon[data-v-ed98da72]{width:1em;margin-right:12px;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-4b030497] .el-sub-menu.is-active .el-sub-menu__title:before,[data-v-4b030497] .el-menu-item.is-active:before{content:"";position:absolute;top:0;left:0;width:var(--4ded6dc0);height:100%;background-color:var(--v3-sidebar-menu-tip-line-bg-color)}.has-logo .el-scrollbar[data-v-4b030497]{height:calc(101% - var(--v3-header-height))}.el-scrollbar[data-v-4b030497]{height:101%}.el-scrollbar[data-v-4b030497] .scrollbar-wrapper{overflow-x:hidden!important}.el-scrollbar[data-v-4b030497] .scrollbar-wrapper .el-scrollbar__view{height:100%}.el-scrollbar[data-v-4b030497] .el-scrollbar__bar.is-horizontal{display:none}.el-scrollbar[data-v-4b030497] .el-scrollbar__bar.is-vertical{display:var(--61d38dec)}.el-menu[data-v-4b030497]{border:none;min-height:100%;width:100%!important}.el-menu--horizontal[data-v-4b030497]{height:var(--15ffc82c)}[data-v-4b030497] .el-menu-item,[data-v-4b030497] .el-sub-menu__title,[data-v-4b030497] .el-sub-menu .el-menu-item,[data-v-4b030497] .el-menu--horizontal .el-menu-item{height:var(--15ffc82c);line-height:var(--15ffc82c)}[data-v-4b030497] .el-menu-item.is-active,[data-v-4b030497] .el-menu-item:hover,[data-v-4b030497] .el-sub-menu__title.is-active,[data-v-4b030497] .el-sub-menu__title:hover,[data-v-4b030497] .el-sub-menu .el-menu-item.is-active,[data-v-4b030497] .el-sub-menu .el-menu-item:hover,[data-v-4b030497] .el-menu--horizontal .el-menu-item.is-active,[data-v-4b030497] .el-menu--horizontal .el-menu-item:hover{background-color:var(--05d7b6d4)}[data-v-4b030497] .el-sub-menu.is-active>.el-sub-menu__title{color:var(--632f5fe7)!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-889fe0df]{font-size:20px}.svg-icon[data-v-889fe0df]:focus{outline:none}.result-item[data-v-8cd47626]{display:flex;align-items:center;height:56px;padding:0 15px;margin-top:8px;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer}.result-item .svg-icon[data-v-8cd47626]{min-width:1em;font-size:18px}.result-item .el-icon[data-v-8cd47626]{width:1em;font-size:18px}.result-item-title[data-v-8cd47626]{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: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-107157f3]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.setting-container[data-v-107157f3]{padding:20px}.setting-container .setting-item[data-v-107157f3]{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-107157f3]{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-6f2c645d]{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-6f2c645d]{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-6f2c645d]:first-of-type{margin-left:5px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6f2c645d]:last-of-type{margin-right:5px}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-6f2c645d]{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-6f2c645d]{margin:0 2px;vertical-align:middle;border-radius:50%}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-6f2c645d]: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-6f2c645d]{margin:0;z-index:3000;position:absolute;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-6f2c645d]{margin:0;padding:7px 16px;cursor:pointer}.tags-view-container .contextmenu li[data-v-6f2c645d]:hover{color:var(--v3-tagsview-contextmenu-hover-text-color);background-color:var(--v3-tagsview-contextmenu-hover-bg-color)}.handle-button[data-v-e47107a1]{width:48px;height:48px;background-color:var(--v3-rightpanel-button-bg-color);position:fixed;top:var(--79e23a76);right:0;border-radius:6px 0 0 6px;z-index:10;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-b05e214b]:after{content:"";display:table;clear:both}.app-wrapper[data-v-b05e214b]{width:100%}.fixed-header[data-v-b05e214b]{position:fixed;top:0;z-index:1002;width:100%;display:flex}.fixed-header .logo[data-v-b05e214b]{width:var(--v3-sidebar-width)}.fixed-header .content[data-v-b05e214b]{flex:1;position:relative}.layout-header[data-v-b05e214b]{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-b05e214b]{min-height:100%}.sidebar-container[data-v-b05e214b]{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-b05e214b]{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-b05e214b]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .app-main[data-v-b05e214b]{padding-left:var(--v3-sidebar-hide-width)}.hasTagsView .sidebar-container[data-v-b05e214b],.hasTagsView .app-main[data-v-b05e214b]{padding-top:var(--v3-header-height)}.showGreyMode[data-v-f8f963f5]{filter:grayscale(1)}.showColorWeakness[data-v-f8f963f5]{filter:invert(.8)} diff --git a/static/index-BMU8KtDz.js b/static/index-C8ZWl8hF.js similarity index 97% rename from static/index-BMU8KtDz.js rename to static/index-C8ZWl8hF.js index 6b569d86..3fe27f43 100644 --- a/static/index-BMU8KtDz.js +++ b/static/index-C8ZWl8hF.js @@ -1 +1 @@ -import{g as K,c as Q,u as W,d as X}from"./index-D_d8ymeu.js";import{l as D,B as Y,r as ee,C as ae,D as le,F as te,G as ne,b as E,H as oe}from"./element-BtM_n4iJ.js";import{Z as M,m as re,r as y,d as se,ah as d,ap as ie,p as m,q as ue,P as $,M as _,O as a,U as e,u as r,S as s,t as w,T as de,R as pe}from"./vue-DFPEx4lP.js";import{_ as ce}from"./index-DspqxaJg.js";import"./vxe-Rdi24jM-.js";const me={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function fe(S={}){const i=M({...me,...S});return{paginationData:i,handleCurrentChange:b=>{i.currentPage=b},handleSizeChange:b=>{i.pageSize=b}}}const _e={class:"app-container"},ge={class:"toolbar-wrapper"},ve={class:"table-wrapper"},he={class:"pager-wrapper"},ye=re({name:"ElementPlus",__name:"index",setup(S){const i=y(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:b}=fe(),P={id:void 0,username:"",password:""},g=y(!1),V=y(null),u=y(D(P)),N={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]},q=()=>{var t;(t=V.value)==null||t.validate((n,v)=>{if(!n)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?Q:W)(u.value).then(()=>{E.success("操作成功"),g.value=!1,C()}).finally(()=>{i.value=!1})})},O=()=>{var t;(t=V.value)==null||t.clearValidate(),u.value=D(P)},j=t=>{oe.confirm(`正在删除用户:${t.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{X(t.id).then(()=>{E.success("删除成功"),C()})})},G=t=>{g.value=!0,u.value=D(t)},z=y([]),T=y(null),f=M({username:"",phone:""}),C=()=>{i.value=!0,K({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:t})=>{o.total=t.total,z.value=t.list}).catch(()=>{z.value=[]}).finally(()=>{i.value=!1})},U=()=>{o.currentPage===1?C():o.currentPage=1},H=()=>{var t;(t=T.value)==null||t.resetFields(),U()};return se([()=>o.currentPage,()=>o.pageSize],C,{immediate:!0}),(t,n)=>{const v=d("el-input"),h=d("el-form-item"),p=d("el-button"),B=d("el-form"),A=d("el-card"),F=d("el-tooltip"),c=d("el-table-column"),k=d("el-tag"),I=d("el-table"),L=d("el-pagination"),Z=d("el-dialog"),R=ie("loading");return m(),ue("div",_e,[$((m(),_(A,{shadow:"never",class:"search-wrapper"},{default:a(()=>[e(B,{ref_key:"searchFormRef",ref:T,inline:!0,model:f},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:f.username,"onUpdate:modelValue":n[0]||(n[0]=l=>f.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,{prop:"phone",label:"手机号"},{default:a(()=>[e(v,{modelValue:f.phone,"onUpdate:modelValue":n[1]||(n[1]=l=>f.phone=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,null,{default:a(()=>[e(p,{type:"primary",icon:r(Y),onClick:U},{default:a(()=>[s("查询")]),_:1},8,["icon"]),e(p,{icon:r(ee),onClick:H},{default:a(()=>[s("重置")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[R,i.value]]),$((m(),_(A,{shadow:"never"},{default:a(()=>[w("div",ge,[w("div",null,[e(p,{type:"primary",icon:r(ae),onClick:n[2]||(n[2]=l=>g.value=!0)},{default:a(()=>[s("新增用户")]),_:1},8,["icon"]),e(p,{type:"danger",icon:r(le)},{default:a(()=>[s("批量删除")]),_:1},8,["icon"])]),w("div",null,[e(F,{content:"下载"},{default:a(()=>[e(p,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),e(F,{content:"刷新当前页"},{default:a(()=>[e(p,{type:"primary",icon:r(ne),circle:"",onClick:C},null,8,["icon"])]),_:1})])]),w("div",ve,[e(I,{data:z.value},{default:a(()=>[e(c,{type:"selection",width:"50",align:"center"}),e(c,{prop:"username",label:"用户名",align:"center"}),e(c,{prop:"roles",label:"角色",align:"center"},{default:a(l=>[l.row.roles==="admin"?(m(),_(k,{key:0,type:"primary",effect:"plain"},{default:a(()=>[s("admin")]),_:1})):(m(),_(k,{key:1,type:"warning",effect:"plain"},{default:a(()=>[s(de(l.row.roles),1)]),_:2},1024))]),_:1}),e(c,{prop:"phone",label:"手机号",align:"center"}),e(c,{prop:"email",label:"邮箱",align:"center"}),e(c,{prop:"status",label:"状态",align:"center"},{default:a(l=>[l.row.status?(m(),_(k,{key:0,type:"success",effect:"plain"},{default:a(()=>[s("启用")]),_:1})):(m(),_(k,{key:1,type:"danger",effect:"plain"},{default:a(()=>[s("禁用")]),_:1}))]),_:1}),e(c,{prop:"createTime",label:"创建时间",align:"center"}),e(c,{fixed:"right",label:"操作",width:"150",align:"center"},{default:a(l=>[e(p,{type:"primary",text:"",bg:"",size:"small",onClick:J=>G(l.row)},{default:a(()=>[s("修改")]),_:2},1032,["onClick"]),e(p,{type:"danger",text:"",bg:"",size:"small",onClick:J=>j(l.row)},{default:a(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",he,[e(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(b),onCurrentChange:r(x)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[R,i.value]]),e(Z,{modelValue:g.value,"onUpdate:modelValue":n[6]||(n[6]=l=>g.value=l),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:O,width:"30%"},{footer:a(()=>[e(p,{onClick:n[5]||(n[5]=l=>g.value=!1)},{default:a(()=>[s("取消")]),_:1}),e(p,{type:"primary",onClick:q,loading:i.value},{default:a(()=>[s("确认")]),_:1},8,["loading"])]),default:a(()=>[e(B,{ref_key:"formRef",ref:V,model:u.value,rules:N,"label-width":"100px","label-position":"left"},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:u.value.username,"onUpdate:modelValue":n[3]||(n[3]=l=>u.value.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(m(),_(h,{key:0,prop:"password",label:"密码"},{default:a(()=>[e(v,{modelValue:u.value.password,"onUpdate:modelValue":n[4]||(n[4]=l=>u.value.password=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):pe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ze=ce(ye,[["__scopeId","data-v-06999943"]]);export{ze as default}; +import{g as K,c as Q,u as W,d as X}from"./index-TrxhdDmY.js";import{l as D,B as Y,r as ee,C as ae,D as le,F as te,G as ne,b as E,H as oe}from"./element-BtM_n4iJ.js";import{Z as M,m as re,r as y,d as se,ah as d,ap as ie,p as m,q as ue,P as $,M as _,O as a,U as e,u as r,S as s,t as w,T as de,R as pe}from"./vue-DFPEx4lP.js";import{_ as ce}from"./index-CaT-hR_L.js";import"./vxe-Rdi24jM-.js";const me={total:0,currentPage:1,pageSizes:[10,20,50],pageSize:10,layout:"total, sizes, prev, pager, next, jumper"};function fe(S={}){const i=M({...me,...S});return{paginationData:i,handleCurrentChange:b=>{i.currentPage=b},handleSizeChange:b=>{i.pageSize=b}}}const _e={class:"app-container"},ge={class:"toolbar-wrapper"},ve={class:"table-wrapper"},he={class:"pager-wrapper"},ye=re({name:"ElementPlus",__name:"index",setup(S){const i=y(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:b}=fe(),P={id:void 0,username:"",password:""},g=y(!1),V=y(null),u=y(D(P)),N={username:[{required:!0,trigger:"blur",message:"请输入用户名"}],password:[{required:!0,trigger:"blur",message:"请输入密码"}]},q=()=>{var t;(t=V.value)==null||t.validate((n,v)=>{if(!n)return console.error("表单校验不通过",v);i.value=!0,(u.value.id===void 0?Q:W)(u.value).then(()=>{E.success("操作成功"),g.value=!1,C()}).finally(()=>{i.value=!1})})},O=()=>{var t;(t=V.value)==null||t.clearValidate(),u.value=D(P)},j=t=>{oe.confirm(`正在删除用户:${t.username},确认删除?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{X(t.id).then(()=>{E.success("删除成功"),C()})})},G=t=>{g.value=!0,u.value=D(t)},z=y([]),T=y(null),f=M({username:"",phone:""}),C=()=>{i.value=!0,K({currentPage:o.currentPage,size:o.pageSize,username:f.username||void 0,phone:f.phone||void 0}).then(({data:t})=>{o.total=t.total,z.value=t.list}).catch(()=>{z.value=[]}).finally(()=>{i.value=!1})},U=()=>{o.currentPage===1?C():o.currentPage=1},H=()=>{var t;(t=T.value)==null||t.resetFields(),U()};return se([()=>o.currentPage,()=>o.pageSize],C,{immediate:!0}),(t,n)=>{const v=d("el-input"),h=d("el-form-item"),p=d("el-button"),B=d("el-form"),A=d("el-card"),F=d("el-tooltip"),c=d("el-table-column"),k=d("el-tag"),I=d("el-table"),L=d("el-pagination"),Z=d("el-dialog"),R=ie("loading");return m(),ue("div",_e,[$((m(),_(A,{shadow:"never",class:"search-wrapper"},{default:a(()=>[e(B,{ref_key:"searchFormRef",ref:T,inline:!0,model:f},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:f.username,"onUpdate:modelValue":n[0]||(n[0]=l=>f.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,{prop:"phone",label:"手机号"},{default:a(()=>[e(v,{modelValue:f.phone,"onUpdate:modelValue":n[1]||(n[1]=l=>f.phone=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),e(h,null,{default:a(()=>[e(p,{type:"primary",icon:r(Y),onClick:U},{default:a(()=>[s("查询")]),_:1},8,["icon"]),e(p,{icon:r(ee),onClick:H},{default:a(()=>[s("重置")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"])]),_:1})),[[R,i.value]]),$((m(),_(A,{shadow:"never"},{default:a(()=>[w("div",ge,[w("div",null,[e(p,{type:"primary",icon:r(ae),onClick:n[2]||(n[2]=l=>g.value=!0)},{default:a(()=>[s("新增用户")]),_:1},8,["icon"]),e(p,{type:"danger",icon:r(le)},{default:a(()=>[s("批量删除")]),_:1},8,["icon"])]),w("div",null,[e(F,{content:"下载"},{default:a(()=>[e(p,{type:"primary",icon:r(te),circle:""},null,8,["icon"])]),_:1}),e(F,{content:"刷新当前页"},{default:a(()=>[e(p,{type:"primary",icon:r(ne),circle:"",onClick:C},null,8,["icon"])]),_:1})])]),w("div",ve,[e(I,{data:z.value},{default:a(()=>[e(c,{type:"selection",width:"50",align:"center"}),e(c,{prop:"username",label:"用户名",align:"center"}),e(c,{prop:"roles",label:"角色",align:"center"},{default:a(l=>[l.row.roles==="admin"?(m(),_(k,{key:0,type:"primary",effect:"plain"},{default:a(()=>[s("admin")]),_:1})):(m(),_(k,{key:1,type:"warning",effect:"plain"},{default:a(()=>[s(de(l.row.roles),1)]),_:2},1024))]),_:1}),e(c,{prop:"phone",label:"手机号",align:"center"}),e(c,{prop:"email",label:"邮箱",align:"center"}),e(c,{prop:"status",label:"状态",align:"center"},{default:a(l=>[l.row.status?(m(),_(k,{key:0,type:"success",effect:"plain"},{default:a(()=>[s("启用")]),_:1})):(m(),_(k,{key:1,type:"danger",effect:"plain"},{default:a(()=>[s("禁用")]),_:1}))]),_:1}),e(c,{prop:"createTime",label:"创建时间",align:"center"}),e(c,{fixed:"right",label:"操作",width:"150",align:"center"},{default:a(l=>[e(p,{type:"primary",text:"",bg:"",size:"small",onClick:J=>G(l.row)},{default:a(()=>[s("修改")]),_:2},1032,["onClick"]),e(p,{type:"danger",text:"",bg:"",size:"small",onClick:J=>j(l.row)},{default:a(()=>[s("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),w("div",he,[e(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(b),onCurrentChange:r(x)},null,8,["layout","page-sizes","total","page-size","currentPage","onSizeChange","onCurrentChange"])])]),_:1})),[[R,i.value]]),e(Z,{modelValue:g.value,"onUpdate:modelValue":n[6]||(n[6]=l=>g.value=l),title:u.value.id===void 0?"新增用户":"修改用户",onClosed:O,width:"30%"},{footer:a(()=>[e(p,{onClick:n[5]||(n[5]=l=>g.value=!1)},{default:a(()=>[s("取消")]),_:1}),e(p,{type:"primary",onClick:q,loading:i.value},{default:a(()=>[s("确认")]),_:1},8,["loading"])]),default:a(()=>[e(B,{ref_key:"formRef",ref:V,model:u.value,rules:N,"label-width":"100px","label-position":"left"},{default:a(()=>[e(h,{prop:"username",label:"用户名"},{default:a(()=>[e(v,{modelValue:u.value.username,"onUpdate:modelValue":n[3]||(n[3]=l=>u.value.username=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1}),u.value.id===void 0?(m(),_(h,{key:0,prop:"password",label:"密码"},{default:a(()=>[e(v,{modelValue:u.value.password,"onUpdate:modelValue":n[4]||(n[4]=l=>u.value.password=l),placeholder:"请输入"},null,8,["modelValue"])]),_:1})):pe("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}}),ze=ce(ye,[["__scopeId","data-v-06999943"]]);export{ze as default}; diff --git a/static/index-tAgIq_XC.js b/static/index-CVidwbg8.js similarity index 97% rename from static/index-tAgIq_XC.js rename to static/index-CVidwbg8.js index 1a1fdc05..dd291281 100644 --- a/static/index-tAgIq_XC.js +++ b/static/index-CVidwbg8.js @@ -1 +1 @@ -import{g as D,d as T}from"./index-D_d8ymeu.js";import{U as s,m as P,r as y,Z as b,n as S,ah as x,p as $,q as M,O as p,K as k,S as _}from"./vue-DFPEx4lP.js";import{H as R,b as w}from"./element-BtM_n4iJ.js";import"./index-DspqxaJg.js";import"./vxe-Rdi24jM-.js";const U={default:({row:h,column:l})=>{const i=h[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},E=U,O={default:({row:h,column:l})=>{const i=h[l.field],[c,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${c} el-tag--plain`},[g])]}},q=O,F={class:"app-container"},H=P({name:"VxeTable",__name:"index",setup(h){const l=y(),i=b({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:q},{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,u=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,u=n.data.list),i.loading=!1,o({total:a,result:u})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),c=y(),g=b({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=y(),m=b({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=c.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=b({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,u,d;e?(r.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.title="新增用户");const t=(u=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:u.props;t&&(t.disabled=r.isUpdate),(d=c.value)==null||d.open(),S(()=>{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=c.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};R.confirm(t,"提示",o).then(()=>{T(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"),u=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return $(),M("div",F,[s(u,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(()=>[_("新增用户")]),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>[_("批量删除")]),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>[_("修改")]),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:c},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{H as default}; +import{g as D,d as T}from"./index-TrxhdDmY.js";import{U as s,m as P,r as y,Z as b,n as S,ah as x,p as $,q as M,O as p,K as k,S as _}from"./vue-DFPEx4lP.js";import{H as R,b as w}from"./element-BtM_n4iJ.js";import"./index-CaT-hR_L.js";import"./vxe-Rdi24jM-.js";const U={default:({row:h,column:l})=>{const i=h[l.field];return[s("span",{class:`el-tag el-tag--${i==="admin"?"primary":"warning"} el-tag--plain`},[i])]}},E=U,O={default:({row:h,column:l})=>{const i=h[l.field],[c,g]=i?["success","启用"]:["danger","禁用"];return[s("span",{class:`el-tag el-tag--${c} el-tag--plain`},[g])]}},q=O,F={class:"app-container"},H=P({name:"VxeTable",__name:"index",setup(h){const l=y(),i=b({loading:!0,autoResize:!0,pagerConfig:{align:"right"},formConfig:{items:[{field:"username",itemRender:{name:"$input",props:{placeholder:"用户名",clearable:!0}}},{field:"phone",itemRender:{name:"$input",props:{placeholder:"手机号",clearable:!0}}},{itemRender:{name:"$buttons",children:[{props:{type:"submit",content:"查询",status:"primary"}},{props:{type:"reset",content:"重置"}}]}}]},toolbarConfig:{refresh:!0,custom:!0,slots:{buttons:"toolbar-btns"}},customConfig:{checkMethod:({column:e})=>!["username"].includes(e.field)},columns:[{type:"checkbox",width:"50px"},{field:"username",title:"用户名"},{field:"roles",title:"角色",slots:E},{field:"phone",title:"手机号"},{field:"email",title:"邮箱"},{field:"status",title:"状态",slots:q},{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,u=[];const d=n=>{n!=null&&n.data&&(a=n.data.total,u=n.data.list),i.loading=!1,o({total:a,result:u})},f={username:t.username||void 0,phone:t.phone||void 0,size:e.pageSize,currentPage:e.currentPage};D(f).then(d).catch(d)}))}}}),c=y(),g=b({title:"",showClose:!0,escClosable:!0,maskClosable:!0,beforeHideMethod:()=>{var e;return(e=v.value)==null||e.clearValidate(),Promise.resolve()}}),v=y(),m=b({span:24,titleWidth:"100px",loading:!1,titleColon:!1,data:{username:"",password:""},items:[{field:"username",title:"用户名",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{field:"password",title:"密码",itemRender:{name:"$input",props:{placeholder:"请输入"}}},{align:"right",itemRender:{name:"$buttons",children:[{props:{content:"取消"},events:{click:()=>{var e;return(e=c.value)==null?void 0:e.close()}}},{props:{type:"submit",content:"确定",status:"primary"},events:{click:()=>r.onSubmitForm()}}]}}],rules:{username:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}],password:[{required:!0,validator:({itemValue:e})=>{switch(!0){case!e:return new Error("请输入");case!e.trim():return new Error("空格无效")}}}]}}),r=b({isUpdate:!0,commitQuery:()=>{var e;return(e=l.value)==null?void 0:e.commitProxy("query")},clearTable:()=>{var e;return(e=l.value)==null?void 0:e.reloadData([])},onShowModal:e=>{var o,a,u,d;e?(r.isUpdate=!0,g.title="修改用户",m.data.username=e.username):(r.isUpdate=!1,g.title="新增用户");const t=(u=(a=(o=m.items)==null?void 0:o[0])==null?void 0:a.itemRender)==null?void 0:u.props;t&&(t.disabled=r.isUpdate),(d=c.value)==null||d.open(),S(()=>{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=c.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};R.confirm(t,"提示",o).then(()=>{T(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"),u=x("vxe-grid"),d=x("vxe-form"),f=x("vxe-modal");return $(),M("div",F,[s(u,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(()=>[_("新增用户")]),_:1}),s(o,{status:"danger",icon:"vxe-icon-delete"},{default:p(()=>[_("批量删除")]),_:1})]),"row-operate":p(({row:n})=>[s(a,{link:"",type:"primary",onClick:C=>r.onShowModal(n)},{default:p(()=>[_("修改")]),_:2},1032,["onClick"]),s(a,{link:"",type:"danger",onClick:C=>r.onDelete(n)},{default:p(()=>[_("删除")]),_:2},1032,["onClick"])]),_:1},16),s(f,k({ref_key:"xModalDom",ref:c},g),{default:p(()=>[s(d,k({ref_key:"xFormDom",ref:v},m),null,16)]),_:1},16)])}}});export{H as default}; diff --git a/static/index-DspqxaJg.js b/static/index-CaT-hR_L.js similarity index 97% rename from static/index-DspqxaJg.js rename to static/index-CaT-hR_L.js index 667dd834..801df40f 100644 --- a/static/index-DspqxaJg.js +++ b/static/index-CaT-hR_L.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-J2fkDojL.js","static/vue-DFPEx4lP.js","static/useWatermark-Dw54A1c_.js","static/element-BtM_n4iJ.js","static/index.vue_vue_type_script_setup_true_lang-BDfz2ZZm.js","static/vxe-Rdi24jM-.js","static/index-BrXOIlcI.css","static/index-CyhcHW5Z.js","static/403-DGUYVBYK.js","static/ErrorPageLayout-LRKG6qam.js","static/ErrorPageLayout-zOAQY_Gs.css","static/404-BgU7LMsX.js","static/index-lhKJrzx9.js","static/index-B9zIkYV9.css","static/index-YSwtAHI_.js","static/index-tavtFK3w.css","static/index-cA5X2Sm3.js","static/index-BMU8KtDz.js","static/index-D_d8ymeu.js","static/index-ZYQCi8UJ.css","static/index-tAgIq_XC.js","static/index-CTyIftz7.js","static/index-DmS5ZuTx.css","static/index-Dh6wS1lN.js","static/index-DjFl_znr.js","static/index-UNemFYKg.js","static/index-C7o2sn1D.js","static/index-qMZacnqs.js","static/index-I1ygNe9T.js","static/use-fetch-select-Ctd8fzFq.js","static/use-fullscreen-loading-079bnvDQ.js","static/use-watermark-CPmKTvOr.js","static/use-watermark-C8yPoY9R.css","static/page-DQutWcGv.js","static/SwitchRoles-fruJ6acc.js","static/SwitchRoles-CoSs55AH.css","static/page-D_JSdlLP.css","static/directive-DL2QNrGS.js","static/directive-NEoCH_vr.css"])))=>i.map(i=>d[i]); -var Nt=Object.defineProperty;var It=(e,t,n)=>t in e?Nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>It(e,typeof t!="symbol"?t+"":t,n);import{r as B,w as tt,m as nt,M as Vt,u as Ut,ah as Fe,p as rt,O as Mt,U as jt,ay as Ht,az as zt,aA as qt,aB as te,d as ot,A as Wt,f as Jt,q as $t,t as Kt,at as Gt}from"./vue-DFPEx4lP.js";import{E as Xt,b as X,c as Yt,m as Zt,e as Qt,g as en,i as tn,f as nn}from"./element-BtM_n4iJ.js";import{V as ve,a as rn}from"./vxe-Rdi24jM-.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 T{}I(T,"TOKEN",`${j}-token-key`),I(T,"CONFIG_LAYOUT",`${j}-config-layout-key`),I(T,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),I(T,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),I(T,"VISITED_VIEWS",`${j}-visited-views-key`),I(T,"CACHED_VIEWS",`${j}-cached-views-key`);const on=()=>{const e=localStorage.getItem(T.CONFIG_LAYOUT);return e?JSON.parse(e):null},sn=e=>{localStorage.setItem(T.CONFIG_LAYOUT,JSON.stringify(e))},No=()=>{localStorage.removeItem(T.CONFIG_LAYOUT)},Io=()=>localStorage.getItem(T.SIDEBAR_STATUS),Vo=e=>{localStorage.setItem(T.SIDEBAR_STATUS,e)},an=()=>localStorage.getItem(T.ACTIVE_THEME_NAME),cn=e=>{localStorage.setItem(T.ACTIVE_THEME_NAME,e)},un=()=>{const e=localStorage.getItem(T.VISITED_VIEWS);return JSON.parse(e??"[]")},ln=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(T.VISITED_VIEWS,JSON.stringify(e))},fn=()=>{const e=localStorage.getItem(T.CACHED_VIEWS);return JSON.parse(e??"[]")},dn=e=>{localStorage.setItem(T.CACHED_VIEWS,JSON.stringify(e))},st="normal",mn=[{title:"默认",name:st},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],_e=B(an()||st),pn=e=>{_e.value=e},hn=e=>{document.documentElement.className=e},gn=()=>{tt(()=>{const e=_e.value;hn(e),cn(e)})};function En(){return{themeList:mn,activeThemeName:_e,initTheme:gn,setTheme:pn}}var yn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",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:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},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 wn=nt({__name:"App",setup(e){const{initTheme:t}=En();return t(),Xt({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const o=Fe("router-view"),s=Fe("el-config-provider");return rt(),Vt(s,{locale:Ut(yn)},{default:Mt(()=>[jt(o)]),_:1},8,["locale"])}}}),Te=Ht(),bn="modulepreload",Sn=function(e){return"/v3-admin-vite/"+e},Ne={},_=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=Sn(c),c in Ne)return;Ne[c]=!0;const m=c.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":bn,m||(l.as="script",l.crossOrigin=""),l.href=c,i&&l.setAttribute("nonce",i),document.head.appendChild(l),m)return new Promise((d,h)=>{l.addEventListener("load",d),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},vn=zt("/v3-admin-vite/"),it={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>_(()=>import("./index-J2fkDojL.js"),__vite__mapDeps([0,1,2,3,4,5,6])),at=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>_(()=>import("./index-CyhcHW5Z.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>_(()=>import("./403-DGUYVBYK.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>_(()=>import("./404-BgU7LMsX.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>_(()=>import("./index-lhKJrzx9.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>_(()=>import("./index-YSwtAHI_.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:()=>_(()=>import("./index-cA5X2Sm3.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:()=>_(()=>import("./index-BMU8KtDz.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>_(()=>import("./index-tAgIq_XC.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:()=>_(()=>import("./index-CTyIftz7.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>_(()=>import("./index-Dh6wS1lN.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>_(()=>import("./index-DjFl_znr.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:()=>_(()=>import("./index-UNemFYKg.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>_(()=>import("./index-C7o2sn1D.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>_(()=>import("./index-qMZacnqs.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>_(()=>import("./index-I1ygNe9T.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:()=>_(()=>import("./use-fetch-select-Ctd8fzFq.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>_(()=>import("./use-fullscreen-loading-079bnvDQ.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>_(()=>import("./use-watermark-CPmKTvOr.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Ie=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>_(()=>import("./page-DQutWcGv.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>_(()=>import("./directive-DL2QNrGS.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=qt({history:vn,routes:at});function _n(){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()}}var Tn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Tn||{}),ct=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(ct||{});const Uo="opened",Mo="closed",Rn={layoutMode:ct.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},An={...Rn,...on()},ut=te("settings",()=>{const e={};for(const[n,r]of Object.entries(An)){const o=B(r);e[n]=o,ot(o,()=>{const s=t();sn(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),On=te("tags-view",()=>{const{cacheTagsView:e}=ut(),t=B(e?un():[]),n=B(e?fn():[]);return tt(()=>{ln(t.value),dn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:d=>{const h=t.value.findIndex(y=>y.path===d.path);h!==-1?t.value[h].fullPath!==d.fullPath&&(t.value[h]={...d}):t.value.push({...d})},addCachedView:d=>{var h;typeof d.name=="string"&&(n.value.includes(d.name)||(h=d.meta)!=null&&h.keepAlive&&n.value.push(d.name))},delVisitedView:d=>{const h=t.value.findIndex(y=>y.path===d.path);h!==-1&&t.value.splice(h,1)},delCachedView:d=>{if(typeof d.name!="string")return;const h=n.value.indexOf(d.name);h!==-1&&n.value.splice(h,1)},delOthersVisitedViews:d=>{t.value=t.value.filter(h=>{var y;return((y=h.meta)==null?void 0:y.affix)||h.path===d.path})},delOthersCachedViews:d=>{if(typeof d.name!="string")return;const h=n.value.indexOf(d.name);h!==-1?n.value=n.value.slice(h,h+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(d=>{var h;return(h=d.meta)==null?void 0:h.affix})},delAllCachedViews:()=>{n.value=[]}}});function G(e){for(var t=1;t"u")){i=G({},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 m in i)i[m]&&(c+="; "+m,i[m]!==!0&&(c+="="+i[m].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;cRe.get(T.TOKEN),Ve=e=>{Re.set(T.TOKEN,e)},Ue=()=>{Re.remove(T.TOKEN)};function lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:xn}=Object.prototype,{getPrototypeOf:Oe}=Object,ne=(e=>t=>{const n=xn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>ne(t)===e),re=e=>t=>typeof t===e,{isArray:H}=Array,W=re("undefined");function kn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=D("ArrayBuffer");function Pn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ft(e.buffer),t}const Dn=re("string"),k=re("function"),dt=re("number"),oe=e=>e!==null&&typeof e=="object",Ln=e=>e===!0||e===!1,Y=e=>{if(ne(e)!=="object")return!1;const t=Oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Bn=D("Date"),Fn=D("File"),Nn=D("Blob"),In=D("FileList"),Vn=e=>oe(e)&&k(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=ne(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},Mn=D("URLSearchParams"),[jn,Hn,zn,qn]=["ReadableStream","Request","Response","Headers"].map(D),Wn=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]),H(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ht=e=>!W(e)&&e!==pt;function de(){const{caseless:e}=ht(this)&&this||{},t={},n=(r,o)=>{const s=e&&mt(t,o)||o;Y(t[s])&&Y(r)?t[s]=de(t[s],r):Y(r)?t[s]=de({},r):H(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&k(o)?e[s]=lt(o,n):e[s]=o},{allOwnKeys:r}),e),$n=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Gn=(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&&Oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xn=(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},Yn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!dt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oe(Uint8Array)),Qn=(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])}},er=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tr=D("HTMLFormElement"),nr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rr=D("RegExp"),gt=(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)},or=e=>{gt(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(k(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+"'")})}})},sr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return H(e)?r(e):r(String(e).split(t)),n},ir=()=>{},ar=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ae="abcdefghijklmnopqrstuvwxyz",je="0123456789",Et={DIGIT:je,ALPHA:ae,ALPHA_DIGIT:ae+ae.toUpperCase()+je},cr=(e=16,t=Et.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ur(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lr=e=>{const t=new Array(10),n=(r,o)=>{if(oe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=H(r)?[]:{};return J(r,(i,c)=>{const m=n(i,o+1);!W(m)&&(s[c]=m)}),t[o]=void 0,s}}return r};return n(e,0)},fr=D("AsyncFunction"),dr=e=>e&&(oe(e)||k(e))&&k(e.then)&&k(e.catch),a={isArray:H,isArrayBuffer:ft,isBuffer:kn,isFormData:Un,isArrayBufferView:Pn,isString:Dn,isNumber:dt,isBoolean:Ln,isObject:oe,isPlainObject:Y,isReadableStream:jn,isRequest:Hn,isResponse:zn,isHeaders:qn,isUndefined:W,isDate:Bn,isFile:Fn,isBlob:Nn,isRegExp:rr,isFunction:k,isStream:Vn,isURLSearchParams:Mn,isTypedArray:Zn,isFileList:In,forEach:J,merge:de,extend:Jn,trim:Wn,stripBOM:$n,inherits:Kn,toFlatObject:Gn,kindOf:ne,kindOfTest:D,endsWith:Xn,toArray:Yn,forEachEntry:Qn,matchAll:er,isHTMLForm:tr,hasOwnProperty:Me,hasOwnProp:Me,reduceDescriptors:gt,freezeMethods:or,toObjectSet:sr,toCamelCase:nr,noop:ir,toFiniteNumber:ar,findKey:mt,global:pt,isContextDefined:ht,ALPHABET:Et,generateString:cr,isSpecCompliantForm:ur,toJSONObject:lr,isAsyncFn:fr,isThenable:dr};function E(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)}a.inherits(E,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.response&&this.response.status?this.response.status:null}}});const yt=E.prototype,wt={};["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=>{wt[e]={value:e}});Object.defineProperties(E,wt);Object.defineProperty(yt,"isAxiosError",{value:!0});E.from=(e,t,n,r,o,s)=>{const i=Object.create(yt);return a.toFlatObject(e,i,function(m){return m!==Error.prototype},c=>c!=="isAxiosError"),E.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const mr=null;function me(e){return a.isPlainObject(e)||a.isArray(e)}function bt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function He(e,t,n){return e?e.concat(t).map(function(o,s){return o=bt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function pr(e){return a.isArray(e)&&!e.some(me)}const hr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function se(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,g){return!a.isUndefined(g[f])});const r=n.metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!m&&a.isBlob(u))throw new E("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?m&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,f,g){let w=u;if(u&&!g&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&pr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(w=a.toArray(u)))return f=bt(f),w.forEach(function(b,S){!(a.isUndefined(b)||b===null)&&t.append(i===!0?He([f],S,s):i===null?f:f+"[]",p(b))}),!1}return me(u)?!0:(t.append(He(g,f,s),p(u)),!1)}const d=[],h=Object.assign(hr,{defaultVisitor:l,convertValue:p,isVisitable:me});function y(u,f){if(!a.isUndefined(u)){if(d.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(u),a.forEach(u,function(w,v){(!(a.isUndefined(w)||w===null)&&o.call(t,w,a.isString(v)?v.trim():v,f,h))===!0&&y(w,f?f.concat(v):[v])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ce(e,t){this._pairs=[],e&&se(e,this,t)}const St=Ce.prototype;St.append=function(t,n){this._pairs.push([t,n])};St.toString=function(t){const n=t?function(r){return t.call(this,r,ze)}:ze;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vt(e,t,n){if(!t)return e;const r=n&&n.encode||gr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Ce(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class qe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:Ce,yr=typeof FormData<"u"?FormData:null,wr=typeof Blob<"u"?Blob:null,br={isBrowser:!0,classes:{URLSearchParams:Er,FormData:yr,Blob:wr},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",Sr=(e=>xe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),vr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_r=xe&&window.location.href||"http://localhost",Tr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:Sr,hasStandardBrowserWebWorkerEnv:vr,origin:_r},Symbol.toStringTag,{value:"Module"})),P={...Tr,...br};function Rr(e,t){return se(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return P.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ar(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Or(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,m?(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]=Or(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ar(r),o,n,0)}),n}return null}function Cr(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 $={transitional:_t,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(Tt(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 Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return se(c?{"files[]":t}:t,m&&new m,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Cr(t)):t}],transformResponse:[function(t){const n=this.transitional||$.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"?E.from(c,E.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:P.classes.FormData,Blob:P.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=>{$.headers[e]={}});const xr=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"]),kr=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-DpZNEbmw.js","static/vue-DFPEx4lP.js","static/useWatermark-Dw54A1c_.js","static/element-BtM_n4iJ.js","static/index.vue_vue_type_script_setup_true_lang-CNoPbjzZ.js","static/vxe-Rdi24jM-.js","static/index-DloCmXyp.css","static/index-CyhcHW5Z.js","static/403-BPT2cHtt.js","static/ErrorPageLayout-CchRe_u8.js","static/ErrorPageLayout-zOAQY_Gs.css","static/404-CmBJ_wSa.js","static/index-CiQ20sPh.js","static/index-B9zIkYV9.css","static/index-sjv9HnLC.js","static/index-tavtFK3w.css","static/index-BUPxwKx8.js","static/index-C8ZWl8hF.js","static/index-TrxhdDmY.js","static/index-ZYQCi8UJ.css","static/index-CVidwbg8.js","static/index-DOu2RncT.js","static/index-DmS5ZuTx.css","static/index-Dh6wS1lN.js","static/index-H4Unuak7.js","static/index-UNemFYKg.js","static/index-C7o2sn1D.js","static/index-qMZacnqs.js","static/index-I1ygNe9T.js","static/use-fetch-select-Ctd8fzFq.js","static/use-fullscreen-loading-079bnvDQ.js","static/use-watermark-Br8Wn2FT.js","static/use-watermark-C8yPoY9R.css","static/page-BLV4kb07.js","static/SwitchRoles-JGfeZ0kU.js","static/SwitchRoles-CoSs55AH.css","static/page-D_JSdlLP.css","static/directive-40zrojuP.js","static/directive-NEoCH_vr.css"])))=>i.map(i=>d[i]); +var Nt=Object.defineProperty;var It=(e,t,n)=>t in e?Nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var I=(e,t,n)=>It(e,typeof t!="symbol"?t+"":t,n);import{r as B,w as tt,m as nt,M as Vt,u as Ut,ah as Fe,p as rt,O as Mt,U as jt,ay as Ht,az as zt,aA as qt,aB as te,d as ot,A as Wt,f as Jt,q as $t,t as Kt,at as Gt}from"./vue-DFPEx4lP.js";import{E as Xt,b as X,c as Yt,m as Zt,e as Qt,g as en,i as tn,f as nn}from"./element-BtM_n4iJ.js";import{V as ve,a as rn}from"./vxe-Rdi24jM-.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 T{}I(T,"TOKEN",`${j}-token-key`),I(T,"CONFIG_LAYOUT",`${j}-config-layout-key`),I(T,"SIDEBAR_STATUS",`${j}-sidebar-status-key`),I(T,"ACTIVE_THEME_NAME",`${j}-active-theme-name-key`),I(T,"VISITED_VIEWS",`${j}-visited-views-key`),I(T,"CACHED_VIEWS",`${j}-cached-views-key`);const on=()=>{const e=localStorage.getItem(T.CONFIG_LAYOUT);return e?JSON.parse(e):null},sn=e=>{localStorage.setItem(T.CONFIG_LAYOUT,JSON.stringify(e))},No=()=>{localStorage.removeItem(T.CONFIG_LAYOUT)},Io=()=>localStorage.getItem(T.SIDEBAR_STATUS),Vo=e=>{localStorage.setItem(T.SIDEBAR_STATUS,e)},an=()=>localStorage.getItem(T.ACTIVE_THEME_NAME),cn=e=>{localStorage.setItem(T.ACTIVE_THEME_NAME,e)},un=()=>{const e=localStorage.getItem(T.VISITED_VIEWS);return JSON.parse(e??"[]")},ln=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(T.VISITED_VIEWS,JSON.stringify(e))},fn=()=>{const e=localStorage.getItem(T.CACHED_VIEWS);return JSON.parse(e??"[]")},dn=e=>{localStorage.setItem(T.CACHED_VIEWS,JSON.stringify(e))},st="normal",mn=[{title:"默认",name:st},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],_e=B(an()||st),pn=e=>{_e.value=e},hn=e=>{document.documentElement.className=e},gn=()=>{tt(()=>{const e=_e.value;hn(e),cn(e)})};function En(){return{themeList:mn,activeThemeName:_e,initTheme:gn,setTheme:pn}}var yn={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",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:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},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 wn=nt({__name:"App",setup(e){const{initTheme:t}=En();return t(),Xt({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const o=Fe("router-view"),s=Fe("el-config-provider");return rt(),Vt(s,{locale:Ut(yn)},{default:Mt(()=>[jt(o)]),_:1},8,["locale"])}}}),Te=Ht(),bn="modulepreload",Sn=function(e){return"/v3-admin-vite/"+e},Ne={},_=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(c=>{if(c=Sn(c),c in Ne)return;Ne[c]=!0;const m=c.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${p}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":bn,m||(l.as="script",l.crossOrigin=""),l.href=c,i&&l.setAttribute("nonce",i),document.head.appendChild(l),m)return new Promise((d,h)=>{l.addEventListener("load",d),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},vn=zt("/v3-admin-vite/"),it={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},V=()=>_(()=>import("./index-DpZNEbmw.js"),__vite__mapDeps([0,1,2,3,4,5,6])),at=[{path:"/redirect",component:V,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>_(()=>import("./index-CyhcHW5Z.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>_(()=>import("./403-BPT2cHtt.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>_(()=>import("./404-CmBJ_wSa.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>_(()=>import("./index-CiQ20sPh.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:V,redirect:"/dashboard",children:[{path:"dashboard",component:()=>_(()=>import("./index-sjv9HnLC.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:()=>_(()=>import("./index-BUPxwKx8.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:()=>_(()=>import("./index-C8ZWl8hF.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>_(()=>import("./index-CVidwbg8.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:()=>_(()=>import("./index-DOu2RncT.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>_(()=>import("./index-Dh6wS1lN.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>_(()=>import("./index-H4Unuak7.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:()=>_(()=>import("./index-UNemFYKg.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>_(()=>import("./index-C7o2sn1D.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>_(()=>import("./index-qMZacnqs.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>_(()=>import("./index-I1ygNe9T.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:()=>_(()=>import("./use-fetch-select-Ctd8fzFq.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>_(()=>import("./use-fullscreen-loading-079bnvDQ.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>_(()=>import("./use-watermark-Br8Wn2FT.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Ie=[{path:"/permission",component:V,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>_(()=>import("./page-BLV4kb07.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>_(()=>import("./directive-40zrojuP.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],N=qt({history:vn,routes:at});function _n(){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()}}var Tn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(Tn||{}),ct=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(ct||{});const Uo="opened",Mo="closed",Rn={layoutMode:ct.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},An={...Rn,...on()},ut=te("settings",()=>{const e={};for(const[n,r]of Object.entries(An)){const o=B(r);e[n]=o,ot(o,()=>{const s=t();sn(s)})}const t=()=>{const n={};for(const[r,o]of Object.entries(e))n[r]=o.value;return n};return e}),On=te("tags-view",()=>{const{cacheTagsView:e}=ut(),t=B(e?un():[]),n=B(e?fn():[]);return tt(()=>{ln(t.value),dn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:d=>{const h=t.value.findIndex(y=>y.path===d.path);h!==-1?t.value[h].fullPath!==d.fullPath&&(t.value[h]={...d}):t.value.push({...d})},addCachedView:d=>{var h;typeof d.name=="string"&&(n.value.includes(d.name)||(h=d.meta)!=null&&h.keepAlive&&n.value.push(d.name))},delVisitedView:d=>{const h=t.value.findIndex(y=>y.path===d.path);h!==-1&&t.value.splice(h,1)},delCachedView:d=>{if(typeof d.name!="string")return;const h=n.value.indexOf(d.name);h!==-1&&n.value.splice(h,1)},delOthersVisitedViews:d=>{t.value=t.value.filter(h=>{var y;return((y=h.meta)==null?void 0:y.affix)||h.path===d.path})},delOthersCachedViews:d=>{if(typeof d.name!="string")return;const h=n.value.indexOf(d.name);h!==-1?n.value=n.value.slice(h,h+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(d=>{var h;return(h=d.meta)==null?void 0:h.affix})},delAllCachedViews:()=>{n.value=[]}}});function G(e){for(var t=1;t"u")){i=G({},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 m in i)i[m]&&(c+="; "+m,i[m]!==!0&&(c+="="+i[m].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;cRe.get(T.TOKEN),Ve=e=>{Re.set(T.TOKEN,e)},Ue=()=>{Re.remove(T.TOKEN)};function lt(e,t){return function(){return e.apply(t,arguments)}}const{toString:xn}=Object.prototype,{getPrototypeOf:Oe}=Object,ne=(e=>t=>{const n=xn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),D=e=>(e=e.toLowerCase(),t=>ne(t)===e),re=e=>t=>typeof t===e,{isArray:H}=Array,W=re("undefined");function kn(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=D("ArrayBuffer");function Pn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ft(e.buffer),t}const Dn=re("string"),k=re("function"),dt=re("number"),oe=e=>e!==null&&typeof e=="object",Ln=e=>e===!0||e===!1,Y=e=>{if(ne(e)!=="object")return!1;const t=Oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Bn=D("Date"),Fn=D("File"),Nn=D("Blob"),In=D("FileList"),Vn=e=>oe(e)&&k(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=ne(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},Mn=D("URLSearchParams"),[jn,Hn,zn,qn]=["ReadableStream","Request","Response","Headers"].map(D),Wn=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]),H(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const pt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ht=e=>!W(e)&&e!==pt;function de(){const{caseless:e}=ht(this)&&this||{},t={},n=(r,o)=>{const s=e&&mt(t,o)||o;Y(t[s])&&Y(r)?t[s]=de(t[s],r):Y(r)?t[s]=de({},r):H(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&k(o)?e[s]=lt(o,n):e[s]=o},{allOwnKeys:r}),e),$n=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Gn=(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&&Oe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xn=(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},Yn=e=>{if(!e)return null;if(H(e))return e;let t=e.length;if(!dt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oe(Uint8Array)),Qn=(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])}},er=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tr=D("HTMLFormElement"),nr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Me=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rr=D("RegExp"),gt=(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)},or=e=>{gt(e,(t,n)=>{if(k(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(k(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+"'")})}})},sr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return H(e)?r(e):r(String(e).split(t)),n},ir=()=>{},ar=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ae="abcdefghijklmnopqrstuvwxyz",je="0123456789",Et={DIGIT:je,ALPHA:ae,ALPHA_DIGIT:ae+ae.toUpperCase()+je},cr=(e=16,t=Et.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ur(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lr=e=>{const t=new Array(10),n=(r,o)=>{if(oe(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=H(r)?[]:{};return J(r,(i,c)=>{const m=n(i,o+1);!W(m)&&(s[c]=m)}),t[o]=void 0,s}}return r};return n(e,0)},fr=D("AsyncFunction"),dr=e=>e&&(oe(e)||k(e))&&k(e.then)&&k(e.catch),a={isArray:H,isArrayBuffer:ft,isBuffer:kn,isFormData:Un,isArrayBufferView:Pn,isString:Dn,isNumber:dt,isBoolean:Ln,isObject:oe,isPlainObject:Y,isReadableStream:jn,isRequest:Hn,isResponse:zn,isHeaders:qn,isUndefined:W,isDate:Bn,isFile:Fn,isBlob:Nn,isRegExp:rr,isFunction:k,isStream:Vn,isURLSearchParams:Mn,isTypedArray:Zn,isFileList:In,forEach:J,merge:de,extend:Jn,trim:Wn,stripBOM:$n,inherits:Kn,toFlatObject:Gn,kindOf:ne,kindOfTest:D,endsWith:Xn,toArray:Yn,forEachEntry:Qn,matchAll:er,isHTMLForm:tr,hasOwnProperty:Me,hasOwnProp:Me,reduceDescriptors:gt,freezeMethods:or,toObjectSet:sr,toCamelCase:nr,noop:ir,toFiniteNumber:ar,findKey:mt,global:pt,isContextDefined:ht,ALPHABET:Et,generateString:cr,isSpecCompliantForm:ur,toJSONObject:lr,isAsyncFn:fr,isThenable:dr};function E(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)}a.inherits(E,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.response&&this.response.status?this.response.status:null}}});const yt=E.prototype,wt={};["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=>{wt[e]={value:e}});Object.defineProperties(E,wt);Object.defineProperty(yt,"isAxiosError",{value:!0});E.from=(e,t,n,r,o,s)=>{const i=Object.create(yt);return a.toFlatObject(e,i,function(m){return m!==Error.prototype},c=>c!=="isAxiosError"),E.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const mr=null;function me(e){return a.isPlainObject(e)||a.isArray(e)}function bt(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function He(e,t,n){return e?e.concat(t).map(function(o,s){return o=bt(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function pr(e){return a.isArray(e)&&!e.some(me)}const hr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function se(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,g){return!a.isUndefined(g[f])});const r=n.metaTokens,o=n.visitor||l,s=n.dots,i=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function p(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(!m&&a.isBlob(u))throw new E("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?m&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,f,g){let w=u;if(u&&!g&&typeof u=="object"){if(a.endsWith(f,"{}"))f=r?f:f.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&pr(u)||(a.isFileList(u)||a.endsWith(f,"[]"))&&(w=a.toArray(u)))return f=bt(f),w.forEach(function(b,S){!(a.isUndefined(b)||b===null)&&t.append(i===!0?He([f],S,s):i===null?f:f+"[]",p(b))}),!1}return me(u)?!0:(t.append(He(g,f,s),p(u)),!1)}const d=[],h=Object.assign(hr,{defaultVisitor:l,convertValue:p,isVisitable:me});function y(u,f){if(!a.isUndefined(u)){if(d.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(u),a.forEach(u,function(w,v){(!(a.isUndefined(w)||w===null)&&o.call(t,w,a.isString(v)?v.trim():v,f,h))===!0&&y(w,f?f.concat(v):[v])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ze(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ce(e,t){this._pairs=[],e&&se(e,this,t)}const St=Ce.prototype;St.append=function(t,n){this._pairs.push([t,n])};St.toString=function(t){const n=t?function(r){return t.call(this,r,ze)}:ze;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vt(e,t,n){if(!t)return e;const r=n&&n.encode||gr,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Ce(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class qe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const _t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Er=typeof URLSearchParams<"u"?URLSearchParams:Ce,yr=typeof FormData<"u"?FormData:null,wr=typeof Blob<"u"?Blob:null,br={isBrowser:!0,classes:{URLSearchParams:Er,FormData:yr,Blob:wr},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",Sr=(e=>xe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),vr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_r=xe&&window.location.href||"http://localhost",Tr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:Sr,hasStandardBrowserWebWorkerEnv:vr,origin:_r},Symbol.toStringTag,{value:"Module"})),P={...Tr,...br};function Rr(e,t){return se(e,new P.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return P.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Ar(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Or(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,m?(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]=Or(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Ar(r),o,n,0)}),n}return null}function Cr(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 $={transitional:_t,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(Tt(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 Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return se(c?{"files[]":t}:t,m&&new m,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Cr(t)):t}],transformResponse:[function(t){const n=this.transitional||$.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"?E.from(c,E.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:P.classes.FormData,Blob:P.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=>{$.headers[e]={}});const xr=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"]),kr=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]&&xr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},We=Symbol("internals");function q(e){return e&&String(e).trim().toLowerCase()}function Z(e){return e===!1||e==null?e:a.isArray(e)?e.map(Z):String(e)}function Pr(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 Dr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ce(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 Lr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Br(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})})}class O{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,m,p){const l=q(m);if(!l)throw new Error("header name must be a non-empty string");const d=a.findKey(o,l);(!d||o[d]===void 0||p===!0||p===void 0&&o[d]!==!1)&&(o[d||m]=Z(c))}const i=(c,m)=>a.forEach(c,(p,l)=>s(p,l,m));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Dr(t))i(kr(t),n);else if(a.isHeaders(t))for(const[c,m]of t.entries())s(m,c,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=q(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Pr(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=q(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ce(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=q(i),i){const c=a.findKey(r,i);c&&(!n||ce(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||ce(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]=Z(o),delete n[s];return}const c=t?Lr(s):String(s).trim();c!==s&&delete n[s],n[c]=Z(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[We]=this[We]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=q(i);r[c]||(Br(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}O.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(O.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(O);function ue(e,t){const n=this||$,r=t||n,o=O.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 Rt(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){E.call(this,e??"canceled",E.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,E,{__CANCEL__:!0});function At(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new E("Request failed with status code "+n.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Nr(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(m){const p=Date.now(),l=r[s];i||(i=p),n[o]=m,r[o]=p;let d=s,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),p-ir)return o&&(clearTimeout(o),o=null),n=c,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(c-n)))}}const Q=(e,t,n=3)=>{let r=0;const o=Nr(50,250);return Ir(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,m=i-r,p=o(m),l=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:m,rate:p||void 0,estimated:p&&c&&l?(c-i)/p:void 0,event:s,lengthComputable:c!=null};d[t?"download":"upload"]=!0,e(d)},n)},Vr=P.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(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}}(),Ur=P.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 Mr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ot(e,t){return e&&!Mr(t)?jr(e,t):t}const Je=e=>e instanceof O?{...e}:e;function M(e,t){t=t||{};const n={};function r(p,l,d){return a.isPlainObject(p)&&a.isPlainObject(l)?a.merge.call({caseless:d},p,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function o(p,l,d){if(a.isUndefined(l)){if(!a.isUndefined(p))return r(void 0,p,d)}else return r(p,l,d)}function s(p,l){if(!a.isUndefined(l))return r(void 0,l)}function i(p,l){if(a.isUndefined(l)){if(!a.isUndefined(p))return r(void 0,p)}else return r(void 0,l)}function c(p,l,d){if(d in t)return r(p,l);if(d in e)return r(void 0,p)}const m={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:(p,l)=>o(Je(p),Je(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const d=m[l]||o,h=d(e[l],t[l],l);a.isUndefined(h)&&d!==c||(n[l]=h)}),n}const Ct=e=>{const t=M({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=O.from(i),t.url=vt(Ot(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let m;if(a.isFormData(n)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((m=i.getContentType())!==!1){const[p,...l]=m?m.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...l].join("; "))}}if(P.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Vr(t.url))){const p=o&&s&&Ur.read(s);p&&i.set(o,p)}return t},Hr=typeof XMLHttpRequest<"u",zr=Hr&&function(e){return new Promise(function(n,r){const o=Ct(e);let s=o.data;const i=O.from(o.headers).normalize();let{responseType:c}=o,m;function p(){o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let l=new XMLHttpRequest;l.open(o.method.toUpperCase(),o.url,!0),l.timeout=o.timeout;function d(){if(!l)return;const y=O.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),f={data:!c||c==="text"||c==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:e,request:l};At(function(w){n(w),p()},function(w){r(w),p()},f),l=null}"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(r(new E("Request aborted",E.ECONNABORTED,o,l)),l=null)},l.onerror=function(){r(new E("Network Error",E.ERR_NETWORK,o,l)),l=null},l.ontimeout=function(){let u=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const f=o.transitional||_t;o.timeoutErrorMessage&&(u=o.timeoutErrorMessage),r(new E(u,f.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,o,l)),l=null},s===void 0&&i.setContentType(null),"setRequestHeader"in l&&a.forEach(i.toJSON(),function(u,f){l.setRequestHeader(f,u)}),a.isUndefined(o.withCredentials)||(l.withCredentials=!!o.withCredentials),c&&c!=="json"&&(l.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&l.addEventListener("progress",Q(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Q(o.onUploadProgress)),(o.cancelToken||o.signal)&&(m=y=>{l&&(r(!y||y.type?new z(null,e,l):y),l.abort(),l=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const h=Fr(o.url);if(h&&P.protocols.indexOf(h)===-1){r(new E("Unsupported protocol "+h+":",E.ERR_BAD_REQUEST,e));return}l.send(s||null)})},qr=(e,t)=>{let n=new AbortController,r;const o=function(m){if(!r){r=!0,i();const p=m instanceof Error?m:this.reason;n.abort(p instanceof E?p:new z(p instanceof Error?p.message:p))}};let s=t&&setTimeout(()=>{o(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(m=>{m&&(m.removeEventListener?m.removeEventListener("abort",o):m.unsubscribe(o))}),e=null)};e.forEach(m=>m&&m.addEventListener&&m.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=i,[c,()=>{s&&clearTimeout(s),s=null}]},Wr=function*(e,t){let n=e.byteLength;if(!t||n{const s=Jr(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(c){const{done:m,value:p}=await s.next();if(m){c.close(),r();return}let l=p.byteLength;n&&n(i+=l),c.enqueue(new Uint8Array(p))},cancel(c){return r(c),s.return()}},{highWaterMark:2})},Ke=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},ie=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xt=ie&&typeof ReadableStream=="function",pe=ie&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$r=xt&&(()=>{let e=!1;const t=new Request(P.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Ge=64*1024,he=xt&&!!(()=>{try{return a.isReadableStream(new Response("").body)}catch{}})(),ee={stream:he&&(e=>e.body)};ie&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ee[t]&&(ee[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new E(`Response type '${t}' is not supported`,E.ERR_NOT_SUPPORT,r)})})})(new Response);const Kr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(a.isArrayBufferView(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await pe(e)).byteLength},Gr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Kr(t)},Xr=ie&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:m,responseType:p,headers:l,withCredentials:d="same-origin",fetchOptions:h}=Ct(e);p=p?(p+"").toLowerCase():"text";let[y,u]=o||s||i?qr([o,s],i):[],f,g;const w=()=>{!f&&setTimeout(()=>{y&&y.unsubscribe()}),f=!0};let v;try{if(m&&$r&&n!=="get"&&n!=="head"&&(v=await Gr(l,r))!==0){let A=new Request(t,{method:"POST",body:r,duplex:"half"}),x;a.isFormData(r)&&(x=A.headers.get("content-type"))&&l.setContentType(x),A.body&&(r=$e(A.body,Ge,Ke(v,Q(m)),null,pe))}a.isString(d)||(d=d?"cors":"omit"),g=new Request(t,{...h,signal:y,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let b=await fetch(g);const S=he&&(p==="stream"||p==="response");if(he&&(c||S)){const A={};["status","statusText","headers"].forEach(L=>{A[L]=b[L]});const x=a.toFiniteNumber(b.headers.get("content-length"));b=new Response($e(b.body,Ge,c&&Ke(x,Q(c,!0)),S&&w,pe),A)}p=p||"text";let C=await ee[a.findKey(ee,p)||"text"](b,e);return!S&&w(),u&&u(),await new Promise((A,x)=>{At(A,x,{data:C,headers:O.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(b){throw w(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,e,g),{cause:b.cause||b}):E.from(b,b&&b.code,e,g)}}),ge={http:mr,xhr:zr,fetch:Xr};a.forEach(ge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Yr=e=>a.isFunction(e)||e===null||e===!1,kt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(m===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : `+s.map(Xe).join(` diff --git a/static/index-lhKJrzx9.js b/static/index-CiQ20sPh.js similarity index 96% rename from static/index-lhKJrzx9.js rename to static/index-CiQ20sPh.js index 3738b292..f80bf4af 100644 --- a/static/index-lhKJrzx9.js +++ b/static/index-CiQ20sPh.js @@ -1 +1 @@ -import{m as V,p as F,q as b,I as U,aM as M,r as u,aE as R,Z as q,ah as n,U as e,u as l,t as p,O as s,a8 as E,aI as N,aJ as O,a2 as $,S as J}from"./vue-DFPEx4lP.js";import{_ as B,f as K,e as L}from"./index-DspqxaJg.js";import{v as A,w as D,x as T,y as Z,z as j}from"./element-BtM_n4iJ.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang-BDfz2ZZm.js";import"./vxe-Rdi24jM-.js";const H="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",P=M('
',5),Q=[P],W=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(o){const c=o;return(m,h)=>(F(),b("div",{class:U(["owl",{"owl-password":c.closeEyes}])},Q,2))}}),X=B(W,[["__scopeId","data-v-957a4d98"]]);function Y(){const o=u(!1);return{isFocus:o,handleBlur:()=>{o.value=!1},handleFocus:()=>{o.value=!0}}}const ee=o=>(N("data-v-c8304cc7"),o=o(),O(),o),oe={class:"login-container"},ae={class:"login-card"},se=ee(()=>p("div",{class:"title"},[p("img",{src:H})],-1)),te={class:"content"},le=V({__name:"index",setup(o){const c=R(),{isFocus:m,handleBlur:h,handleFocus:C}=Y(),w=u(null),_=u(!1),f=u(""),a=q({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"}]},x=()=>{var r;(r=w.value)==null||r.validate((t,d)=>{t?(_.value=!0,L().login(a).then(()=>{c.push({path:"/"})}).catch(()=>{g(),a.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},g=()=>{a.code="",f.value="",K().then(r=>{f.value=r.data})};return g(),(r,t)=>{const d=n("el-input"),v=n("el-form-item"),y=n("el-icon"),I=n("el-image"),z=n("el-button"),S=n("el-form");return F(),b("div",oe,[e(G,{class:"theme-switch"}),e(X,{"close-eyes":l(m)},null,8,["close-eyes"]),p("div",ae,[se,p("div",te,[e(S,{ref_key:"loginFormRef",ref:w,model:a,rules:k,onKeyup:E(x,["enter"])},{default:s(()=>[e(v,{prop:"username"},{default:s(()=>[e(d,{modelValue:a.username,"onUpdate:modelValue":t[0]||(t[0]=i=>a.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":l(A),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(v,{prop:"password"},{default:s(()=>[e(d,{modelValue:a.password,"onUpdate:modelValue":t[1]||(t[1]=i=>a.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":l(D),size:"large","show-password":"",onBlur:l(h),onFocus:l(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(v,{prop:"code"},{default:s(()=>[e(d,{modelValue:a.code,"onUpdate:modelValue":t[2]||(t[2]=i=>a.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":l(T),maxlength:"7",size:"large"},{append:s(()=>[e(I,{src:f.value,onClick:g,draggable:"false"},{placeholder:s(()=>[e(y,null,{default:s(()=>[e(l(Z))]),_:1})]),error:s(()=>[e(y,null,{default:s(()=>[e(l(j))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(z,{loading:_.value,type:"primary",size:"large",onClick:$(x,["prevent"])},{default:s(()=>[J("登 录")]),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),ue=B(le,[["__scopeId","data-v-c8304cc7"]]);export{ue as default}; +import{m as V,p as F,q as b,I as U,aM as M,r as u,aE as R,Z as q,ah as n,U as e,u as l,t as p,O as s,a8 as E,aI as N,aJ as O,a2 as $,S as J}from"./vue-DFPEx4lP.js";import{_ as B,f as K,e as L}from"./index-CaT-hR_L.js";import{v as A,w as D,x as T,y as Z,z as j}from"./element-BtM_n4iJ.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang-CNoPbjzZ.js";import"./vxe-Rdi24jM-.js";const H="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",P=M('
',5),Q=[P],W=V({__name:"Owl",props:{closeEyes:{type:Boolean}},setup(o){const c=o;return(m,h)=>(F(),b("div",{class:U(["owl",{"owl-password":c.closeEyes}])},Q,2))}}),X=B(W,[["__scopeId","data-v-957a4d98"]]);function Y(){const o=u(!1);return{isFocus:o,handleBlur:()=>{o.value=!1},handleFocus:()=>{o.value=!0}}}const ee=o=>(N("data-v-c8304cc7"),o=o(),O(),o),oe={class:"login-container"},ae={class:"login-card"},se=ee(()=>p("div",{class:"title"},[p("img",{src:H})],-1)),te={class:"content"},le=V({__name:"index",setup(o){const c=R(),{isFocus:m,handleBlur:h,handleFocus:C}=Y(),w=u(null),_=u(!1),f=u(""),a=q({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"}]},x=()=>{var r;(r=w.value)==null||r.validate((t,d)=>{t?(_.value=!0,L().login(a).then(()=>{c.push({path:"/"})}).catch(()=>{g(),a.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},g=()=>{a.code="",f.value="",K().then(r=>{f.value=r.data})};return g(),(r,t)=>{const d=n("el-input"),v=n("el-form-item"),y=n("el-icon"),I=n("el-image"),z=n("el-button"),S=n("el-form");return F(),b("div",oe,[e(G,{class:"theme-switch"}),e(X,{"close-eyes":l(m)},null,8,["close-eyes"]),p("div",ae,[se,p("div",te,[e(S,{ref_key:"loginFormRef",ref:w,model:a,rules:k,onKeyup:E(x,["enter"])},{default:s(()=>[e(v,{prop:"username"},{default:s(()=>[e(d,{modelValue:a.username,"onUpdate:modelValue":t[0]||(t[0]=i=>a.username=i),modelModifiers:{trim:!0},placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":l(A),size:"large"},null,8,["modelValue","prefix-icon"])]),_:1}),e(v,{prop:"password"},{default:s(()=>[e(d,{modelValue:a.password,"onUpdate:modelValue":t[1]||(t[1]=i=>a.password=i),modelModifiers:{trim:!0},placeholder:"密码",type:"password",tabindex:"2","prefix-icon":l(D),size:"large","show-password":"",onBlur:l(h),onFocus:l(C)},null,8,["modelValue","prefix-icon","onBlur","onFocus"])]),_:1}),e(v,{prop:"code"},{default:s(()=>[e(d,{modelValue:a.code,"onUpdate:modelValue":t[2]||(t[2]=i=>a.code=i),modelModifiers:{trim:!0},placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":l(T),maxlength:"7",size:"large"},{append:s(()=>[e(I,{src:f.value,onClick:g,draggable:"false"},{placeholder:s(()=>[e(y,null,{default:s(()=>[e(l(Z))]),_:1})]),error:s(()=>[e(y,null,{default:s(()=>[e(l(j))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(z,{loading:_.value,type:"primary",size:"large",onClick:$(x,["prevent"])},{default:s(()=>[J("登 录")]),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),ue=B(le,[["__scopeId","data-v-c8304cc7"]]);export{ue as default}; diff --git a/static/index-CTyIftz7.js b/static/index-DOu2RncT.js similarity index 91% rename from static/index-CTyIftz7.js rename to static/index-DOu2RncT.js index f400e0fb..119a8721 100644 --- a/static/index-CTyIftz7.js +++ b/static/index-DOu2RncT.js @@ -1 +1 @@ -import{_ as s}from"./index-DspqxaJg.js";import{ah as e,p as _,q as i,t as p,S as o,U as t,O as n}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const l={},d={class:"app-container"};function m(u,f){const r=e("el-link"),a=e("router-view"),c=e("el-card");return _(),i("div",d,[p("h4",null,[o(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: "),t(r,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:n(()=>[o(" src/config/route.ts ")]),_:1})]),t(c,{header:"二级路由 - menu1"},{default:n(()=>[t(a)]),_:1})])}const k=s(l,[["render",m],["__scopeId","data-v-6b5ec9cb"]]);export{k as default}; +import{_ as s}from"./index-CaT-hR_L.js";import{ah as e,p as _,q as i,t as p,S as o,U as t,O as n}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const l={},d={class:"app-container"};function m(u,f){const r=e("el-link"),a=e("router-view"),c=e("el-card");return _(),i("div",d,[p("h4",null,[o(" 三级及其以上路由缓存功能默认关闭,需要请前往此配置文件中打开: "),t(r,{type:"primary",href:"https://github.com/un-pany/v3-admin-vite/blob/main/src/config/route.ts",target:"_blank"},{default:n(()=>[o(" src/config/route.ts ")]),_:1})]),t(c,{header:"二级路由 - menu1"},{default:n(()=>[t(a)]),_:1})])}const k=s(l,[["render",m],["__scopeId","data-v-6b5ec9cb"]]);export{k as default}; diff --git a/static/index-DloCmXyp.css b/static/index-DloCmXyp.css new file mode 100644 index 00000000..6afd4a5a --- /dev/null +++ b/static/index-DloCmXyp.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-4b030497] .el-sub-menu.is-active .el-sub-menu__title:before,[data-v-4b030497] .el-menu-item.is-active:before{content:"";position:absolute;top:0;left:0;width:var(--4ded6dc0);height:100%;background-color:var(--v3-sidebar-menu-tip-line-bg-color)}.has-logo .el-scrollbar[data-v-4b030497]{height:calc(101% - var(--v3-header-height))}.el-scrollbar[data-v-4b030497]{height:101%}.el-scrollbar[data-v-4b030497] .scrollbar-wrapper{overflow-x:hidden!important}.el-scrollbar[data-v-4b030497] .scrollbar-wrapper .el-scrollbar__view{height:100%}.el-scrollbar[data-v-4b030497] .el-scrollbar__bar.is-horizontal{display:none}.el-scrollbar[data-v-4b030497] .el-scrollbar__bar.is-vertical{display:var(--61d38dec)}.el-menu[data-v-4b030497]{border:none;min-height:100%;width:100%!important}.el-menu--horizontal[data-v-4b030497]{height:var(--15ffc82c)}[data-v-4b030497] .el-menu-item,[data-v-4b030497] .el-sub-menu__title,[data-v-4b030497] .el-sub-menu .el-menu-item,[data-v-4b030497] .el-menu--horizontal .el-menu-item{height:var(--15ffc82c);line-height:var(--15ffc82c)}[data-v-4b030497] .el-menu-item.is-active,[data-v-4b030497] .el-menu-item:hover,[data-v-4b030497] .el-sub-menu__title.is-active,[data-v-4b030497] .el-sub-menu__title:hover,[data-v-4b030497] .el-sub-menu .el-menu-item.is-active,[data-v-4b030497] .el-sub-menu .el-menu-item:hover,[data-v-4b030497] .el-menu--horizontal .el-menu-item.is-active,[data-v-4b030497] .el-menu--horizontal .el-menu-item:hover{background-color:var(--05d7b6d4)}[data-v-4b030497] .el-sub-menu.is-active>.el-sub-menu__title{color:var(--632f5fe7)!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-889fe0df]{font-size:20px}.svg-icon[data-v-889fe0df]:focus{outline:none}.result-item[data-v-8cd47626]{display:flex;align-items:center;height:56px;padding:0 15px;margin-top:8px;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer}.result-item .svg-icon[data-v-8cd47626]{min-width:1em;font-size:18px}.result-item .el-icon[data-v-8cd47626]{width:1em;font-size:18px}.result-item-title[data-v-8cd47626]{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: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-107157f3]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.setting-container[data-v-107157f3]{padding:20px}.setting-container .setting-item[data-v-107157f3]{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-107157f3]{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-6f2c645d]{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-6f2c645d]{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-6f2c645d]:first-of-type{margin-left:5px}.tags-view-container .tags-view-wrapper .tags-view-item[data-v-6f2c645d]:last-of-type{margin-right:5px}.tags-view-container .tags-view-wrapper .tags-view-item.active[data-v-6f2c645d]{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-6f2c645d]{margin:0 2px;vertical-align:middle;border-radius:50%}.tags-view-container .tags-view-wrapper .tags-view-item .el-icon[data-v-6f2c645d]: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-6f2c645d]{margin:0;z-index:3000;position:absolute;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-6f2c645d]{margin:0;padding:7px 16px;cursor:pointer}.tags-view-container .contextmenu li[data-v-6f2c645d]:hover{color:var(--v3-tagsview-contextmenu-hover-text-color);background-color:var(--v3-tagsview-contextmenu-hover-bg-color)}.handle-button[data-v-e47107a1]{width:48px;height:48px;background-color:var(--v3-rightpanel-button-bg-color);position:fixed;top:var(--79e23a76);right:0;border-radius:6px 0 0 6px;z-index:10;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-b05e214b]:after{content:"";display:table;clear:both}.app-wrapper[data-v-b05e214b]{width:100%}.fixed-header[data-v-b05e214b]{position:fixed;top:0;z-index:1002;width:100%;display:flex}.fixed-header .logo[data-v-b05e214b]{width:var(--v3-sidebar-width)}.fixed-header .content[data-v-b05e214b]{flex:1;position:relative}.layout-header[data-v-b05e214b]{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-b05e214b]{min-height:100%}.sidebar-container[data-v-b05e214b]{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-b05e214b]{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-b05e214b]{width:var(--v3-sidebar-hide-width)!important}.hideSidebar .app-main[data-v-b05e214b]{padding-left:var(--v3-sidebar-hide-width)}.hasTagsView .sidebar-container[data-v-b05e214b],.hasTagsView .app-main[data-v-b05e214b]{padding-top:var(--v3-header-height)}.showGreyMode[data-v-f8f963f5]{filter:grayscale(1)}.showColorWeakness[data-v-f8f963f5]{filter:invert(.8)} diff --git a/static/index-J2fkDojL.js b/static/index-DpZNEbmw.js similarity index 99% rename from static/index-J2fkDojL.js rename to static/index-DpZNEbmw.js index adf92620..562316d9 100644 --- a/static/index-J2fkDojL.js +++ b/static/index-DpZNEbmw.js @@ -1 +1 @@ -import{aB as dt,Z as ft,r as P,d as je,E as Ke,c as Ee,A as Ge,f as V,m as A,p as d,q as $,T as z,u as m,ah as y,t as x,U as p,O as g,W as Je,M as w,Q as pe,aC as pt,R,aD as ge,aE as be,a7 as Y,a2 as de,F as H,H as me,a9 as mt,S as K,I as O,aF as Ye,w as _e,aG as _t,aH as Ze,b as Qe,J as et,aI as Ve,aJ as Me,s as vt,a8 as ue,aK as se,n as ht,aL as gt,P as ye,V as we}from"./vue-DFPEx4lP.js";import{g as bt,S as tt,D as Q,s as We,a as yt,u as ke,b as G,L as te,_ as D,c as nt,r as wt,d as Ie,e as kt}from"./index-DspqxaJg.js";import{u as xt}from"./useWatermark-Dw54A1c_.js";import{h as St,j as Ct,g as $t,k as Tt,b as ve,l as Et,n as Vt,o as ot,u as Mt,r as It,p as Rt,q as Lt,s as At,t as Dt}from"./element-BtM_n4iJ.js";import{_ as Pt}from"./index.vue_vue_type_script_setup_true_lang-BDfz2ZZm.js";import"./vxe-Rdi24jM-.js";function Ft(n){n?We(yt):We(tt)}const ae=dt("app",()=>{const n=ft({opened:bt()!==tt,withoutAnimation:!1}),e=P(Q.Desktop);return je(()=>n.opened,a=>Ft(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}}}),Nt=992,zt=()=>{const n=ae(),{listenerRouteChange:e}=ke(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const s=t();n.toggleDevice(s?Q.Mobile:Q.Desktop),s&&n.closeSidebar(!0)}};e(()=>{n.device===Q.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Ke(()=>{window.addEventListener("resize",o)}),Ee(()=>{t()&&(n.toggleDevice(Q.Mobile),n.closeSidebar(!0))}),Ge(()=>{window.removeEventListener("resize",o)})},st=ae(),Bt=V(()=>st.device===Q.Mobile),Wt=V(()=>st.device===Q.Desktop);function re(){return{isMobile:Bt,isDesktop:Wt}}const xe=G(),Ut=V(()=>xe.layoutMode===te.Left),Ot=V(()=>xe.layoutMode===te.Top),Ht=V(()=>xe.layoutMode===te.LeftTop),qt=n=>{xe.layoutMode=n};function le(){return{isLeft:Ut,isTop:Ot,isLeftTop:Ht,setLayoutMode:qt}}const Xt={class:"layout-footer"},jt=A({__name:"index",setup(n){const e="V3 Admin Vite";return(t,o)=>(d(),$("footer",Xt,"MIT © 2021-PRESENT "+z(m(e)),1))}}),Kt=D(jt,[["__scopeId","data-v-18d14396"]]),Gt={class:"app-main"},Jt={class:"app-scrollbar"},Yt=A({__name:"AppMain",setup(n){const e=nt(),t=G();return(o,s)=>{const a=y("router-view"),r=y("el-backtop");return d(),$("section",Gt,[x("div",Jt,[p(a,null,{default:g(({Component:l,route:c})=>[p(Je,{name:"el-fade-in",mode:"out-in"},{default:g(()=>[(d(),w(pt,{include:m(e).cachedViews},[(d(),w(pe(l),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),m(t).showFooter?(d(),w(Kt,{key:0})):R("",!0)]),p(r),p(r,{target:".app-scrollbar"})])}}}),Re=D(Yt,[["__scopeId","data-v-e96aa434"]]),Zt=A({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,o=e,s=()=>{o("toggleClick")};return(a,r)=>{const l=y("el-icon");return d(),$("div",{onClick:s},[p(l,{size:20,class:"icon"},{default:g(()=>[t.isActive?(d(),w(m(St),{key:0})):(d(),w(m(Ct),{key:1}))]),_:1})])}}}),Qt=D(Zt,[["__scopeId","data-v-a21f53d4"]]);var ee={};Object.defineProperty(ee,"__esModule",{value:!0});ee.TokenData=void 0;ee.parse=Se;var en=ee.compile=rn;ee.match=un;ee.pathToRegexp=pn;const tn="/",Le=n=>n,nn=new RegExp("^\\p{XID_Continue}$","u"),ce="https://git.new/pathToRegexpError",on={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};function sn(n){const e=[...n],t=[];let o=0;for(;on;const t=e||Le,o=n.modifier==="+"||n.modifier==="*",s=n.modifier==="?"||n.modifier==="*",{prefix:a="",suffix:r="",separator:l=r+a}=n;if(e&&o){const u=(i,v)=>{if(typeof i!="string")throw new TypeError(`Expected "${n.name}/${v}" to be a string`);return t(i)},f=i=>{if(!Array.isArray(i))throw new TypeError(`Expected "${n.name}" to be an array`);return i.length===0?"":a+i.map(u).join(l)+r};return s?i=>{const v=i[n.name];return v==null?"":v.length?f(v):""}:i=>{const v=i[n.name];return f(v)}}const c=u=>{if(typeof u!="string")throw new TypeError(`Expected "${n.name}" to be a string`);return a+t(u)+r};return s?u=>{const f=u[n.name];return f==null?"":c(f)}:u=>{const f=u[n.name];return c(f)}}function cn(n,e){const{encode:t=encodeURIComponent,loose:o=!0,validate:s=!0,strict:a=!1}=e,r=at(e),l=Ae(o,n.delimiter),c=lt(n,l,[],r,a),u=n.tokens.map((f,i)=>{const v=ln(f,t);if(!s||typeof f=="string")return v;const _=new RegExp(`^${c[i]}$`,r);return h=>{const b=v(h);if(!_.test(b))throw new TypeError(`Invalid value for "${f.name}": ${JSON.stringify(b)}`);return b}});return function(i={}){let v="";for(const _ of u)v+=_(i);return v}}function un(n,e={}){const{decode:t=decodeURIComponent,loose:o=!0}=e,s=n instanceof ie?n:Se(n,e),a=Ae(o,s.delimiter),r=[],l=rt(s,r,e),c=r.map(u=>{if(t&&(u.modifier==="+"||u.modifier==="*")){const{prefix:f="",suffix:i="",separator:v=i+f}=u,_=new RegExp(a(v),"g");return h=>h.split(_).map(t)}return t||Le});return function(f){const i=l.exec(f);if(!i)return!1;const{0:v,index:_}=i,h=Object.create(null);for(let b=1;bo.replace(t,dn)}function at(n){return n.sensitive?"":"i"}function rt(n,e,t){const{trailing:o=!0,loose:s=!0,start:a=!0,end:r=!0,strict:l=!1}=t,c=at(t),u=Ae(s,n.delimiter),f=lt(n,u,e,c,l);let i=a?"^":"";return i+=f.join(""),o&&(i+=`(?:${u(n.delimiter)})?`),i+=r?"$":`(?=${oe(n.delimiter)}|$)`,new RegExp(i,c)}function lt(n,e,t,o,s){const a=`(?:(?!${oe(n.delimiter)}).)+?`;let r="",l=!0;return n.tokens.map((c,u)=>{if(typeof c=="string")return r=c,e(c);const{prefix:f="",suffix:i="",separator:v=i+f,modifier:_=""}=c,h=e(f),b=e(i);if(c.name){const C=c.pattern?`(?:${c.pattern})`:a,M=fn(C,c.name,o);if(l||(l=$e(M,f||r)),!l)throw new TypeError(`Ambiguous pattern for "${c.name}": ${ce}`);if(l=!s||$e(M,i),r="",t.push(c),_==="+"||_==="*"){const F=_==="*"?"?":"",B=e(v);if(!B)throw new TypeError(`Missing separator for "${c.name}": ${ce}`);if(l||(l=!s||$e(M,v)),!l)throw new TypeError(`Ambiguous pattern for "${c.name}" separator: ${ce}`);return l=!s,`(?:${h}(${C}(?:${B}${C})*)${b})${F}`}return`(?:${h}(${C})${b})${_}`}return`(?:${h}${b})${_}`})}function fn(n,e,t){try{return new RegExp(`^${n}$`,t)}catch(o){throw new TypeError(`Invalid pattern for "${e}": ${o.message}`)}}function $e(n,e){return e?!n.test(e):!1}function pn(n,e={}){const t=n instanceof ie?n:Se(n,e),o=[],s=rt(t,o,e);return Object.assign(s,{keys:o})}const mn={key:0,class:"no-redirect"},_n=["onClick"],vn=A({__name:"index",setup(n){const e=ge(),t=be(),{listenerRouteChange:o}=ke(),s=P([]),a=()=>{s.value=e.matched.filter(c=>{var u,f;return((u=c.meta)==null?void 0:u.title)&&((f=c.meta)==null?void 0:f.breadcrumb)!==!1})},r=c=>en(c)(e.params),l=c=>{const{redirect:u,path:f}=c;if(u){t.push(u);return}t.push(r(f))};return o(c=>{c.path.startsWith("/redirect/")||a()},!0),(c,u)=>{const f=y("el-breadcrumb-item"),i=y("el-breadcrumb");return d(),w(i,null,{default:g(()=>[(d(!0),$(H,null,Y(s.value,(v,_)=>(d(),w(f,{key:v.path},{default:g(()=>[v.redirect==="noRedirect"||_===s.value.length-1?(d(),$("span",mn,z(v.meta.title),1)):(d(),$("a",{key:1,onClick:de(h=>l(v),["prevent"])},z(v.meta.title),9,_n))]),_:2},1024))),128))]),_:1})}}}),hn=D(vn,[["__scopeId","data-v-5110efca"]]),he=n=>/^(https?:|mailto:|tel:)/.test(n),gn=["href"],bn=A({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,o)=>{const s=y("router-link");return m(he)(e.to)?(d(),$("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[me(t.$slots,"default")],8,gn)):(d(),w(s,{key:1,to:e.to},{default:g(()=>[me(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 Ue(n,e){for(var t="",o=0,s=-1,a=0,r,l=0;l<=n.length;++l){if(l2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",o=0):(t=t.slice(0,c),o=t.length-1-t.lastIndexOf("/")),s=l,a=0;continue}}else if(t.length===2||t.length===1){t="",o=0,s=l,a=0;continue}}e&&(t.length>0?t+="/..":t="..",o=2)}else t.length>0?t+="/"+n.slice(s+1,l):t=n.slice(s+1,l),o=l-s-1;s=l,a=0}else r===46&&a!==-1?++a:a=-1}return t}function yn(n,e){var t=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+o:t+n+o:o}var ne={resolve:function(){for(var e="",t=!1,o,s=arguments.length-1;s>=-1&&!t;s--){var a;s>=0?a=arguments[s]:(o===void 0&&(o=process.cwd()),a=o),j(a),a.length!==0&&(e=a+"/"+e,t=a.charCodeAt(0)===47)}return e=Ue(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,o=e.charCodeAt(e.length-1)===47;return e=Ue(e,!t),e.length===0&&!t&&(e="."),e.length>0&&o&&(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=o:e+="/"+o)}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 o=1;ou){if(t.charCodeAt(r+i)===47)return t.slice(r+i+1);if(i===0)return t.slice(r+i)}else a>u&&(e.charCodeAt(o+i)===47?f=i:i===0&&(f=0));break}var v=e.charCodeAt(o+i),_=t.charCodeAt(r+i);if(v!==_)break;v===47&&(f=i)}var h="";for(i=o+f+1;i<=s;++i)(i===s||e.charCodeAt(i)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(r+f):(r+=f,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),o=t===47,s=-1,a=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),t===47){if(!a){s=r;break}}else a=!1;return s===-1?o?"/":".":o&&s===1?"//":e.slice(0,s)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');j(e);var o=0,s=-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 u=e.charCodeAt(r);if(u===47){if(!a){o=r+1;break}}else c===-1&&(a=!1,c=r+1),l>=0&&(u===t.charCodeAt(l)?--l===-1&&(s=r):(l=-1,s=c))}return o===s?s=c:s===-1&&(s=e.length),e.slice(o,s)}else{for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!a){o=r+1;break}}else s===-1&&(a=!1,s=r+1);return s===-1?"":e.slice(o,s)}},extname:function(e){j(e);for(var t=-1,o=0,s=-1,a=!0,r=0,l=e.length-1;l>=0;--l){var c=e.charCodeAt(l);if(c===47){if(!a){o=l+1;break}continue}s===-1&&(a=!1,s=l+1),c===46?t===-1?t=l:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||s===-1||r===0||r===1&&t===s-1&&t===o+1?"":e.slice(t,s)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return yn("/",e)},parse:function(e){j(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o=e.charCodeAt(0),s=o===47,a;s?(t.root="/",a=1):a=0;for(var r=-1,l=0,c=-1,u=!0,f=e.length-1,i=0;f>=a;--f){if(o=e.charCodeAt(f),o===47){if(!u){l=f+1;break}continue}c===-1&&(u=!1,c=f+1),o===46?r===-1?r=f:i!==1&&(i=1):r!==-1&&(i=-1)}return r===-1||c===-1||i===0||i===1&&r===c-1&&r===l+1?c!==-1&&(l===0&&s?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(l,c)):(l===0&&s?(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):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.posix=ne;var wn=ne;const ct=$t(wn),kn={key:2},xn=A({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(n){const e=n,t=V(()=>{var l;return(l=e.item.meta)==null?void 0:l.alwaysShow}),o=V(()=>{var l;return((l=e.item.children)==null?void 0:l.filter(c=>{var u;return!((u=c.meta)!=null&&u.hidden)}))??[]}),s=V(()=>o.value.length),a=V(()=>{const l=s.value;switch(!0){case l>1:return null;case l===1:return o.value[0];default:return{...e.item,path:""}}}),r=l=>{switch(!0){case he(l):return l;case he(e.basePath):return e.basePath;default:return ct.resolve(e.basePath,l)}};return(l,c)=>{const u=y("SvgIcon"),f=y("el-menu-item"),i=y("SidebarItem",!0),v=y("el-sub-menu");return!t.value&&a.value&&!a.value.children?(d(),$(H,{key:0},[a.value.meta?(d(),w(bn,{key:0,to:r(a.value.path)},{default:g(()=>[p(f,{index:r(a.value.path)},mt({default:g(()=>[a.value.meta.svgIcon?(d(),w(u,{key:0,name:a.value.meta.svgIcon},null,8,["name"])):a.value.meta.elIcon?(d(),w(pe(a.value.meta.elIcon),{key:1,class:"el-icon"})):R("",!0)]),_:2},[a.value.meta.title?{name:"title",fn:g(()=>[K(z(a.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):R("",!0)],64)):(d(),w(v,{key:1,index:r(e.item.path),teleported:""},{title:g(()=>{var _,h,b;return[(_=e.item.meta)!=null&&_.svgIcon?(d(),w(u,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(d(),w(pe(e.item.meta.elIcon),{key:1,class:"el-icon"})):R("",!0),(b=e.item.meta)!=null&&b.title?(d(),$("span",kn,z(e.item.meta.title),1)):R("",!0)]}),default:g(()=>[e.item.children?(d(!0),$(H,{key:0},Y(o.value,_=>(d(),w(i,{key:_.path,item:_,"base-path":r(_.path)},null,8,["item","base-path"]))),128)):R("",!0)]),_:1},8,["index"]))}}}),Sn=D(xn,[["__scopeId","data-v-ed98da72"]]),Cn="/v3-admin-vite/static/logo-BY3URNHQ.png",$n="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",Tn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",En=["src"],Vn=["src"],Mn=A({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:o}=le();return(s,a)=>{const r=y("router-link");return d(),$("div",{class:O(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":m(o)}])},[p(Je,{name:"layout-logo-fade"},{default:g(()=>[e.collapse?(d(),w(r,{key:"collapse",to:"/"},{default:g(()=>[x("img",{src:m(Cn),class:"layout-logo"},null,8,En)]),_:1})):(d(),w(r,{key:"expand",to:"/"},{default:g(()=>[x("img",{src:m(t)?m($n):m(Tn),class:"layout-logo-text"},null,8,Vn)]),_:1}))]),_:1})],2)}}}),De=D(Mn,[["__scopeId","data-v-52f1a9b3"]]),fe=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},Oe=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},In=()=>{wt(),location.reload()},Rn=A({__name:"index",setup(n){Ye(S=>({"4ded6dc0":q.value,"61d38dec":L.value,"15ffc82c":F.value,"05d7b6d4":B.value,"632f5fe7":M.value}));const e=fe("--v3-sidebar-menu-bg-color"),t=fe("--v3-sidebar-menu-text-color"),o=fe("--v3-sidebar-menu-active-text-color"),{isMobile:s}=re(),{isLeft:a,isTop:r}=le(),l=ge(),c=ae(),u=Ie(),f=G(),i=V(()=>{const{meta:{activeMenu:S},path:T}=l;return S||T}),v=V(()=>u.routes.filter(S=>{var T;return!((T=S.meta)!=null&&T.hidden)})),_=V(()=>!c.sidebar.opened),h=V(()=>a.value&&f.showLogo),b=V(()=>a.value?e:void 0),C=V(()=>a.value?t:void 0),M=V(()=>a.value?o:void 0),F=V(()=>r.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),B=V(()=>r.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),q=V(()=>r.value?"0px":"2px"),L=V(()=>r.value?"none":"block");return(S,T)=>{const W=y("el-menu"),k=y("el-scrollbar");return d(),$("div",{class:O({"has-logo":h.value})},[h.value?(d(),w(De,{key:0,collapse:_.value},null,8,["collapse"])):R("",!0),p(k,{"wrap-class":"scrollbar-wrapper"},{default:g(()=>[p(W,{"default-active":i.value,collapse:_.value&&!m(r),"background-color":b.value,"text-color":C.value,"active-text-color":M.value,"unique-opened":!0,"collapse-transition":!1,mode:m(r)&&!m(s)?"horizontal":"vertical"},{default:g(()=>[(d(!0),$(H,null,Y(v.value,I=>(d(),w(Sn,{key:I.path,item:I,"base-path":I.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Pe=D(Rn,[["__scopeId","data-v-4b030497"]]),Ln={class:"card-header"},An={class:"card-title"},Dn={class:"card-time"},Pn={key:0,class:"card-avatar"},Fn=["src"],Nn={class:"card-body"},zn=A({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,o)=>{const s=y("el-empty"),a=y("el-tag"),r=y("el-card");return e.list.length===0?(d(),w(s,{key:0})):(d(!0),$(H,{key:1},Y(e.list,(l,c)=>(d(),w(r,{key:c,shadow:"never",class:"card-container"},{header:g(()=>[x("div",Ln,[x("div",null,[x("span",null,[x("span",An,z(l.title),1),l.extra?(d(),w(a,{key:0,type:l.status,effect:"plain",size:"small"},{default:g(()=>[K(z(l.extra),1)]),_:2},1032,["type"])):R("",!0)]),x("div",Dn,z(l.datetime),1)]),l.avatar?(d(),$("div",Pn,[x("img",{src:l.avatar,width:"34"},null,8,Fn)])):R("",!0)])]),default:g(()=>[x("div",Nn,z(l.description??"No Data"),1)]),_:2},1024))),128))}}}),Bn=D(zn,[["__scopeId","data-v-c0dacc5d"]]),Wn=[{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"}],Un=[{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"}],On=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Hn={class:"notify"},qn={class:"notify-history"},He=99,Xn=350,jn=A({__name:"index",setup(n){const e=V(()=>o.value.reduce((a,r)=>a+r.list.length,0)),t=P("通知"),o=P([{name:"通知",type:"primary",list:Wn},{name:"消息",type:"danger",list:Un},{name:"待办",type:"warning",list:On}]),s=()=>{ve.success(`跳转到${t.value}历史页面`)};return(a,r)=>{const l=y("el-icon"),c=y("el-tooltip"),u=y("el-badge"),f=y("el-scrollbar"),i=y("el-tab-pane"),v=y("el-tabs"),_=y("el-button"),h=y("el-popover");return d(),$("div",Hn,[p(h,{placement:"bottom",width:Xn,trigger:"click"},{reference:g(()=>[p(u,{value:e.value,max:He,hidden:e.value===0},{default:g(()=>[p(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:g(()=>[p(l,{size:20},{default:g(()=>[p(m(Tt))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:g(()=>[p(v,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=b=>t.value=b),class:"demo-tabs",stretch:""},{default:g(()=>[(d(!0),$(H,null,Y(o.value,(b,C)=>(d(),w(i,{name:b.name,key:C},{label:g(()=>[K(z(b.name)+" ",1),p(u,{value:b.list.length,max:He,type:b.type},null,8,["value","type"])]),default:g(()=>[p(f,{height:"400px"},{default:g(()=>[p(Bn,{list:b.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),x("div",qn,[p(_,{link:"",onClick:s},{default:g(()=>[K("查看"+z(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),Kn=D(jn,[["__scopeId","data-v-a5fd6355"]]),qe=[["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=qe[0],e={};for(const t of qe)if((t==null?void 0:t[1])in document){for(const[s,a]of t.entries())e[n[s]]=a;return e}return!1})(),Xe={change:J.fullscreenchange,error:J.fullscreenerror};let U={request(n=document.documentElement,e){return new Promise((t,o)=>{const s=()=>{U.off("change",s),t()};U.on("change",s);const a=n[J.requestFullscreen](e);a instanceof Promise&&a.then(s).catch(o)})},exit(){return new Promise((n,e)=>{if(!U.isFullscreen){n();return}const t=()=>{U.off("change",t),n()};U.on("change",t);const o=document[J.exitFullscreen]();o instanceof Promise&&o.then(t).catch(e)})},toggle(n,e){return U.isFullscreen?U.exit():U.request(n,e)},onchange(n){U.on("change",n)},onerror(n){U.on("error",n)},on(n,e){const t=Xe[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Xe[n];t&&document.removeEventListener(t,e,!1)},raw:J};Object.defineProperties(U,{isFullscreen:{get:()=>!!document[J.fullscreenElement]},element:{enumerable:!0,get:()=>document[J.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[J.fullscreenEnabled]}});J||(U={isEnabled:!1});const Z=U,Gn=A({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=P(!1),o=V(()=>t.value?e.exitTips:e.openTips),s=V(()=>t.value?"fullscreen-exit":"fullscreen"),a=()=>{const v=document.querySelector(e.element)||void 0;Z.isEnabled?Z.toggle(v):ve.warning("您的浏览器无法工作")},r=()=>{t.value=Z.isFullscreen,t.value||(document.body.className="")};_e(v=>{Z.isEnabled&&Z.on("change",r),v(()=>{Z.isEnabled&&Z.off("change",r)})});const l=P(!1),c=V(()=>l.value?"内容区复原":"内容区放大"),u=V(()=>l.value?"fullscreen-exit":"fullscreen"),f=()=>{l.value=!l.value,document.body.className=l.value?"content-large":""},i=()=>{l.value&&f(),document.body.className="content-full",a()};return(v,_)=>{const h=y("SvgIcon"),b=y("el-tooltip"),C=y("el-dropdown-item"),M=y("el-dropdown-menu"),F=y("el-dropdown");return d(),$("div",null,[v.content?(d(),w(F,{key:1,disabled:t.value},{dropdown:g(()=>[p(M,null,{default:g(()=>[p(C,{onClick:f},{default:g(()=>[K(z(c.value),1)]),_:1}),p(C,{onClick:i},{default:g(()=>[K("内容区全屏")]),_:1})]),_:1})]),default:g(()=>[p(h,{name:u.value},null,8,["name"])]),_:1},8,["disabled"])):(d(),w(b,{key:0,effect:"dark",content:o.value,placement:"bottom"},{default:g(()=>[p(h,{name:s.value,onClick:a},null,8,["name"])]),_:1},8,["content"]))])}}}),it=D(Gn,[["__scopeId","data-v-889fe0df"]]),Jn=["onMouseenter"],Yn={class:"result-item-title"},Zn=A({__name:"SearchResult",props:_t({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=Ze(n,"modelValue"),o=n,s=Qe(),a=P(0),r=f=>{const i=f.name===t.value;return{background:i?"var(--el-color-primary)":"",color:i?"#ffffff":""}},l=f=>{o.isPressUpOrDown||(t.value=f.name)},c=()=>{a.value=Number((window.innerHeight*.4).toFixed(1))},u=f=>{var h;const i=(h=s==null?void 0:s.proxy)==null?void 0:h.$refs[`resultItemRef${f}`];if(!i)return 0;const _=i[0].offsetTop+128;return _>a.value?_-a.value:0};return Ke(()=>{window.addEventListener("resize",c)}),Ee(()=>{c()}),Ge(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:u}),(f,i)=>{const v=y("SvgIcon");return d(),$("div",null,[(d(!0),$(H,null,Y(f.list,(_,h)=>{var b,C,M;return d(),$("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:et(r(_)),onMouseenter:F=>l(_)},[(b=_.meta)!=null&&b.svgIcon?(d(),w(v,{key:0,name:_.meta.svgIcon},null,8,["name"])):(C=_.meta)!=null&&C.elIcon?(d(),w(pe(_.meta.elIcon),{key:1,class:"el-icon"})):R("",!0),x("span",Yn,z((M=_.meta)==null?void 0:M.title),1),t.value&&t.value===_.name?(d(),w(v,{key:2,name:"keyboard-enter"})):R("",!0)],44,Jn)}),128))])}}}),Qn=D(Zn,[["__scopeId","data-v-8cd47626"]]),Fe=n=>(Ve("data-v-8dce46e8"),n=n(),Me(),n),eo={class:"search-footer"},to={class:"search-footer-item"},no=Fe(()=>x("span",null,"确认",-1)),oo={class:"search-footer-item"},so=Fe(()=>x("span",null,"切换",-1)),ao={class:"search-footer-item"},ro=Fe(()=>x("span",null,"关闭",-1)),lo={class:"search-footer-total"},co=A({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=re();return(o,s)=>{const a=y("SvgIcon");return d(),$("div",eo,[m(t)?R("",!0):(d(),$(H,{key:0},[x("span",to,[p(a,{name:"keyboard-enter"}),no]),x("span",oo,[p(a,{name:"keyboard-up"}),p(a,{name:"keyboard-down"}),so]),x("span",ao,[p(a,{name:"keyboard-esc"}),ro])],64)),x("span",lo,"共 "+z(e.total)+" 项",1)])}}}),io=D(co,[["__scopeId","data-v-8dce46e8"]]),uo=x("p",null,"搜索结果",-1),fo=A({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Ze(n,"modelValue"),t=be(),{isMobile:o}=re(),s=P(null),a=P(null),r=P(null),l=P(""),c=vt([]),u=P(void 0),f=P(!1),i=V(()=>o.value?"80vw":"40vw"),v=V(()=>Et(Ie().routes)),_=Vt(()=>{var T;const L=h(v.value);c.value=L.filter(W=>{var k,I;return l.value?(I=(k=W.meta)==null?void 0:k.title)==null?void 0:I.toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim()):!1});const S=(T=c.value)==null?void 0:T.length;u.value=S>0?c.value[0].name:void 0},500),h=(L,S=[])=>(L.forEach(T=>{S.push(T),T.children&&h(T.children,S)}),S),b=()=>{e.value=!1,setTimeout(()=>{l.value="",c.value=[]},200)},C=L=>{var T;if(!r.value)return;const S=r.value.getScrollTop(L);(T=a.value)==null||T.setScrollTop(S)},M=()=>{f.value=!0;const{length:L}=c.value;if(L===0)return;const S=c.value.findIndex(T=>T.name===u.value);if(S===0){const T=c.value[L-1].name;u.value===T&&L>1?(u.value=c.value[L-2].name,C(L-2)):(u.value=T,C(L-1))}else u.value=c.value[S-1].name,C(S-1)},F=()=>{f.value=!0;const{length:L}=c.value;if(L===0)return;const S=c.value.map(T=>T.name).lastIndexOf(u.value);if(S===L-1){const T=c.value[0].name;u.value===T&&L>1?(u.value=c.value[1].name,C(1)):(u.value=T,C(0))}else u.value=c.value[S+1].name,C(S+1)},B=()=>{var W;const{length:L}=c.value;if(L===0)return;const S=u.value,T=(W=c.value.find(k=>k.name===S))==null?void 0:W.path;if(T&&he(T)){window.open(T,"_blank","noopener, noreferrer");return}if(!S){ve.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:S})}catch{ve.error("该菜单有必填的动态参数,无法通过搜索进入");return}b()},q=()=>{f.value=!1};return(L,S)=>{const T=y("SvgIcon"),W=y("el-input"),k=y("el-empty"),I=y("el-dialog");return d(),w(I,{modelValue:e.value,"onUpdate:modelValue":S[2]||(S[2]=N=>e.value=N),onOpened:S[3]||(S[3]=N=>{var E;return(E=s.value)==null?void 0:E.focus()}),onClosed:S[4]||(S[4]=N=>{var E;return(E=s.value)==null?void 0:E.blur()}),onKeydown:[ue(M,["up"]),ue(F,["down"]),ue(B,["enter"])],onKeyup:ue(q,["up","down"]),"before-close":b,width:i.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:g(()=>[p(io,{total:c.value.length},null,8,["total"])]),default:g(()=>[p(W,{ref_key:"inputRef",ref:s,modelValue:l.value,"onUpdate:modelValue":S[0]||(S[0]=N=>l.value=N),onInput:m(_),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:g(()=>[p(T,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(d(),w(k,{key:0,description:"暂无搜索结果","image-size":100})):(d(),$(H,{key:1},[uo,p(m(ot),{ref_key:"scrollbarRef",ref:a,"max-height":"40vh",always:""},{default:g(()=>[p(Qn,{ref_key:"searchResultRef",ref:r,modelValue:u.value,"onUpdate:modelValue":S[1]||(S[1]=N=>u.value=N),list:c.value,isPressUpOrDown:f.value,onClick:B},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),po=A({__name:"index",setup(n){const e=P(!1),t=()=>{e.value=!0};return(o,s)=>{const a=y("SvgIcon"),r=y("el-tooltip");return d(),$("div",null,[p(r,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:g(()=>[p(a,{name:"search",onClick:t})]),_:1}),p(fo,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=l=>e.value=l)},null,8,["modelValue"])])}}}),mo=D(po,[["__scopeId","data-v-dc5accb4"]]),_o=n=>(Ve("data-v-1ee6dd91"),n=n(),Me(),n),vo={class:"navigation-bar"},ho={class:"right-menu"},go={class:"right-menu-avatar"},bo={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},yo={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},wo=_o(()=>x("span",{style:{display:"block"}},"退出登录",-1)),ko=A({__name:"index",setup(n){const{isMobile:e}=re(),{isTop:t}=le(),o=be(),s=ae(),a=kt(),r=G(),{showNotify:l,showThemeSwitch:c,showScreenfull:u,showSearchMenu:f}=se(r),i=()=>{s.toggleSidebar(!1)},v=()=>{a.logout(),o.push("/login")};return(_,h)=>{const b=y("el-avatar"),C=y("el-dropdown-item"),M=y("el-dropdown-menu"),F=y("el-dropdown");return d(),$("div",vo,[!m(t)||m(e)?(d(),w(Qt,{key:0,"is-active":m(s).sidebar.opened,class:"hamburger",onToggleClick:i},null,8,["is-active"])):R("",!0),!m(t)||m(e)?(d(),w(hn,{key:1,class:"breadcrumb"})):R("",!0),m(t)&&!m(e)?(d(),w(Pe,{key:2,class:"sidebar"})):R("",!0),x("div",ho,[m(f)?(d(),w(mo,{key:0,class:"right-menu-item"})):R("",!0),m(u)?(d(),w(it,{key:1,class:"right-menu-item"})):R("",!0),m(c)?(d(),w(Pt,{key:2,class:"right-menu-item"})):R("",!0),m(l)?(d(),w(Kn,{key:3,class:"right-menu-item"})):R("",!0),p(F,{class:"right-menu-item"},{dropdown:g(()=>[p(M,null,{default:g(()=>[x("a",bo,[p(C,null,{default:g(()=>[K("GitHub")]),_:1})]),x("a",yo,[p(C,null,{default:g(()=>[K("Gitee")]),_:1})]),p(C,{divided:"",onClick:v},{default:g(()=>[wo]),_:1})]),_:1})]),default:g(()=>[x("div",go,[p(b,{icon:m(Mt),size:30},null,8,["icon"]),x("span",null,z(m(a).username),1)])]),_:1})])])}}}),Ne=D(ko,[["__scopeId","data-v-1ee6dd91"]]),xo={class:"select-layout-mode"},So=A({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:o,setLayoutMode:s}=le();return(a,r)=>{const l=y("el-aside"),c=y("el-header"),u=y("el-main"),f=y("el-container"),i=y("el-tooltip");return d(),$("div",xo,[p(i,{content:"左侧模式"},{default:g(()=>[p(f,{class:O(["layout-mode left",{active:m(e)}]),onClick:r[0]||(r[0]=v=>m(s)(m(te).Left))},{default:g(()=>[p(l),p(f,null,{default:g(()=>[p(c),p(u)]),_:1})]),_:1},8,["class"])]),_:1}),p(i,{content:"顶部模式"},{default:g(()=>[p(f,{class:O(["layout-mode top",{active:m(t)}]),onClick:r[1]||(r[1]=v=>m(s)(m(te).Top))},{default:g(()=>[p(c),p(u)]),_:1},8,["class"])]),_:1}),p(i,{content:"混合模式"},{default:g(()=>[p(f,{class:O(["layout-mode left-top",{active:m(o)}]),onClick:r[2]||(r[2]=v=>m(s)(m(te).LeftTop))},{default:g(()=>[p(c),p(f,null,{default:g(()=>[p(l),p(u)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),Co=D(So,[["__scopeId","data-v-b859d856"]]),ut=n=>(Ve("data-v-107157f3"),n=n(),Me(),n),$o={class:"setting-container"},To=ut(()=>x("h4",null,"布局配置",-1)),Eo=ut(()=>x("h4",null,"功能配置",-1)),Vo={class:"setting-name"},Mo=A({__name:"index",setup(n){const{isLeft:e}=le(),t=G(),{showTagsView:o,showLogo:s,fixedHeader:a,showFooter:r,showNotify:l,showThemeSwitch:c,showScreenfull:u,showSearchMenu:f,cacheTagsView:i,showWatermark:v,showGreyMode:_,showColorWeakness:h}=se(t),b={显示标签栏:o,"显示 Logo":s,"固定 Header":a,"显示页脚 Footer":r,显示消息通知:l,显示切换主题按钮:c,显示全屏按钮:u,显示搜索按钮:f,是否缓存标签栏:i,开启系统水印:v,显示灰色模式:_,显示色弱模式:h};return _e(()=>{!e.value&&(a.value=!0)}),(C,M)=>{const F=y("el-divider"),B=y("el-switch"),q=y("el-button");return d(),$("div",$o,[To,p(Co),p(F),Eo,(d(),$(H,null,Y(b,(L,S,T)=>x("div",{class:"setting-item",key:T},[x("span",Vo,z(S),1),p(B,{modelValue:L.value,"onUpdate:modelValue":W=>L.value=W,disabled:!m(e)&&S==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),p(q,{type:"danger",icon:m(It),onClick:m(In)},{default:g(()=>[K("重 置")]),_:1},8,["icon","onClick"])])}}}),Io=D(Mo,[["__scopeId","data-v-107157f3"]]),Ro={class:"scroll-container"},Lo=200,Ao=A({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=ge(),o=G(),{listenerRouteChange:s}=ke(),a=P(),r=P();let l=0;const c=({scrollLeft:_})=>{l=_},u=({deltaY:_})=>{/^-/.test(_.toString())?i("left"):i("right")},f=()=>{const _=r.value.clientWidth,h=a.value.wrapRef.clientWidth,b=_-h-l;return{scrollbarContentRefWidth:_,scrollbarRefWidth:h,lastDistance:b}},i=(_,h=Lo)=>{let b=0;const{scrollbarContentRefWidth:C,scrollbarRefWidth:M,lastDistance:F}=f();M>C||(_==="left"?b=Math.max(0,l-h):b=Math.min(l+h,l+F),a.value.setScrollLeft(b))},v=()=>{const _=e.tagRefs;for(let h=0;h<_.length;h++)if(t.path===_[h].$props.to.path){const b=_[h].$el,C=b.offsetWidth,M=b.offsetLeft,{scrollbarRefWidth:F}=f();if(MB){const q=M-B;i("right",q);return}}};return s(()=>{ht(v)}),(_,h)=>{const b=y("el-icon");return d(),$("div",Ro,[p(b,{class:"arrow left",onClick:h[0]||(h[0]=C=>i("left"))},{default:g(()=>[p(m(Rt))]),_:1}),p(m(ot),{ref_key:"scrollbarRef",ref:a,onWheelPassive:u,onScroll:c},{default:g(()=>[x("div",{ref_key:"scrollbarContentRef",ref:r,class:"scrollbar-content"},[me(_.$slots,"default",{},void 0,!0)],512)]),_:3},512),p(b,{class:"arrow right",onClick:h[1]||(h[1]=C=>i("right"))},{default:g(()=>[p(m(Lt))]),_:1}),m(o).showScreenfull?(d(),w(it,{key:0,content:!0,class:"screenfull"})):R("",!0)])}}}),Do=D(Ao,[["__scopeId","data-v-5784e87c"]]),Po={class:"tags-view-container"},Fo=A({__name:"index",setup(n){const e=Qe(),t=be(),o=ge(),s=nt(),a=Ie(),{listenerRouteChange:r}=ke(),l=P([]),c=P(!1),u=P(0),f=P(0),i=P({});let v=[];const _=k=>k.path===o.path,h=k=>{var I;return(I=k.meta)==null?void 0:I.affix},b=(k,I="/")=>{const N=[];return k.forEach(E=>{if(h(E)){const X=ct.resolve(I,E.path);N.push({fullPath:X,path:X,name:E.name,meta:{...E.meta}})}if(E.children){const X=b(E.children,E.path);N.push(...X)}}),N},C=()=>{v=b(a.routes);for(const k of v)k.name&&s.addVisitedView(k)},M=k=>{k.name&&(s.addVisitedView(k),s.addCachedView(k))},F=k=>{s.delCachedView(k),t.replace({path:"/redirect"+k.path,query:k.query})},B=k=>{s.delVisitedView(k),s.delCachedView(k),_(k)&&S(s.visitedViews,k)},q=()=>{const k=i.value.fullPath;k!==o.path&&k!==void 0&&t.push(k),s.delOthersVisitedViews(i.value),s.delOthersCachedViews(i.value)},L=k=>{s.delAllVisitedViews(),s.delAllCachedViews(),!v.some(I=>I.path===o.path)&&S(s.visitedViews,k)},S=(k,I)=>{const N=k.slice(-1)[0],E=N==null?void 0:N.fullPath;E!==void 0?t.push(E):I.name==="Dashboard"?t.push({path:"/redirect"+I.path,query:I.query}):t.push("/")},T=(k,I)=>{const E=e.proxy.$el.getBoundingClientRect().left,Ce=e.proxy.$el.offsetWidth-105,Be=I.clientX-E+15;f.value=Be>Ce?Ce:Be,u.value=I.clientY,c.value=!0,i.value=k},W=()=>{c.value=!1};return je(c,k=>{k?document.body.addEventListener("click",W):document.body.removeEventListener("click",W)}),Ee(()=>{C(),r(async k=>{M(k)},!0)}),(k,I)=>{const N=y("el-icon");return d(),$("div",Po,[p(Do,{class:"tags-view-wrapper","tag-refs":l.value},{default:g(()=>[(d(!0),$(H,null,Y(m(s).visitedViews,E=>(d(),w(m(gt),{ref_for:!0,ref_key:"tagRefs",ref:l,key:E.path,class:O([{active:_(E)},"tags-view-item"]),to:{path:E.path,query:E.query},onMouseup:de(X=>!h(E)&&B(E),["middle"]),onContextmenu:de(X=>T(E,X),["prevent"])},{default:g(()=>{var X;return[K(z((X=E.meta)==null?void 0:X.title)+" ",1),h(E)?R("",!0):(d(),w(N,{key:0,size:12,onClick:de(Ce=>B(E),["prevent","stop"])},{default:g(()=>[p(m(At))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ye(x("ul",{class:"contextmenu",style:et({left:f.value+"px",top:u.value+"px"})},[x("li",{onClick:I[0]||(I[0]=E=>F(i.value))},"刷新"),h(i.value)?R("",!0):(d(),$("li",{key:0,onClick:I[1]||(I[1]=E=>B(i.value))},"关闭")),x("li",{onClick:q},"关闭其它"),x("li",{onClick:I[2]||(I[2]=E=>L(i.value))},"关闭所有")],4),[[we,c.value]])])}}}),ze=D(Fo,[["__scopeId","data-v-6f2c645d"]]),No=A({__name:"index",props:{buttonTop:{default:350}},setup(n){Ye(s=>({"79e23a76":t}));const t=n.buttonTop+"px",o=P(!1);return(s,a)=>{const r=y("el-icon"),l=y("el-drawer");return d(),$(H,null,[x("div",{class:"handle-button",onClick:a[0]||(a[0]=c=>o.value=!0)},[p(r,{size:24},{default:g(()=>[p(m(Dt))]),_:1})]),p(l,{modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=c=>o.value=c),size:"300px","with-header":!1},{default:g(()=>[me(s.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),zo=D(No,[["__scopeId","data-v-e47107a1"]]),Bo=A({__name:"LeftMode",setup(n){const{isMobile:e}=re(),t=ae(),o=G(),{showTagsView:s,fixedHeader:a}=se(o),r=V(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),l=()=>{t.closeSidebar(!1)};return(c,u)=>(d(),$("div",{class:O([r.value,"app-wrapper"])},[r.value.mobile&&r.value.openSidebar?(d(),$("div",{key:0,class:"drawer-bg",onClick:l})):R("",!0),p(m(Pe),{class:"sidebar-container"}),x("div",{class:O([{hasTagsView:m(s)},"main-container"])},[x("div",{class:O([{"fixed-header":m(a)},"layout-header"])},[p(m(Ne)),ye(p(m(ze),null,null,512),[[we,m(s)]])],2),p(m(Re),{class:"app-main"})],2)],2))}}),Wo=D(Bo,[["__scopeId","data-v-79281f6e"]]),Uo={class:"app-wrapper"},Oo={class:"fixed-header layout-header"},Ho={class:"content"},qo=A({__name:"TopMode",setup(n){const e=G(),{showTagsView:t,showLogo:o}=se(e);return(s,a)=>(d(),$("div",Uo,[x("div",Oo,[x("div",Ho,[m(o)?(d(),w(m(De),{key:0,collapse:!1,class:"logo"})):R("",!0),p(m(Ne),{class:"navigation-bar"})]),ye(p(m(ze),null,null,512),[[we,m(t)]])]),x("div",{class:O([{hasTagsView:m(t)},"main-container"])},[p(m(Re),{class:"app-main"})],2)]))}}),Xo=D(qo,[["__scopeId","data-v-da4d3997"]]),jo={class:"fixed-header layout-header"},Ko={class:"content"},Go=A({__name:"LeftTopMode",setup(n){const e=ae(),t=G(),{showTagsView:o,showLogo:s}=se(t),a=V(()=>({hideSidebar:!e.sidebar.opened}));return(r,l)=>(d(),$("div",{class:O([a.value,"app-wrapper"])},[x("div",jo,[m(s)?(d(),w(m(De),{key:0,collapse:!1,class:"logo"})):R("",!0),x("div",Ko,[p(m(Ne)),ye(p(m(ze),null,null,512),[[we,m(o)]])])]),x("div",{class:O([{hasTagsView:m(o)},"main-container"])},[p(m(Pe),{class:"sidebar-container"}),p(m(Re),{class:"app-main"})],2)],2))}}),Jo=D(Go,[["__scopeId","data-v-b05e214b"]]),Te="--v3-tagsview-height",Yo=A({__name:"index",setup(n){zt();const{setWatermark:e,clearWatermark:t}=xt(),{isMobile:o}=re(),{isLeft:s,isTop:a,isLeftTop:r}=le(),l=G(),{showSettings:c,showTagsView:u,showWatermark:f,showGreyMode:i,showColorWeakness:v}=se(l),_=V(()=>({showGreyMode:i.value,showColorWeakness:v.value})),h=fe(Te);return _e(()=>{u.value?Oe(Te,h):Oe(Te,"0px")}),_e(()=>{f.value?e("V3 Admin Vite"):t()}),(b,C)=>(d(),$("div",{class:O(_.value)},[m(s)||m(o)?(d(),w(Wo,{key:0})):m(a)?(d(),w(Xo,{key:1})):m(r)?(d(),w(Jo,{key:2})):R("",!0),m(c)?(d(),w(m(zo),{key:3},{default:g(()=>[p(m(Io))]),_:1})):R("",!0)],2))}}),ss=D(Yo,[["__scopeId","data-v-f8f963f5"]]);export{ss as default}; +import{aB as dt,Z as ft,r as P,d as je,E as Ke,c as Ee,A as Ge,f as V,m as A,p as d,q as $,T as z,u as m,ah as y,t as x,U as p,O as g,W as Je,M as w,Q as pe,aC as pt,R,aD as ge,aE as be,a7 as Y,a2 as de,F as H,H as me,a9 as mt,S as K,I as O,aF as Ye,w as _e,aG as _t,aH as Ze,b as Qe,J as et,aI as Ve,aJ as Me,s as vt,a8 as ue,aK as se,n as ht,aL as gt,P as ye,V as we}from"./vue-DFPEx4lP.js";import{g as bt,S as tt,D as Q,s as We,a as yt,u as ke,b as G,L as te,_ as D,c as nt,r as wt,d as Ie,e as kt}from"./index-CaT-hR_L.js";import{u as xt}from"./useWatermark-Dw54A1c_.js";import{h as St,j as Ct,g as $t,k as Tt,b as ve,l as Et,n as Vt,o as ot,u as Mt,r as It,p as Rt,q as Lt,s as At,t as Dt}from"./element-BtM_n4iJ.js";import{_ as Pt}from"./index.vue_vue_type_script_setup_true_lang-CNoPbjzZ.js";import"./vxe-Rdi24jM-.js";function Ft(n){n?We(yt):We(tt)}const ae=dt("app",()=>{const n=ft({opened:bt()!==tt,withoutAnimation:!1}),e=P(Q.Desktop);return je(()=>n.opened,a=>Ft(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}}}),Nt=992,zt=()=>{const n=ae(),{listenerRouteChange:e}=ke(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const s=t();n.toggleDevice(s?Q.Mobile:Q.Desktop),s&&n.closeSidebar(!0)}};e(()=>{n.device===Q.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Ke(()=>{window.addEventListener("resize",o)}),Ee(()=>{t()&&(n.toggleDevice(Q.Mobile),n.closeSidebar(!0))}),Ge(()=>{window.removeEventListener("resize",o)})},st=ae(),Bt=V(()=>st.device===Q.Mobile),Wt=V(()=>st.device===Q.Desktop);function re(){return{isMobile:Bt,isDesktop:Wt}}const xe=G(),Ut=V(()=>xe.layoutMode===te.Left),Ot=V(()=>xe.layoutMode===te.Top),Ht=V(()=>xe.layoutMode===te.LeftTop),qt=n=>{xe.layoutMode=n};function le(){return{isLeft:Ut,isTop:Ot,isLeftTop:Ht,setLayoutMode:qt}}const Xt={class:"layout-footer"},jt=A({__name:"index",setup(n){const e="V3 Admin Vite";return(t,o)=>(d(),$("footer",Xt,"MIT © 2021-PRESENT "+z(m(e)),1))}}),Kt=D(jt,[["__scopeId","data-v-18d14396"]]),Gt={class:"app-main"},Jt={class:"app-scrollbar"},Yt=A({__name:"AppMain",setup(n){const e=nt(),t=G();return(o,s)=>{const a=y("router-view"),r=y("el-backtop");return d(),$("section",Gt,[x("div",Jt,[p(a,null,{default:g(({Component:l,route:c})=>[p(Je,{name:"el-fade-in",mode:"out-in"},{default:g(()=>[(d(),w(pt,{include:m(e).cachedViews},[(d(),w(pe(l),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),m(t).showFooter?(d(),w(Kt,{key:0})):R("",!0)]),p(r),p(r,{target:".app-scrollbar"})])}}}),Re=D(Yt,[["__scopeId","data-v-e96aa434"]]),Zt=A({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,o=e,s=()=>{o("toggleClick")};return(a,r)=>{const l=y("el-icon");return d(),$("div",{onClick:s},[p(l,{size:20,class:"icon"},{default:g(()=>[t.isActive?(d(),w(m(St),{key:0})):(d(),w(m(Ct),{key:1}))]),_:1})])}}}),Qt=D(Zt,[["__scopeId","data-v-a21f53d4"]]);var ee={};Object.defineProperty(ee,"__esModule",{value:!0});ee.TokenData=void 0;ee.parse=Se;var en=ee.compile=rn;ee.match=un;ee.pathToRegexp=pn;const tn="/",Le=n=>n,nn=new RegExp("^\\p{XID_Continue}$","u"),ce="https://git.new/pathToRegexpError",on={"!":"!","@":"@",";":";",",":",","*":"*","+":"+","?":"?","{":"{","}":"}"};function sn(n){const e=[...n],t=[];let o=0;for(;on;const t=e||Le,o=n.modifier==="+"||n.modifier==="*",s=n.modifier==="?"||n.modifier==="*",{prefix:a="",suffix:r="",separator:l=r+a}=n;if(e&&o){const u=(i,v)=>{if(typeof i!="string")throw new TypeError(`Expected "${n.name}/${v}" to be a string`);return t(i)},f=i=>{if(!Array.isArray(i))throw new TypeError(`Expected "${n.name}" to be an array`);return i.length===0?"":a+i.map(u).join(l)+r};return s?i=>{const v=i[n.name];return v==null?"":v.length?f(v):""}:i=>{const v=i[n.name];return f(v)}}const c=u=>{if(typeof u!="string")throw new TypeError(`Expected "${n.name}" to be a string`);return a+t(u)+r};return s?u=>{const f=u[n.name];return f==null?"":c(f)}:u=>{const f=u[n.name];return c(f)}}function cn(n,e){const{encode:t=encodeURIComponent,loose:o=!0,validate:s=!0,strict:a=!1}=e,r=at(e),l=Ae(o,n.delimiter),c=lt(n,l,[],r,a),u=n.tokens.map((f,i)=>{const v=ln(f,t);if(!s||typeof f=="string")return v;const _=new RegExp(`^${c[i]}$`,r);return h=>{const b=v(h);if(!_.test(b))throw new TypeError(`Invalid value for "${f.name}": ${JSON.stringify(b)}`);return b}});return function(i={}){let v="";for(const _ of u)v+=_(i);return v}}function un(n,e={}){const{decode:t=decodeURIComponent,loose:o=!0}=e,s=n instanceof ie?n:Se(n,e),a=Ae(o,s.delimiter),r=[],l=rt(s,r,e),c=r.map(u=>{if(t&&(u.modifier==="+"||u.modifier==="*")){const{prefix:f="",suffix:i="",separator:v=i+f}=u,_=new RegExp(a(v),"g");return h=>h.split(_).map(t)}return t||Le});return function(f){const i=l.exec(f);if(!i)return!1;const{0:v,index:_}=i,h=Object.create(null);for(let b=1;bo.replace(t,dn)}function at(n){return n.sensitive?"":"i"}function rt(n,e,t){const{trailing:o=!0,loose:s=!0,start:a=!0,end:r=!0,strict:l=!1}=t,c=at(t),u=Ae(s,n.delimiter),f=lt(n,u,e,c,l);let i=a?"^":"";return i+=f.join(""),o&&(i+=`(?:${u(n.delimiter)})?`),i+=r?"$":`(?=${oe(n.delimiter)}|$)`,new RegExp(i,c)}function lt(n,e,t,o,s){const a=`(?:(?!${oe(n.delimiter)}).)+?`;let r="",l=!0;return n.tokens.map((c,u)=>{if(typeof c=="string")return r=c,e(c);const{prefix:f="",suffix:i="",separator:v=i+f,modifier:_=""}=c,h=e(f),b=e(i);if(c.name){const C=c.pattern?`(?:${c.pattern})`:a,M=fn(C,c.name,o);if(l||(l=$e(M,f||r)),!l)throw new TypeError(`Ambiguous pattern for "${c.name}": ${ce}`);if(l=!s||$e(M,i),r="",t.push(c),_==="+"||_==="*"){const F=_==="*"?"?":"",B=e(v);if(!B)throw new TypeError(`Missing separator for "${c.name}": ${ce}`);if(l||(l=!s||$e(M,v)),!l)throw new TypeError(`Ambiguous pattern for "${c.name}" separator: ${ce}`);return l=!s,`(?:${h}(${C}(?:${B}${C})*)${b})${F}`}return`(?:${h}(${C})${b})${_}`}return`(?:${h}${b})${_}`})}function fn(n,e,t){try{return new RegExp(`^${n}$`,t)}catch(o){throw new TypeError(`Invalid pattern for "${e}": ${o.message}`)}}function $e(n,e){return e?!n.test(e):!1}function pn(n,e={}){const t=n instanceof ie?n:Se(n,e),o=[],s=rt(t,o,e);return Object.assign(s,{keys:o})}const mn={key:0,class:"no-redirect"},_n=["onClick"],vn=A({__name:"index",setup(n){const e=ge(),t=be(),{listenerRouteChange:o}=ke(),s=P([]),a=()=>{s.value=e.matched.filter(c=>{var u,f;return((u=c.meta)==null?void 0:u.title)&&((f=c.meta)==null?void 0:f.breadcrumb)!==!1})},r=c=>en(c)(e.params),l=c=>{const{redirect:u,path:f}=c;if(u){t.push(u);return}t.push(r(f))};return o(c=>{c.path.startsWith("/redirect/")||a()},!0),(c,u)=>{const f=y("el-breadcrumb-item"),i=y("el-breadcrumb");return d(),w(i,null,{default:g(()=>[(d(!0),$(H,null,Y(s.value,(v,_)=>(d(),w(f,{key:v.path},{default:g(()=>[v.redirect==="noRedirect"||_===s.value.length-1?(d(),$("span",mn,z(v.meta.title),1)):(d(),$("a",{key:1,onClick:de(h=>l(v),["prevent"])},z(v.meta.title),9,_n))]),_:2},1024))),128))]),_:1})}}}),hn=D(vn,[["__scopeId","data-v-5110efca"]]),he=n=>/^(https?:|mailto:|tel:)/.test(n),gn=["href"],bn=A({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,o)=>{const s=y("router-link");return m(he)(e.to)?(d(),$("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[me(t.$slots,"default")],8,gn)):(d(),w(s,{key:1,to:e.to},{default:g(()=>[me(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 Ue(n,e){for(var t="",o=0,s=-1,a=0,r,l=0;l<=n.length;++l){if(l2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",o=0):(t=t.slice(0,c),o=t.length-1-t.lastIndexOf("/")),s=l,a=0;continue}}else if(t.length===2||t.length===1){t="",o=0,s=l,a=0;continue}}e&&(t.length>0?t+="/..":t="..",o=2)}else t.length>0?t+="/"+n.slice(s+1,l):t=n.slice(s+1,l),o=l-s-1;s=l,a=0}else r===46&&a!==-1?++a:a=-1}return t}function yn(n,e){var t=e.dir||e.root,o=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+o:t+n+o:o}var ne={resolve:function(){for(var e="",t=!1,o,s=arguments.length-1;s>=-1&&!t;s--){var a;s>=0?a=arguments[s]:(o===void 0&&(o=process.cwd()),a=o),j(a),a.length!==0&&(e=a+"/"+e,t=a.charCodeAt(0)===47)}return e=Ue(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,o=e.charCodeAt(e.length-1)===47;return e=Ue(e,!t),e.length===0&&!t&&(e="."),e.length>0&&o&&(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=o:e+="/"+o)}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 o=1;ou){if(t.charCodeAt(r+i)===47)return t.slice(r+i+1);if(i===0)return t.slice(r+i)}else a>u&&(e.charCodeAt(o+i)===47?f=i:i===0&&(f=0));break}var v=e.charCodeAt(o+i),_=t.charCodeAt(r+i);if(v!==_)break;v===47&&(f=i)}var h="";for(i=o+f+1;i<=s;++i)(i===s||e.charCodeAt(i)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(r+f):(r+=f,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),o=t===47,s=-1,a=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),t===47){if(!a){s=r;break}}else a=!1;return s===-1?o?"/":".":o&&s===1?"//":e.slice(0,s)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');j(e);var o=0,s=-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 u=e.charCodeAt(r);if(u===47){if(!a){o=r+1;break}}else c===-1&&(a=!1,c=r+1),l>=0&&(u===t.charCodeAt(l)?--l===-1&&(s=r):(l=-1,s=c))}return o===s?s=c:s===-1&&(s=e.length),e.slice(o,s)}else{for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!a){o=r+1;break}}else s===-1&&(a=!1,s=r+1);return s===-1?"":e.slice(o,s)}},extname:function(e){j(e);for(var t=-1,o=0,s=-1,a=!0,r=0,l=e.length-1;l>=0;--l){var c=e.charCodeAt(l);if(c===47){if(!a){o=l+1;break}continue}s===-1&&(a=!1,s=l+1),c===46?t===-1?t=l:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||s===-1||r===0||r===1&&t===s-1&&t===o+1?"":e.slice(t,s)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return yn("/",e)},parse:function(e){j(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o=e.charCodeAt(0),s=o===47,a;s?(t.root="/",a=1):a=0;for(var r=-1,l=0,c=-1,u=!0,f=e.length-1,i=0;f>=a;--f){if(o=e.charCodeAt(f),o===47){if(!u){l=f+1;break}continue}c===-1&&(u=!1,c=f+1),o===46?r===-1?r=f:i!==1&&(i=1):r!==-1&&(i=-1)}return r===-1||c===-1||i===0||i===1&&r===c-1&&r===l+1?c!==-1&&(l===0&&s?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(l,c)):(l===0&&s?(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):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ne.posix=ne;var wn=ne;const ct=$t(wn),kn={key:2},xn=A({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(n){const e=n,t=V(()=>{var l;return(l=e.item.meta)==null?void 0:l.alwaysShow}),o=V(()=>{var l;return((l=e.item.children)==null?void 0:l.filter(c=>{var u;return!((u=c.meta)!=null&&u.hidden)}))??[]}),s=V(()=>o.value.length),a=V(()=>{const l=s.value;switch(!0){case l>1:return null;case l===1:return o.value[0];default:return{...e.item,path:""}}}),r=l=>{switch(!0){case he(l):return l;case he(e.basePath):return e.basePath;default:return ct.resolve(e.basePath,l)}};return(l,c)=>{const u=y("SvgIcon"),f=y("el-menu-item"),i=y("SidebarItem",!0),v=y("el-sub-menu");return!t.value&&a.value&&!a.value.children?(d(),$(H,{key:0},[a.value.meta?(d(),w(bn,{key:0,to:r(a.value.path)},{default:g(()=>[p(f,{index:r(a.value.path)},mt({default:g(()=>[a.value.meta.svgIcon?(d(),w(u,{key:0,name:a.value.meta.svgIcon},null,8,["name"])):a.value.meta.elIcon?(d(),w(pe(a.value.meta.elIcon),{key:1,class:"el-icon"})):R("",!0)]),_:2},[a.value.meta.title?{name:"title",fn:g(()=>[K(z(a.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):R("",!0)],64)):(d(),w(v,{key:1,index:r(e.item.path),teleported:""},{title:g(()=>{var _,h,b;return[(_=e.item.meta)!=null&&_.svgIcon?(d(),w(u,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(d(),w(pe(e.item.meta.elIcon),{key:1,class:"el-icon"})):R("",!0),(b=e.item.meta)!=null&&b.title?(d(),$("span",kn,z(e.item.meta.title),1)):R("",!0)]}),default:g(()=>[e.item.children?(d(!0),$(H,{key:0},Y(o.value,_=>(d(),w(i,{key:_.path,item:_,"base-path":r(_.path)},null,8,["item","base-path"]))),128)):R("",!0)]),_:1},8,["index"]))}}}),Sn=D(xn,[["__scopeId","data-v-9391d27c"]]),Cn="/v3-admin-vite/static/logo-BY3URNHQ.png",$n="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",Tn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",En=["src"],Vn=["src"],Mn=A({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:o}=le();return(s,a)=>{const r=y("router-link");return d(),$("div",{class:O(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":m(o)}])},[p(Je,{name:"layout-logo-fade"},{default:g(()=>[e.collapse?(d(),w(r,{key:"collapse",to:"/"},{default:g(()=>[x("img",{src:m(Cn),class:"layout-logo"},null,8,En)]),_:1})):(d(),w(r,{key:"expand",to:"/"},{default:g(()=>[x("img",{src:m(t)?m($n):m(Tn),class:"layout-logo-text"},null,8,Vn)]),_:1}))]),_:1})],2)}}}),De=D(Mn,[["__scopeId","data-v-52f1a9b3"]]),fe=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},Oe=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},In=()=>{wt(),location.reload()},Rn=A({__name:"index",setup(n){Ye(S=>({"4ded6dc0":q.value,"61d38dec":L.value,"15ffc82c":F.value,"05d7b6d4":B.value,"632f5fe7":M.value}));const e=fe("--v3-sidebar-menu-bg-color"),t=fe("--v3-sidebar-menu-text-color"),o=fe("--v3-sidebar-menu-active-text-color"),{isMobile:s}=re(),{isLeft:a,isTop:r}=le(),l=ge(),c=ae(),u=Ie(),f=G(),i=V(()=>{const{meta:{activeMenu:S},path:T}=l;return S||T}),v=V(()=>u.routes.filter(S=>{var T;return!((T=S.meta)!=null&&T.hidden)})),_=V(()=>!c.sidebar.opened),h=V(()=>a.value&&f.showLogo),b=V(()=>a.value?e:void 0),C=V(()=>a.value?t:void 0),M=V(()=>a.value?o:void 0),F=V(()=>r.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),B=V(()=>r.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),q=V(()=>r.value?"0px":"2px"),L=V(()=>r.value?"none":"block");return(S,T)=>{const W=y("el-menu"),k=y("el-scrollbar");return d(),$("div",{class:O({"has-logo":h.value})},[h.value?(d(),w(De,{key:0,collapse:_.value},null,8,["collapse"])):R("",!0),p(k,{"wrap-class":"scrollbar-wrapper"},{default:g(()=>[p(W,{"default-active":i.value,collapse:_.value&&!m(r),"background-color":b.value,"text-color":C.value,"active-text-color":M.value,"unique-opened":!0,"collapse-transition":!1,mode:m(r)&&!m(s)?"horizontal":"vertical"},{default:g(()=>[(d(!0),$(H,null,Y(v.value,I=>(d(),w(Sn,{key:I.path,item:I,"base-path":I.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),Pe=D(Rn,[["__scopeId","data-v-4b030497"]]),Ln={class:"card-header"},An={class:"card-title"},Dn={class:"card-time"},Pn={key:0,class:"card-avatar"},Fn=["src"],Nn={class:"card-body"},zn=A({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,o)=>{const s=y("el-empty"),a=y("el-tag"),r=y("el-card");return e.list.length===0?(d(),w(s,{key:0})):(d(!0),$(H,{key:1},Y(e.list,(l,c)=>(d(),w(r,{key:c,shadow:"never",class:"card-container"},{header:g(()=>[x("div",Ln,[x("div",null,[x("span",null,[x("span",An,z(l.title),1),l.extra?(d(),w(a,{key:0,type:l.status,effect:"plain",size:"small"},{default:g(()=>[K(z(l.extra),1)]),_:2},1032,["type"])):R("",!0)]),x("div",Dn,z(l.datetime),1)]),l.avatar?(d(),$("div",Pn,[x("img",{src:l.avatar,width:"34"},null,8,Fn)])):R("",!0)])]),default:g(()=>[x("div",Nn,z(l.description??"No Data"),1)]),_:2},1024))),128))}}}),Bn=D(zn,[["__scopeId","data-v-c0dacc5d"]]),Wn=[{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"}],Un=[{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"}],On=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Hn={class:"notify"},qn={class:"notify-history"},He=99,Xn=350,jn=A({__name:"index",setup(n){const e=V(()=>o.value.reduce((a,r)=>a+r.list.length,0)),t=P("通知"),o=P([{name:"通知",type:"primary",list:Wn},{name:"消息",type:"danger",list:Un},{name:"待办",type:"warning",list:On}]),s=()=>{ve.success(`跳转到${t.value}历史页面`)};return(a,r)=>{const l=y("el-icon"),c=y("el-tooltip"),u=y("el-badge"),f=y("el-scrollbar"),i=y("el-tab-pane"),v=y("el-tabs"),_=y("el-button"),h=y("el-popover");return d(),$("div",Hn,[p(h,{placement:"bottom",width:Xn,trigger:"click"},{reference:g(()=>[p(u,{value:e.value,max:He,hidden:e.value===0},{default:g(()=>[p(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:g(()=>[p(l,{size:20},{default:g(()=>[p(m(Tt))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:g(()=>[p(v,{modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=b=>t.value=b),class:"demo-tabs",stretch:""},{default:g(()=>[(d(!0),$(H,null,Y(o.value,(b,C)=>(d(),w(i,{name:b.name,key:C},{label:g(()=>[K(z(b.name)+" ",1),p(u,{value:b.list.length,max:He,type:b.type},null,8,["value","type"])]),default:g(()=>[p(f,{height:"400px"},{default:g(()=>[p(Bn,{list:b.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),x("div",qn,[p(_,{link:"",onClick:s},{default:g(()=>[K("查看"+z(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),Kn=D(jn,[["__scopeId","data-v-a5fd6355"]]),qe=[["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=qe[0],e={};for(const t of qe)if((t==null?void 0:t[1])in document){for(const[s,a]of t.entries())e[n[s]]=a;return e}return!1})(),Xe={change:J.fullscreenchange,error:J.fullscreenerror};let U={request(n=document.documentElement,e){return new Promise((t,o)=>{const s=()=>{U.off("change",s),t()};U.on("change",s);const a=n[J.requestFullscreen](e);a instanceof Promise&&a.then(s).catch(o)})},exit(){return new Promise((n,e)=>{if(!U.isFullscreen){n();return}const t=()=>{U.off("change",t),n()};U.on("change",t);const o=document[J.exitFullscreen]();o instanceof Promise&&o.then(t).catch(e)})},toggle(n,e){return U.isFullscreen?U.exit():U.request(n,e)},onchange(n){U.on("change",n)},onerror(n){U.on("error",n)},on(n,e){const t=Xe[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Xe[n];t&&document.removeEventListener(t,e,!1)},raw:J};Object.defineProperties(U,{isFullscreen:{get:()=>!!document[J.fullscreenElement]},element:{enumerable:!0,get:()=>document[J.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[J.fullscreenEnabled]}});J||(U={isEnabled:!1});const Z=U,Gn=A({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=P(!1),o=V(()=>t.value?e.exitTips:e.openTips),s=V(()=>t.value?"fullscreen-exit":"fullscreen"),a=()=>{const v=document.querySelector(e.element)||void 0;Z.isEnabled?Z.toggle(v):ve.warning("您的浏览器无法工作")},r=()=>{t.value=Z.isFullscreen,t.value||(document.body.className="")};_e(v=>{Z.isEnabled&&Z.on("change",r),v(()=>{Z.isEnabled&&Z.off("change",r)})});const l=P(!1),c=V(()=>l.value?"内容区复原":"内容区放大"),u=V(()=>l.value?"fullscreen-exit":"fullscreen"),f=()=>{l.value=!l.value,document.body.className=l.value?"content-large":""},i=()=>{l.value&&f(),document.body.className="content-full",a()};return(v,_)=>{const h=y("SvgIcon"),b=y("el-tooltip"),C=y("el-dropdown-item"),M=y("el-dropdown-menu"),F=y("el-dropdown");return d(),$("div",null,[v.content?(d(),w(F,{key:1,disabled:t.value},{dropdown:g(()=>[p(M,null,{default:g(()=>[p(C,{onClick:f},{default:g(()=>[K(z(c.value),1)]),_:1}),p(C,{onClick:i},{default:g(()=>[K("内容区全屏")]),_:1})]),_:1})]),default:g(()=>[p(h,{name:u.value},null,8,["name"])]),_:1},8,["disabled"])):(d(),w(b,{key:0,effect:"dark",content:o.value,placement:"bottom"},{default:g(()=>[p(h,{name:s.value,onClick:a},null,8,["name"])]),_:1},8,["content"]))])}}}),it=D(Gn,[["__scopeId","data-v-889fe0df"]]),Jn=["onMouseenter"],Yn={class:"result-item-title"},Zn=A({__name:"SearchResult",props:_t({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=Ze(n,"modelValue"),o=n,s=Qe(),a=P(0),r=f=>{const i=f.name===t.value;return{background:i?"var(--el-color-primary)":"",color:i?"#ffffff":""}},l=f=>{o.isPressUpOrDown||(t.value=f.name)},c=()=>{a.value=Number((window.innerHeight*.4).toFixed(1))},u=f=>{var h;const i=(h=s==null?void 0:s.proxy)==null?void 0:h.$refs[`resultItemRef${f}`];if(!i)return 0;const _=i[0].offsetTop+128;return _>a.value?_-a.value:0};return Ke(()=>{window.addEventListener("resize",c)}),Ee(()=>{c()}),Ge(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:u}),(f,i)=>{const v=y("SvgIcon");return d(),$("div",null,[(d(!0),$(H,null,Y(f.list,(_,h)=>{var b,C,M;return d(),$("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:et(r(_)),onMouseenter:F=>l(_)},[(b=_.meta)!=null&&b.svgIcon?(d(),w(v,{key:0,name:_.meta.svgIcon},null,8,["name"])):(C=_.meta)!=null&&C.elIcon?(d(),w(pe(_.meta.elIcon),{key:1,class:"el-icon"})):R("",!0),x("span",Yn,z((M=_.meta)==null?void 0:M.title),1),t.value&&t.value===_.name?(d(),w(v,{key:2,name:"keyboard-enter"})):R("",!0)],44,Jn)}),128))])}}}),Qn=D(Zn,[["__scopeId","data-v-8cd47626"]]),Fe=n=>(Ve("data-v-8dce46e8"),n=n(),Me(),n),eo={class:"search-footer"},to={class:"search-footer-item"},no=Fe(()=>x("span",null,"确认",-1)),oo={class:"search-footer-item"},so=Fe(()=>x("span",null,"切换",-1)),ao={class:"search-footer-item"},ro=Fe(()=>x("span",null,"关闭",-1)),lo={class:"search-footer-total"},co=A({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=re();return(o,s)=>{const a=y("SvgIcon");return d(),$("div",eo,[m(t)?R("",!0):(d(),$(H,{key:0},[x("span",to,[p(a,{name:"keyboard-enter"}),no]),x("span",oo,[p(a,{name:"keyboard-up"}),p(a,{name:"keyboard-down"}),so]),x("span",ao,[p(a,{name:"keyboard-esc"}),ro])],64)),x("span",lo,"共 "+z(e.total)+" 项",1)])}}}),io=D(co,[["__scopeId","data-v-8dce46e8"]]),uo=x("p",null,"搜索结果",-1),fo=A({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Ze(n,"modelValue"),t=be(),{isMobile:o}=re(),s=P(null),a=P(null),r=P(null),l=P(""),c=vt([]),u=P(void 0),f=P(!1),i=V(()=>o.value?"80vw":"40vw"),v=V(()=>Et(Ie().routes)),_=Vt(()=>{var T;const L=h(v.value);c.value=L.filter(W=>{var k,I;return l.value?(I=(k=W.meta)==null?void 0:k.title)==null?void 0:I.toLocaleLowerCase().includes(l.value.toLocaleLowerCase().trim()):!1});const S=(T=c.value)==null?void 0:T.length;u.value=S>0?c.value[0].name:void 0},500),h=(L,S=[])=>(L.forEach(T=>{S.push(T),T.children&&h(T.children,S)}),S),b=()=>{e.value=!1,setTimeout(()=>{l.value="",c.value=[]},200)},C=L=>{var T;if(!r.value)return;const S=r.value.getScrollTop(L);(T=a.value)==null||T.setScrollTop(S)},M=()=>{f.value=!0;const{length:L}=c.value;if(L===0)return;const S=c.value.findIndex(T=>T.name===u.value);if(S===0){const T=c.value[L-1].name;u.value===T&&L>1?(u.value=c.value[L-2].name,C(L-2)):(u.value=T,C(L-1))}else u.value=c.value[S-1].name,C(S-1)},F=()=>{f.value=!0;const{length:L}=c.value;if(L===0)return;const S=c.value.map(T=>T.name).lastIndexOf(u.value);if(S===L-1){const T=c.value[0].name;u.value===T&&L>1?(u.value=c.value[1].name,C(1)):(u.value=T,C(0))}else u.value=c.value[S+1].name,C(S+1)},B=()=>{var W;const{length:L}=c.value;if(L===0)return;const S=u.value,T=(W=c.value.find(k=>k.name===S))==null?void 0:W.path;if(T&&he(T)){window.open(T,"_blank","noopener, noreferrer");return}if(!S){ve.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:S})}catch{ve.error("该菜单有必填的动态参数,无法通过搜索进入");return}b()},q=()=>{f.value=!1};return(L,S)=>{const T=y("SvgIcon"),W=y("el-input"),k=y("el-empty"),I=y("el-dialog");return d(),w(I,{modelValue:e.value,"onUpdate:modelValue":S[2]||(S[2]=N=>e.value=N),onOpened:S[3]||(S[3]=N=>{var E;return(E=s.value)==null?void 0:E.focus()}),onClosed:S[4]||(S[4]=N=>{var E;return(E=s.value)==null?void 0:E.blur()}),onKeydown:[ue(M,["up"]),ue(F,["down"]),ue(B,["enter"])],onKeyup:ue(q,["up","down"]),"before-close":b,width:i.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:g(()=>[p(io,{total:c.value.length},null,8,["total"])]),default:g(()=>[p(W,{ref_key:"inputRef",ref:s,modelValue:l.value,"onUpdate:modelValue":S[0]||(S[0]=N=>l.value=N),onInput:m(_),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:g(()=>[p(T,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(d(),w(k,{key:0,description:"暂无搜索结果","image-size":100})):(d(),$(H,{key:1},[uo,p(m(ot),{ref_key:"scrollbarRef",ref:a,"max-height":"40vh",always:""},{default:g(()=>[p(Qn,{ref_key:"searchResultRef",ref:r,modelValue:u.value,"onUpdate:modelValue":S[1]||(S[1]=N=>u.value=N),list:c.value,isPressUpOrDown:f.value,onClick:B},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),po=A({__name:"index",setup(n){const e=P(!1),t=()=>{e.value=!0};return(o,s)=>{const a=y("SvgIcon"),r=y("el-tooltip");return d(),$("div",null,[p(r,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:g(()=>[p(a,{name:"search",onClick:t})]),_:1}),p(fo,{modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=l=>e.value=l)},null,8,["modelValue"])])}}}),mo=D(po,[["__scopeId","data-v-dc5accb4"]]),_o=n=>(Ve("data-v-1ee6dd91"),n=n(),Me(),n),vo={class:"navigation-bar"},ho={class:"right-menu"},go={class:"right-menu-avatar"},bo={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},yo={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},wo=_o(()=>x("span",{style:{display:"block"}},"退出登录",-1)),ko=A({__name:"index",setup(n){const{isMobile:e}=re(),{isTop:t}=le(),o=be(),s=ae(),a=kt(),r=G(),{showNotify:l,showThemeSwitch:c,showScreenfull:u,showSearchMenu:f}=se(r),i=()=>{s.toggleSidebar(!1)},v=()=>{a.logout(),o.push("/login")};return(_,h)=>{const b=y("el-avatar"),C=y("el-dropdown-item"),M=y("el-dropdown-menu"),F=y("el-dropdown");return d(),$("div",vo,[!m(t)||m(e)?(d(),w(Qt,{key:0,"is-active":m(s).sidebar.opened,class:"hamburger",onToggleClick:i},null,8,["is-active"])):R("",!0),!m(t)||m(e)?(d(),w(hn,{key:1,class:"breadcrumb"})):R("",!0),m(t)&&!m(e)?(d(),w(Pe,{key:2,class:"sidebar"})):R("",!0),x("div",ho,[m(f)?(d(),w(mo,{key:0,class:"right-menu-item"})):R("",!0),m(u)?(d(),w(it,{key:1,class:"right-menu-item"})):R("",!0),m(c)?(d(),w(Pt,{key:2,class:"right-menu-item"})):R("",!0),m(l)?(d(),w(Kn,{key:3,class:"right-menu-item"})):R("",!0),p(F,{class:"right-menu-item"},{dropdown:g(()=>[p(M,null,{default:g(()=>[x("a",bo,[p(C,null,{default:g(()=>[K("GitHub")]),_:1})]),x("a",yo,[p(C,null,{default:g(()=>[K("Gitee")]),_:1})]),p(C,{divided:"",onClick:v},{default:g(()=>[wo]),_:1})]),_:1})]),default:g(()=>[x("div",go,[p(b,{icon:m(Mt),size:30},null,8,["icon"]),x("span",null,z(m(a).username),1)])]),_:1})])])}}}),Ne=D(ko,[["__scopeId","data-v-1ee6dd91"]]),xo={class:"select-layout-mode"},So=A({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:o,setLayoutMode:s}=le();return(a,r)=>{const l=y("el-aside"),c=y("el-header"),u=y("el-main"),f=y("el-container"),i=y("el-tooltip");return d(),$("div",xo,[p(i,{content:"左侧模式"},{default:g(()=>[p(f,{class:O(["layout-mode left",{active:m(e)}]),onClick:r[0]||(r[0]=v=>m(s)(m(te).Left))},{default:g(()=>[p(l),p(f,null,{default:g(()=>[p(c),p(u)]),_:1})]),_:1},8,["class"])]),_:1}),p(i,{content:"顶部模式"},{default:g(()=>[p(f,{class:O(["layout-mode top",{active:m(t)}]),onClick:r[1]||(r[1]=v=>m(s)(m(te).Top))},{default:g(()=>[p(c),p(u)]),_:1},8,["class"])]),_:1}),p(i,{content:"混合模式"},{default:g(()=>[p(f,{class:O(["layout-mode left-top",{active:m(o)}]),onClick:r[2]||(r[2]=v=>m(s)(m(te).LeftTop))},{default:g(()=>[p(c),p(f,null,{default:g(()=>[p(l),p(u)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),Co=D(So,[["__scopeId","data-v-b859d856"]]),ut=n=>(Ve("data-v-107157f3"),n=n(),Me(),n),$o={class:"setting-container"},To=ut(()=>x("h4",null,"布局配置",-1)),Eo=ut(()=>x("h4",null,"功能配置",-1)),Vo={class:"setting-name"},Mo=A({__name:"index",setup(n){const{isLeft:e}=le(),t=G(),{showTagsView:o,showLogo:s,fixedHeader:a,showFooter:r,showNotify:l,showThemeSwitch:c,showScreenfull:u,showSearchMenu:f,cacheTagsView:i,showWatermark:v,showGreyMode:_,showColorWeakness:h}=se(t),b={显示标签栏:o,"显示 Logo":s,"固定 Header":a,"显示页脚 Footer":r,显示消息通知:l,显示切换主题按钮:c,显示全屏按钮:u,显示搜索按钮:f,是否缓存标签栏:i,开启系统水印:v,显示灰色模式:_,显示色弱模式:h};return _e(()=>{!e.value&&(a.value=!0)}),(C,M)=>{const F=y("el-divider"),B=y("el-switch"),q=y("el-button");return d(),$("div",$o,[To,p(Co),p(F),Eo,(d(),$(H,null,Y(b,(L,S,T)=>x("div",{class:"setting-item",key:T},[x("span",Vo,z(S),1),p(B,{modelValue:L.value,"onUpdate:modelValue":W=>L.value=W,disabled:!m(e)&&S==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),p(q,{type:"danger",icon:m(It),onClick:m(In)},{default:g(()=>[K("重 置")]),_:1},8,["icon","onClick"])])}}}),Io=D(Mo,[["__scopeId","data-v-107157f3"]]),Ro={class:"scroll-container"},Lo=200,Ao=A({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=ge(),o=G(),{listenerRouteChange:s}=ke(),a=P(),r=P();let l=0;const c=({scrollLeft:_})=>{l=_},u=({deltaY:_})=>{/^-/.test(_.toString())?i("left"):i("right")},f=()=>{const _=r.value.clientWidth,h=a.value.wrapRef.clientWidth,b=_-h-l;return{scrollbarContentRefWidth:_,scrollbarRefWidth:h,lastDistance:b}},i=(_,h=Lo)=>{let b=0;const{scrollbarContentRefWidth:C,scrollbarRefWidth:M,lastDistance:F}=f();M>C||(_==="left"?b=Math.max(0,l-h):b=Math.min(l+h,l+F),a.value.setScrollLeft(b))},v=()=>{const _=e.tagRefs;for(let h=0;h<_.length;h++)if(t.path===_[h].$props.to.path){const b=_[h].$el,C=b.offsetWidth,M=b.offsetLeft,{scrollbarRefWidth:F}=f();if(MB){const q=M-B;i("right",q);return}}};return s(()=>{ht(v)}),(_,h)=>{const b=y("el-icon");return d(),$("div",Ro,[p(b,{class:"arrow left",onClick:h[0]||(h[0]=C=>i("left"))},{default:g(()=>[p(m(Rt))]),_:1}),p(m(ot),{ref_key:"scrollbarRef",ref:a,onWheelPassive:u,onScroll:c},{default:g(()=>[x("div",{ref_key:"scrollbarContentRef",ref:r,class:"scrollbar-content"},[me(_.$slots,"default",{},void 0,!0)],512)]),_:3},512),p(b,{class:"arrow right",onClick:h[1]||(h[1]=C=>i("right"))},{default:g(()=>[p(m(Lt))]),_:1}),m(o).showScreenfull?(d(),w(it,{key:0,content:!0,class:"screenfull"})):R("",!0)])}}}),Do=D(Ao,[["__scopeId","data-v-5784e87c"]]),Po={class:"tags-view-container"},Fo=A({__name:"index",setup(n){const e=Qe(),t=be(),o=ge(),s=nt(),a=Ie(),{listenerRouteChange:r}=ke(),l=P([]),c=P(!1),u=P(0),f=P(0),i=P({});let v=[];const _=k=>k.path===o.path,h=k=>{var I;return(I=k.meta)==null?void 0:I.affix},b=(k,I="/")=>{const N=[];return k.forEach(E=>{if(h(E)){const X=ct.resolve(I,E.path);N.push({fullPath:X,path:X,name:E.name,meta:{...E.meta}})}if(E.children){const X=b(E.children,E.path);N.push(...X)}}),N},C=()=>{v=b(a.routes);for(const k of v)k.name&&s.addVisitedView(k)},M=k=>{k.name&&(s.addVisitedView(k),s.addCachedView(k))},F=k=>{s.delCachedView(k),t.replace({path:"/redirect"+k.path,query:k.query})},B=k=>{s.delVisitedView(k),s.delCachedView(k),_(k)&&S(s.visitedViews,k)},q=()=>{const k=i.value.fullPath;k!==o.path&&k!==void 0&&t.push(k),s.delOthersVisitedViews(i.value),s.delOthersCachedViews(i.value)},L=k=>{s.delAllVisitedViews(),s.delAllCachedViews(),!v.some(I=>I.path===o.path)&&S(s.visitedViews,k)},S=(k,I)=>{const N=k.slice(-1)[0],E=N==null?void 0:N.fullPath;E!==void 0?t.push(E):I.name==="Dashboard"?t.push({path:"/redirect"+I.path,query:I.query}):t.push("/")},T=(k,I)=>{const E=e.proxy.$el.getBoundingClientRect().left,Ce=e.proxy.$el.offsetWidth-105,Be=I.clientX-E+15;f.value=Be>Ce?Ce:Be,u.value=I.clientY,c.value=!0,i.value=k},W=()=>{c.value=!1};return je(c,k=>{k?document.body.addEventListener("click",W):document.body.removeEventListener("click",W)}),Ee(()=>{C(),r(async k=>{M(k)},!0)}),(k,I)=>{const N=y("el-icon");return d(),$("div",Po,[p(Do,{class:"tags-view-wrapper","tag-refs":l.value},{default:g(()=>[(d(!0),$(H,null,Y(m(s).visitedViews,E=>(d(),w(m(gt),{ref_for:!0,ref_key:"tagRefs",ref:l,key:E.path,class:O([{active:_(E)},"tags-view-item"]),to:{path:E.path,query:E.query},onMouseup:de(X=>!h(E)&&B(E),["middle"]),onContextmenu:de(X=>T(E,X),["prevent"])},{default:g(()=>{var X;return[K(z((X=E.meta)==null?void 0:X.title)+" ",1),h(E)?R("",!0):(d(),w(N,{key:0,size:12,onClick:de(Ce=>B(E),["prevent","stop"])},{default:g(()=>[p(m(At))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ye(x("ul",{class:"contextmenu",style:et({left:f.value+"px",top:u.value+"px"})},[x("li",{onClick:I[0]||(I[0]=E=>F(i.value))},"刷新"),h(i.value)?R("",!0):(d(),$("li",{key:0,onClick:I[1]||(I[1]=E=>B(i.value))},"关闭")),x("li",{onClick:q},"关闭其它"),x("li",{onClick:I[2]||(I[2]=E=>L(i.value))},"关闭所有")],4),[[we,c.value]])])}}}),ze=D(Fo,[["__scopeId","data-v-6f2c645d"]]),No=A({__name:"index",props:{buttonTop:{default:350}},setup(n){Ye(s=>({"79e23a76":t}));const t=n.buttonTop+"px",o=P(!1);return(s,a)=>{const r=y("el-icon"),l=y("el-drawer");return d(),$(H,null,[x("div",{class:"handle-button",onClick:a[0]||(a[0]=c=>o.value=!0)},[p(r,{size:24},{default:g(()=>[p(m(Dt))]),_:1})]),p(l,{modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=c=>o.value=c),size:"300px","with-header":!1},{default:g(()=>[me(s.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),zo=D(No,[["__scopeId","data-v-e47107a1"]]),Bo=A({__name:"LeftMode",setup(n){const{isMobile:e}=re(),t=ae(),o=G(),{showTagsView:s,fixedHeader:a}=se(o),r=V(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),l=()=>{t.closeSidebar(!1)};return(c,u)=>(d(),$("div",{class:O([r.value,"app-wrapper"])},[r.value.mobile&&r.value.openSidebar?(d(),$("div",{key:0,class:"drawer-bg",onClick:l})):R("",!0),p(m(Pe),{class:"sidebar-container"}),x("div",{class:O([{hasTagsView:m(s)},"main-container"])},[x("div",{class:O([{"fixed-header":m(a)},"layout-header"])},[p(m(Ne)),ye(p(m(ze),null,null,512),[[we,m(s)]])],2),p(m(Re),{class:"app-main"})],2)],2))}}),Wo=D(Bo,[["__scopeId","data-v-79281f6e"]]),Uo={class:"app-wrapper"},Oo={class:"fixed-header layout-header"},Ho={class:"content"},qo=A({__name:"TopMode",setup(n){const e=G(),{showTagsView:t,showLogo:o}=se(e);return(s,a)=>(d(),$("div",Uo,[x("div",Oo,[x("div",Ho,[m(o)?(d(),w(m(De),{key:0,collapse:!1,class:"logo"})):R("",!0),p(m(Ne),{class:"navigation-bar"})]),ye(p(m(ze),null,null,512),[[we,m(t)]])]),x("div",{class:O([{hasTagsView:m(t)},"main-container"])},[p(m(Re),{class:"app-main"})],2)]))}}),Xo=D(qo,[["__scopeId","data-v-da4d3997"]]),jo={class:"fixed-header layout-header"},Ko={class:"content"},Go=A({__name:"LeftTopMode",setup(n){const e=ae(),t=G(),{showTagsView:o,showLogo:s}=se(t),a=V(()=>({hideSidebar:!e.sidebar.opened}));return(r,l)=>(d(),$("div",{class:O([a.value,"app-wrapper"])},[x("div",jo,[m(s)?(d(),w(m(De),{key:0,collapse:!1,class:"logo"})):R("",!0),x("div",Ko,[p(m(Ne)),ye(p(m(ze),null,null,512),[[we,m(o)]])])]),x("div",{class:O([{hasTagsView:m(o)},"main-container"])},[p(m(Pe),{class:"sidebar-container"}),p(m(Re),{class:"app-main"})],2)],2))}}),Jo=D(Go,[["__scopeId","data-v-b05e214b"]]),Te="--v3-tagsview-height",Yo=A({__name:"index",setup(n){zt();const{setWatermark:e,clearWatermark:t}=xt(),{isMobile:o}=re(),{isLeft:s,isTop:a,isLeftTop:r}=le(),l=G(),{showSettings:c,showTagsView:u,showWatermark:f,showGreyMode:i,showColorWeakness:v}=se(l),_=V(()=>({showGreyMode:i.value,showColorWeakness:v.value})),h=fe(Te);return _e(()=>{u.value?Oe(Te,h):Oe(Te,"0px")}),_e(()=>{f.value?e("V3 Admin Vite"):t()}),(b,C)=>(d(),$("div",{class:O(_.value)},[m(s)||m(o)?(d(),w(Wo,{key:0})):m(a)?(d(),w(Xo,{key:1})):m(r)?(d(),w(Jo,{key:2})):R("",!0),m(c)?(d(),w(m(zo),{key:3},{default:g(()=>[p(m(Io))]),_:1})):R("",!0)],2))}}),ss=D(Yo,[["__scopeId","data-v-f8f963f5"]]);export{ss as default}; diff --git a/static/index-DjFl_znr.js b/static/index-H4Unuak7.js similarity index 83% rename from static/index-DjFl_znr.js rename to static/index-H4Unuak7.js index d7f275f8..5f75876b 100644 --- a/static/index-DjFl_znr.js +++ b/static/index-H4Unuak7.js @@ -1 +1 @@ -import{_ as n}from"./index-DspqxaJg.js";import{ah as e,p as c,q as a,U as o,O as s}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const _={},i={class:"app-container"};function p(m,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 x=n(_,[["render",p]]);export{x as default}; +import{_ as n}from"./index-CaT-hR_L.js";import{ah as e,p as c,q as a,U as o,O as s}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const _={},i={class:"app-container"};function p(m,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 x=n(_,[["render",p]]);export{x as default}; diff --git a/static/index-D_d8ymeu.js b/static/index-TrxhdDmY.js similarity index 79% rename from static/index-D_d8ymeu.js rename to static/index-TrxhdDmY.js index b79e4e33..c0dfde0d 100644 --- a/static/index-D_d8ymeu.js +++ b/static/index-TrxhdDmY.js @@ -1 +1 @@ -import{i as e}from"./index-DspqxaJg.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-CaT-hR_L.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-YSwtAHI_.js b/static/index-sjv9HnLC.js similarity index 91% rename from static/index-YSwtAHI_.js rename to static/index-sjv9HnLC.js index cd9c6463..f56a9b03 100644 --- a/static/index-YSwtAHI_.js +++ b/static/index-sjv9HnLC.js @@ -1 +1 @@ -import{_ as c,e as _}from"./index-DspqxaJg.js";import{ah as s,p as n,q as r,U as a,m as i,M as p,Q as d,u as m}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const f={},l={class:"app-container center"};function u(t,o){const e=s("el-empty");return n(),r("div",l,[a(e,{description:"欢迎来到 admin 角色专属首页"})])}const h=c(f,[["render",u],["__scopeId","data-v-7644c57f"]]),v={},x={class:"app-container center"};function y(t,o){const e=s("el-empty");return n(),r("div",x,[a(e,{description:"欢迎来到 editor 角色专属首页"})])}const $=c(v,[["render",y],["__scopeId","data-v-1ffd0ab5"]]),I=i({__name:"index",setup(t){const e=_().roles.includes("admin");return(k,B)=>(n(),p(d(m(e)?h:$)))}});export{I as default}; +import{_ as c,e as _}from"./index-CaT-hR_L.js";import{ah as s,p as n,q as r,U as a,m as i,M as p,Q as d,u as m}from"./vue-DFPEx4lP.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const f={},l={class:"app-container center"};function u(t,o){const e=s("el-empty");return n(),r("div",l,[a(e,{description:"欢迎来到 admin 角色专属首页"})])}const h=c(f,[["render",u],["__scopeId","data-v-7644c57f"]]),v={},x={class:"app-container center"};function y(t,o){const e=s("el-empty");return n(),r("div",x,[a(e,{description:"欢迎来到 editor 角色专属首页"})])}const $=c(v,[["render",y],["__scopeId","data-v-1ffd0ab5"]]),I=i({__name:"index",setup(t){const e=_().roles.includes("admin");return(k,B)=>(n(),p(d(m(e)?h:$)))}});export{I as default}; diff --git a/static/index.vue_vue_type_script_setup_true_lang-BDfz2ZZm.js b/static/index.vue_vue_type_script_setup_true_lang-CNoPbjzZ.js similarity index 94% rename from static/index.vue_vue_type_script_setup_true_lang-BDfz2ZZm.js rename to static/index.vue_vue_type_script_setup_true_lang-CNoPbjzZ.js index 12fb787f..cebf08a1 100644 --- a/static/index.vue_vue_type_script_setup_true_lang-BDfz2ZZm.js +++ b/static/index.vue_vue_type_script_setup_true_lang-CNoPbjzZ.js @@ -1 +1 @@ -import{h as g}from"./index-DspqxaJg.js";import{A as T}from"./element-BtM_n4iJ.js";import{m as v,ah as o,p as c,M as p,O as e,U as r,q as C,a7 as B,u as i,t as _,T as M,F as V}from"./vue-DFPEx4lP.js";const F=v({__name:"index",setup(b){const{themeList:u,activeThemeName:h,setTheme:f}=g(),w=({clientX:n,clientY:a},m)=>{const d=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",d+"px");const s=()=>{f(m)};document.startViewTransition?document.startViewTransition(s):s()};return(n,a)=>{const m=o("el-icon"),d=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(V,null,B(i(u),(l,k)=>(c(),p(t,{key:k,disabled:i(h)===l.name,onClick:y=>{w(y,l.name)}},{default:e(()=>[_("span",null,M(l.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[_("div",null,[r(d,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[r(m,{size:20},{default:e(()=>[r(i(T))]),_:1})]),_:1})])]),_:1})}}});export{F as _}; +import{h as g}from"./index-CaT-hR_L.js";import{A as T}from"./element-BtM_n4iJ.js";import{m as v,ah as o,p as c,M as p,O as e,U as r,q as C,a7 as B,u as i,t as _,T as M,F as V}from"./vue-DFPEx4lP.js";const F=v({__name:"index",setup(b){const{themeList:u,activeThemeName:h,setTheme:f}=g(),w=({clientX:n,clientY:a},m)=>{const d=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",d+"px");const s=()=>{f(m)};document.startViewTransition?document.startViewTransition(s):s()};return(n,a)=>{const m=o("el-icon"),d=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(V,null,B(i(u),(l,k)=>(c(),p(t,{key:k,disabled:i(h)===l.name,onClick:y=>{w(y,l.name)}},{default:e(()=>[_("span",null,M(l.title),1)]),_:2},1032,["disabled","onClick"]))),128))]),_:1})]),default:e(()=>[_("div",null,[r(d,{effect:"dark",content:"主题模式",placement:"bottom"},{default:e(()=>[r(m,{size:20},{default:e(()=>[r(i(T))]),_:1})]),_:1})])]),_:1})}}});export{F as _}; diff --git a/static/page-DQutWcGv.js b/static/page-BLV4kb07.js similarity index 76% rename from static/page-DQutWcGv.js rename to static/page-BLV4kb07.js index 1b94d7af..5366f119 100644 --- a/static/page-DQutWcGv.js +++ b/static/page-BLV4kb07.js @@ -1 +1 @@ -import{S as a}from"./SwitchRoles-fruJ6acc.js";import{m as o,ah as s,p as n,q as r,U as e,O as p,S as c}from"./vue-DFPEx4lP.js";import{_}from"./index-DspqxaJg.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const m={class:"app-container"},i=o({__name:"page",setup(l){return(d,f)=>{const t=s("el-tag");return n(),r("div",m,[e(a),e(t,{type:"warning",size:"large"},{default:p(()=>[c("当前页面只有 admin 角色可见,切换角色后将不能进入该页面")]),_:1})])}}}),w=_(i,[["__scopeId","data-v-70c1e438"]]);export{w as default}; +import{S as a}from"./SwitchRoles-JGfeZ0kU.js";import{m as o,ah as s,p as n,q as r,U as e,O as p,S as c}from"./vue-DFPEx4lP.js";import{_}from"./index-CaT-hR_L.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const m={class:"app-container"},i=o({__name:"page",setup(l){return(d,f)=>{const t=s("el-tag");return n(),r("div",m,[e(a),e(t,{type:"warning",size:"large"},{default:p(()=>[c("当前页面只有 admin 角色可见,切换角色后将不能进入该页面")]),_:1})])}}}),w=_(i,[["__scopeId","data-v-70c1e438"]]);export{w as default}; diff --git a/static/use-watermark-CPmKTvOr.js b/static/use-watermark-Br8Wn2FT.js similarity index 96% rename from static/use-watermark-CPmKTvOr.js rename to static/use-watermark-Br8Wn2FT.js index d3bcc5fe..bbb7a8e5 100644 --- a/static/use-watermark-CPmKTvOr.js +++ b/static/use-watermark-Br8Wn2FT.js @@ -1 +1 @@ -import{u as f}from"./useWatermark-Dw54A1c_.js";import{m as C,r as v,ah as m,p as y,q as b,t as i,U as t,O as a,aI as W,aJ as g,u as r,S as l}from"./vue-DFPEx4lP.js";import{_ as w}from"./index-DspqxaJg.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const x=n=>(W("data-v-dbeea05d"),n=n(),g(),n),I={class:"app-container"},$=x(()=>i("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),S=C({__name:"use-watermark",setup(n){const p=v(null),{setWatermark:c,clearWatermark:_}=f(p),{setWatermark:d,clearWatermark:k}=f();return(B,e)=>{const o=m("el-button"),u=m("el-button-group");return y(),b("div",I,[$,i("div",{ref_key:"localRef",ref:p,class:"local"},null,512),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[0]||(e[0]=s=>r(c)("局部水印",{color:"#409eff"}))},{default:a(()=>[l("创建局部水印")]),_:1}),t(o,{type:"warning",onClick:e[1]||(e[1]=s=>r(c)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(_)},{default:a(()=>[l("清除局部水印")]),_:1},8,["onClick"])]),_:1}),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[2]||(e[2]=s=>r(d)("全局水印",{color:"#409eff"}))},{default:a(()=>[l("创建全局水印")]),_:1}),t(o,{type:"warning",onClick:e[3]||(e[3]=s=>r(d)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(k)},{default:a(()=>[l("清除全局水印")]),_:1},8,["onClick"])]),_:1})])}}}),q=w(S,[["__scopeId","data-v-dbeea05d"]]);export{q as default}; +import{u as f}from"./useWatermark-Dw54A1c_.js";import{m as C,r as v,ah as m,p as y,q as b,t as i,U as t,O as a,aI as W,aJ as g,u as r,S as l}from"./vue-DFPEx4lP.js";import{_ as w}from"./index-CaT-hR_L.js";import"./element-BtM_n4iJ.js";import"./vxe-Rdi24jM-.js";const x=n=>(W("data-v-dbeea05d"),n=n(),g(),n),I={class:"app-container"},$=x(()=>i("h4",null," 该示例是演示:通过调用 hook,开启或关闭水印, 支持局部、全局、自定义样式(颜色、透明度、字体大小、字体、倾斜角度等),并自带防御(防删、防隐藏)和自适应功能 ",-1)),S=C({__name:"use-watermark",setup(n){const p=v(null),{setWatermark:c,clearWatermark:_}=f(p),{setWatermark:d,clearWatermark:k}=f();return(B,e)=>{const o=m("el-button"),u=m("el-button-group");return y(),b("div",I,[$,i("div",{ref_key:"localRef",ref:p,class:"local"},null,512),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[0]||(e[0]=s=>r(c)("局部水印",{color:"#409eff"}))},{default:a(()=>[l("创建局部水印")]),_:1}),t(o,{type:"warning",onClick:e[1]||(e[1]=s=>r(c)("没有防御功能的局部水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(_)},{default:a(()=>[l("清除局部水印")]),_:1},8,["onClick"])]),_:1}),t(u,null,{default:a(()=>[t(o,{type:"primary",onClick:e[2]||(e[2]=s=>r(d)("全局水印",{color:"#409eff"}))},{default:a(()=>[l("创建全局水印")]),_:1}),t(o,{type:"warning",onClick:e[3]||(e[3]=s=>r(d)("没有防御功能的全局水印",{color:"#e6a23c",defense:!1}))},{default:a(()=>[l(" 关闭防御功能 ")]),_:1}),t(o,{type:"danger",onClick:r(k)},{default:a(()=>[l("清除全局水印")]),_:1},8,["onClick"])]),_:1})])}}}),q=w(S,[["__scopeId","data-v-dbeea05d"]]);export{q as default};