From 308dc9717017d9ac241185144f8292dbfc48d8ed Mon Sep 17 00:00:00 2001 From: pany-ang <939630029@qq.com> Date: Mon, 22 Apr 2024 12:53:11 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=206f875?= =?UTF-8?q?5c47cdf546a166c2fd481e0db13718a8f69=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- static/{403-dCfewxD-.js => 403-mN_jjpbb.js} | 2 +- static/{404-CTYBsJ-w.js => 404-CcS5yolh.js} | 2 +- ...rrorPageLayout-C1bUmyU6.js => ErrorPageLayout-771_GbEU.js} | 2 +- static/{SwitchRoles-Din5Zafg.js => SwitchRoles-CVSdZDtk.js} | 2 +- static/{directive-uaXdYmui.js => directive-6bxpAqtB.js} | 2 +- static/{index-Ccp6vopz.js => index-6ChvBY-Z.js} | 2 +- static/{index-CfCJ7RZ_.js => index-B1nCzJdx.js} | 2 +- static/{index-zYH02cbt.js => index-B3CUqfN3.js} | 2 +- static/{index-DQLOBRdc.js => index-BNcNillM.js} | 2 +- static/{index-OPpVNdHm.js => index-BkEWbhUq.js} | 2 +- static/{index-BpQZlxFs.css => index-BrXOIlcI.css} | 2 +- static/{index-CyuM0oD9.js => index-CwyieoU9.js} | 2 +- static/{index-7q2QvBqu.js => index-D3Tt4rqX.js} | 2 +- static/{index-3-mGofWC.js => index-DBdOCPoM.js} | 4 ++-- static/{index-DI1XgnB2.js => index-DsGHvmyZ.js} | 2 +- static/{index-CgDqt8bv.js => index-jqfPGGJW.js} | 2 +- ... => index.vue_vue_type_script_setup_true_lang-LY9QwYga.js} | 2 +- static/{page-D1-25hnF.js => page-5Rp_P7tm.js} | 2 +- .../{use-watermark-Dw9dZStc.js => use-watermark-B_GYlypJ.js} | 2 +- 20 files changed, 21 insertions(+), 21 deletions(-) rename static/{403-dCfewxD-.js => 403-mN_jjpbb.js} (99%) rename static/{404-CTYBsJ-w.js => 404-CcS5yolh.js} (99%) rename static/{ErrorPageLayout-C1bUmyU6.js => ErrorPageLayout-771_GbEU.js} (87%) rename static/{SwitchRoles-Din5Zafg.js => SwitchRoles-CVSdZDtk.js} (92%) rename static/{directive-uaXdYmui.js => directive-6bxpAqtB.js} (94%) rename static/{index-Ccp6vopz.js => index-6ChvBY-Z.js} (79%) rename static/{index-CfCJ7RZ_.js => index-B1nCzJdx.js} (97%) rename static/{index-zYH02cbt.js => index-B3CUqfN3.js} (91%) rename static/{index-DQLOBRdc.js => index-BNcNillM.js} (54%) rename static/{index-OPpVNdHm.js => index-BkEWbhUq.js} (97%) rename static/{index-BpQZlxFs.css => index-BrXOIlcI.css} (99%) rename static/{index-CyuM0oD9.js => index-CwyieoU9.js} (92%) rename static/{index-7q2QvBqu.js => index-D3Tt4rqX.js} (96%) rename static/{index-3-mGofWC.js => index-DBdOCPoM.js} (97%) rename static/{index-DI1XgnB2.js => index-DsGHvmyZ.js} (91%) rename static/{index-CgDqt8bv.js => index-jqfPGGJW.js} (83%) rename static/{index.vue_vue_type_script_setup_true_lang-CgyoMCxv.js => index.vue_vue_type_script_setup_true_lang-LY9QwYga.js} (94%) rename static/{page-D1-25hnF.js => page-5Rp_P7tm.js} (76%) rename static/{use-watermark-Dw9dZStc.js => use-watermark-B_GYlypJ.js} (96%) diff --git a/index.html b/index.html index 7f75d0ee..c5f8727b 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ V3 Admin Vite - + diff --git a/static/403-dCfewxD-.js b/static/403-mN_jjpbb.js similarity index 99% rename from static/403-dCfewxD-.js rename to static/403-mN_jjpbb.js index 5117109a..bfe5872c 100644 --- a/static/403-dCfewxD-.js +++ b/static/403-mN_jjpbb.js @@ -1 +1 @@ -import{E as r}from"./ErrorPageLayout-C1bUmyU6.js";import{m as t,p as s,aL as l,l as i,M as h,O as n,U as c,u as p}from"./vue-Dve2Dm07.js";import"./index-3-mGofWC.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-771_GbEU.js";import{m as t,p as s,aL as l,l as i,M as h,O as n,U as c,u as p}from"./vue-Dve2Dm07.js";import"./index-DBdOCPoM.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-CTYBsJ-w.js b/static/404-CcS5yolh.js similarity index 99% rename from static/404-CTYBsJ-w.js rename to static/404-CcS5yolh.js index 11eba968..968ab8de 100644 --- a/static/404-CTYBsJ-w.js +++ b/static/404-CcS5yolh.js @@ -1 +1 @@ -import{E as c}from"./ErrorPageLayout-C1bUmyU6.js";import{m as a,p as h,aL as e,l as s,M as p,O as M,U as f,u as i}from"./vue-Dve2Dm07.js";import"./index-3-mGofWC.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-771_GbEU.js";import{m as a,p as h,aL as e,l as s,M as p,O as M,U as f,u as i}from"./vue-Dve2Dm07.js";import"./index-DBdOCPoM.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-C1bUmyU6.js b/static/ErrorPageLayout-771_GbEU.js similarity index 87% rename from static/ErrorPageLayout-C1bUmyU6.js rename to static/ErrorPageLayout-771_GbEU.js index bd4c1840..006e8c9e 100644 --- a/static/ErrorPageLayout-C1bUmyU6.js +++ b/static/ErrorPageLayout-771_GbEU.js @@ -1 +1 @@ -import{_ as n}from"./index-3-mGofWC.js";import{ah as e,m as c,p as _,q as d,H as l,U as t,O as o,S as p}from"./vue-Dve2Dm07.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-DBdOCPoM.js";import{ah as e,m as c,p as _,q as d,H as l,U as t,O as o,S as p}from"./vue-Dve2Dm07.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-Din5Zafg.js b/static/SwitchRoles-CVSdZDtk.js similarity index 92% rename from static/SwitchRoles-Din5Zafg.js rename to static/SwitchRoles-CVSdZDtk.js index 503b0776..b082dcfd 100644 --- a/static/SwitchRoles-Din5Zafg.js +++ b/static/SwitchRoles-CVSdZDtk.js @@ -1 +1 @@ -import{e as p,_}from"./index-3-mGofWC.js";import{l as u,r as m,b as h,ah as c,m as f,p as v,q as t,T as S,u as b,U as s,O as w,aH as I,aI as V}from"./vue-Dve2Dm07.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(b(o).roles),1),t("div",x,[R,s(d,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i)},{default:w(()=>[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-DBdOCPoM.js";import{l as u,r as m,b as h,ah as c,m as f,p as v,q as t,T as S,u as b,U as s,O as w,aH as I,aI as V}from"./vue-Dve2Dm07.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(b(o).roles),1),t("div",x,[R,s(d,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i)},{default:w(()=>[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-uaXdYmui.js b/static/directive-6bxpAqtB.js similarity index 94% rename from static/directive-uaXdYmui.js rename to static/directive-6bxpAqtB.js index fb7a7519..2998650e 100644 --- a/static/directive-uaXdYmui.js +++ b/static/directive-6bxpAqtB.js @@ -1 +1 @@ -import{j as k,_ as g}from"./index-3-mGofWC.js";import{S as b}from"./SwitchRoles-Din5Zafg.js";import{l as y,ah as l,ap as P,m as s,p as x,U as a,q as r,P as m,M as o,O as t,S as e,u as _,R as p}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-DBdOCPoM.js";import{S as b}from"./SwitchRoles-CVSdZDtk.js";import{l as y,ah as l,ap as P,m as s,p as x,U as a,q as r,P as m,M as o,O as t,S as e,u as _,R as p}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-Ccp6vopz.js b/static/index-6ChvBY-Z.js similarity index 79% rename from static/index-Ccp6vopz.js rename to static/index-6ChvBY-Z.js index dfd82be9..a3a198e8 100644 --- a/static/index-Ccp6vopz.js +++ b/static/index-6ChvBY-Z.js @@ -1 +1 @@ -import{i as e}from"./index-3-mGofWC.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-DBdOCPoM.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-CfCJ7RZ_.js b/static/index-B1nCzJdx.js similarity index 97% rename from static/index-CfCJ7RZ_.js rename to static/index-B1nCzJdx.js index 9aa207ab..70827e58 100644 --- a/static/index-CfCJ7RZ_.js +++ b/static/index-B1nCzJdx.js @@ -1 +1 @@ -import{g as D,d as T}from"./index-Ccp6vopz.js";import{U as s,l as P,r as y,Z as b,n as S,ah as x,m as $,p as M,O as p,S as _,K as k}from"./vue-Dve2Dm07.js";import{H as R,b as w}from"./element-D97nkBxs.js";import"./index-3-mGofWC.js";import"./vxe-D4242vD8.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])]}},F=O,q={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:F},{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",q,[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-6ChvBY-Z.js";import{U as s,l as P,r as y,Z as b,n as S,ah as x,m as $,p as M,O as p,S as _,K as k}from"./vue-Dve2Dm07.js";import{H as R,b as w}from"./element-D97nkBxs.js";import"./index-DBdOCPoM.js";import"./vxe-D4242vD8.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])]}},F=O,q={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:F},{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",q,[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-zYH02cbt.js b/static/index-B3CUqfN3.js similarity index 91% rename from static/index-zYH02cbt.js rename to static/index-B3CUqfN3.js index bd72f505..1bfa29b9 100644 --- a/static/index-zYH02cbt.js +++ b/static/index-B3CUqfN3.js @@ -1 +1 @@ -import{_ as s}from"./index-3-mGofWC.js";import{ah as e,m as _,p as i,q as p,S as o,U as t,O as n}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.js";const l={},m={class:"app-container"};function d(u,f){const r=e("el-link"),a=e("router-view"),c=e("el-card");return _(),i("div",m,[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",d],["__scopeId","data-v-6b5ec9cb"]]);export{k as default}; +import{_ as s}from"./index-DBdOCPoM.js";import{ah as e,m as _,p as i,q as p,S as o,U as t,O as n}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.js";const l={},m={class:"app-container"};function d(u,f){const r=e("el-link"),a=e("router-view"),c=e("el-card");return _(),i("div",m,[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",d],["__scopeId","data-v-6b5ec9cb"]]);export{k as default}; diff --git a/static/index-DQLOBRdc.js b/static/index-BNcNillM.js similarity index 54% rename from static/index-DQLOBRdc.js rename to static/index-BNcNillM.js index 9b317253..a38b8b8a 100644 --- a/static/index-DQLOBRdc.js +++ b/static/index-BNcNillM.js @@ -1 +1 @@ -import{aA as et,Z as tt,r as P,b as ze,E as Be,d as Se,z as We,e as M,l as R,m as u,p as E,T as z,u as f,ah as g,q as C,U as d,O as _,W as Oe,M as k,aB as nt,Q as ie,R as I,aC as me,aD as _e,F as q,a7 as j,a2 as re,H as ue,a9 as ot,S as G,I as U,aE as He,w as de,aF as st,aG as Ue,c as qe,J as Xe,aH as ke,aI as xe,s as at,a8 as le,aJ as ne,n as lt,aK as rt,P as ve,V as he}from"./vue-Dve2Dm07.js";import{g as ct,S as Ke,D as Z,s as Le,a as it,u as ge,b as J,L as ee,_ as D,c as Ge,r as ut,d as Ce,e as dt}from"./index-3-mGofWC.js";import{u as ft}from"./useWatermark-C5tfeNej.js";import{h as pt,j as mt,g as _t,k as vt,b as fe,l as ht,n as gt,o as Je,u as bt,r as yt,p as wt,q as St,s as kt,t as xt}from"./element-D97nkBxs.js";import{_ as Ct}from"./index.vue_vue_type_script_setup_true_lang-CgyoMCxv.js";import"./vxe-D4242vD8.js";function Tt(n){n?Le(it):Le(Ke)}const oe=et("app",()=>{const n=tt({opened:ct()!==Ke,withoutAnimation:!1}),e=P(Z.Desktop);return ze(()=>n.opened,o=>Tt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),Et=992,$t=()=>{const n=oe(),{listenerRouteChange:e}=ge(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const a=t();n.toggleDevice(a?Z.Mobile:Z.Desktop),a&&n.closeSidebar(!0)}};e(()=>{n.device===Z.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Be(()=>{window.addEventListener("resize",l)}),Se(()=>{t()&&(n.toggleDevice(Z.Mobile),n.closeSidebar(!0))}),We(()=>{window.removeEventListener("resize",l)})},Ye=oe(),Vt=M(()=>Ye.device===Z.Mobile),Mt=M(()=>Ye.device===Z.Desktop);function se(){return{isMobile:Vt,isDesktop:Mt}}const be=J(),At=M(()=>be.layoutMode===ee.Left),It=M(()=>be.layoutMode===ee.Top),Lt=M(()=>be.layoutMode===ee.LeftTop),Rt=n=>{be.layoutMode=n};function ae(){return{isLeft:At,isTop:It,isLeftTop:Lt,setLayoutMode:Rt}}const Dt={class:"layout-footer"},Pt=R({__name:"index",setup(n){const e="V3 Admin Vite";return(t,l)=>(u(),E("footer",Dt,"MIT © 2021-PRESENT "+z(f(e)),1))}}),Ft=D(Pt,[["__scopeId","data-v-18d14396"]]),Nt={class:"app-main"},zt={class:"app-scrollbar"},Bt=R({__name:"AppMain",setup(n){const e=Ge(),t=J();return(l,a)=>{const o=g("router-view"),s=g("el-backtop");return u(),E("section",Nt,[C("div",zt,[d(o,null,{default:_(({Component:r,route:c})=>[d(Oe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(u(),k(nt,{include:f(e).cachedViews},[(u(),k(ie(r),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),f(t).showFooter?(u(),k(Ft,{key:0})):I("",!0)]),d(s),d(s,{target:".app-scrollbar"})])}}}),Te=D(Bt,[["__scopeId","data-v-e96aa434"]]),Wt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=e,a=()=>{l("toggleClick")};return(o,s)=>{const r=g("el-icon");return u(),E("div",{onClick:a},[d(r,{size:20,class:"icon"},{default:_(()=>[t.isActive?(u(),k(f(pt),{key:0})):(u(),k(f(mt),{key:1}))]),_:1})])}}}),Ot=D(Wt,[["__scopeId","data-v-a21f53d4"]]);function Ht(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){a+=n[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:a}),t=o;continue}if(l==="("){var r=1,c="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o{a.value=e.matched.filter(c=>{var m,p;return((m=c.meta)==null?void 0:m.title)&&((p=c.meta)==null?void 0:p.breadcrumb)!==!1})},s=c=>qt(c)(e.params),r=c=>{const{redirect:m,path:p}=c;if(m){t.push(m);return}t.push(s(p))};return l(c=>{c.path.startsWith("/redirect/")||o()},!0),(c,m)=>{const p=g("el-breadcrumb-item"),i=g("el-breadcrumb");return u(),k(i,null,{default:_(()=>[(u(!0),E(q,null,j(a.value,(b,v)=>(u(),k(p,{key:b.path},{default:_(()=>[b.redirect==="noRedirect"||v===a.value.length-1?(u(),E("span",Jt,z(b.meta.title),1)):(u(),E("a",{key:1,onClick:re(h=>r(b),["prevent"])},z(b.meta.title),9,Yt))]),_:2},1024))),128))]),_:1})}}}),Zt=D(jt,[["__scopeId","data-v-5110efca"]]),pe=n=>/^(https?:|mailto:|tel:)/.test(n),Qt=["href"],en=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,l)=>{const a=g("router-link");return f(pe)(e.to)?(u(),E("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ue(t.$slots,"default")],8,Qt)):(u(),k(a,{key:1,to:e.to},{default:_(()=>[ue(t.$slots,"default")]),_:3},8,["to"]))}}});function K(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Re(n,e){for(var t="",l=0,a=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",l=0):(t=t.slice(0,c),l=t.length-1-t.lastIndexOf("/")),a=r,o=0;continue}}else if(t.length===2||t.length===1){t="",l=0,a=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",l=2)}else t.length>0?t+="/"+n.slice(a+1,r):t=n.slice(a+1,r),l=r-a-1;a=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function tn(n,e){var t=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+l:t+n+l:l}var te={resolve:function(){for(var e="",t=!1,l,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(l===void 0&&(l=process.cwd()),o=l),K(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Re(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(K(e),e.length===0)return".";var t=e.charCodeAt(0)===47,l=e.charCodeAt(e.length-1)===47;return e=Re(e,!t),e.length===0&&!t&&(e="."),e.length>0&&l&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return K(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=l:e+="/"+l)}return e===void 0?".":te.normalize(e)},relative:function(e,t){if(K(e),K(t),e===t||(e=te.resolve(e),t=te.resolve(t),e===t))return"";for(var l=1;lm){if(t.charCodeAt(s+i)===47)return t.slice(s+i+1);if(i===0)return t.slice(s+i)}else o>m&&(e.charCodeAt(l+i)===47?p=i:i===0&&(p=0));break}var b=e.charCodeAt(l+i),v=t.charCodeAt(s+i);if(b!==v)break;b===47&&(p=i)}var h="";for(i=l+p+1;i<=a;++i)(i===a||e.charCodeAt(i)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(s+p):(s+=p,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(K(e),e.length===0)return".";for(var t=e.charCodeAt(0),l=t===47,a=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){a=s;break}}else o=!1;return a===-1?l?"/":".":l&&a===1?"//":e.slice(0,a)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');K(e);var l=0,a=-1,o=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,c=-1;for(s=e.length-1;s>=0;--s){var m=e.charCodeAt(s);if(m===47){if(!o){l=s+1;break}}else c===-1&&(o=!1,c=s+1),r>=0&&(m===t.charCodeAt(r)?--r===-1&&(a=s):(r=-1,a=c))}return l===a?a=c:a===-1&&(a=e.length),e.slice(l,a)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){l=s+1;break}}else a===-1&&(o=!1,a=s+1);return a===-1?"":e.slice(l,a)}},extname:function(e){K(e);for(var t=-1,l=0,a=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c===47){if(!o){l=r+1;break}continue}a===-1&&(o=!1,a=r+1),c===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||a===-1||s===0||s===1&&t===a-1&&t===l+1?"":e.slice(t,a)},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 tn("/",e)},parse:function(e){K(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var l=e.charCodeAt(0),a=l===47,o;a?(t.root="/",o=1):o=0;for(var s=-1,r=0,c=-1,m=!0,p=e.length-1,i=0;p>=o;--p){if(l=e.charCodeAt(p),l===47){if(!m){r=p+1;break}continue}c===-1&&(m=!1,c=p+1),l===46?s===-1?s=p:i!==1&&(i=1):s!==-1&&(i=-1)}return s===-1||c===-1||i===0||i===1&&s===c-1&&s===r+1?c!==-1&&(r===0&&a?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(r,c)):(r===0&&a?(t.name=e.slice(1,s),t.base=e.slice(1,c)):(t.name=e.slice(r,s),t.base=e.slice(r,c)),t.ext=e.slice(s,c)),r>0?t.dir=e.slice(0,r-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};te.posix=te;var nn=te;const je=_t(nn),on={key:2},sn=R({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(n){const e=n,t=M(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),l=M(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(c=>{var m;return!((m=c.meta)!=null&&m.hidden)}))??[]}),a=M(()=>l.value.length),o=M(()=>{const r=a.value;switch(!0){case r>1:return null;case r===1:return l.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case pe(r):return r;case pe(e.basePath):return e.basePath;default:return je.resolve(e.basePath,r)}};return(r,c)=>{const m=g("SvgIcon"),p=g("el-menu-item"),i=g("SidebarItem",!0),b=g("el-sub-menu");return!t.value&&o.value&&!o.value.children?(u(),E(q,{key:0},[o.value.meta?(u(),k(en,{key:0,to:s(o.value.path)},{default:_(()=>[d(p,{index:s(o.value.path)},ot({default:_(()=>[o.value.meta.svgIcon?(u(),k(m,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(u(),k(ie(o.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:_(()=>[G(z(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(u(),k(b,{key:1,index:s(e.item.path),teleported:""},{title:_(()=>{var v,h,w;return[(v=e.item.meta)!=null&&v.svgIcon?(u(),k(m,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(u(),k(ie(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(w=e.item.meta)!=null&&w.title?(u(),E("span",on,z(e.item.meta.title),1)):I("",!0)]}),default:_(()=>[e.item.children?(u(!0),E(q,{key:0},j(l.value,v=>(u(),k(i,{key:v.path,item:v,"base-path":s(v.path)},null,8,["item","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))}}}),an=D(sn,[["__scopeId","data-v-ed98da72"]]),ln="/v3-admin-vite/static/logo-BY3URNHQ.png",rn="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",cn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",un=["src"],dn=["src"],fn=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:l}=ae();return(a,o)=>{const s=g("router-link");return u(),E("div",{class:U(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":f(l)}])},[d(Oe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(u(),k(s,{key:"collapse",to:"/"},{default:_(()=>[C("img",{src:f(ln),class:"layout-logo"},null,8,un)]),_:1})):(u(),k(s,{key:"expand",to:"/"},{default:_(()=>[C("img",{src:f(t)?f(rn):f(cn),class:"layout-logo-text"},null,8,dn)]),_:1}))]),_:1})],2)}}}),Ee=D(fn,[["__scopeId","data-v-52f1a9b3"]]),ce=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},De=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},pn=()=>{ut(),location.reload()},mn=R({__name:"index",setup(n){He(y=>({"4ded6dc0":O.value,"61d38dec":A.value,"15ffc82c":F.value,"05d7b6d4":B.value,"632f5fe7":L.value}));const e=ce("--v3-sidebar-menu-bg-color"),t=ce("--v3-sidebar-menu-text-color"),l=ce("--v3-sidebar-menu-active-text-color"),{isMobile:a}=se(),{isLeft:o,isTop:s}=ae(),r=me(),c=oe(),m=Ce(),p=J(),i=M(()=>{const{meta:{activeMenu:y},path:T}=r;return y||T}),b=M(()=>m.routes.filter(y=>{var T;return!((T=y.meta)!=null&&T.hidden)})),v=M(()=>!c.sidebar.opened),h=M(()=>o.value&&p.showLogo),w=M(()=>o.value?e:void 0),x=M(()=>o.value?t:void 0),L=M(()=>o.value?l:void 0),F=M(()=>s.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),B=M(()=>s.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),O=M(()=>s.value?"0px":"2px"),A=M(()=>s.value?"none":"block");return(y,T)=>{const W=g("el-menu"),S=g("el-scrollbar");return u(),E("div",{class:U({"has-logo":h.value})},[h.value?(u(),k(Ee,{key:0,collapse:v.value},null,8,["collapse"])):I("",!0),d(S,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[d(W,{"default-active":i.value,collapse:v.value&&!f(s),"background-color":w.value,"text-color":x.value,"active-text-color":L.value,"unique-opened":!0,"collapse-transition":!1,mode:f(s)&&!f(a)?"horizontal":"vertical"},{default:_(()=>[(u(!0),E(q,null,j(b.value,V=>(u(),k(an,{key:V.path,item:V,"base-path":V.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),$e=D(mn,[["__scopeId","data-v-4b030497"]]),_n={class:"card-header"},vn={class:"card-title"},hn={class:"card-time"},gn={key:0,class:"card-avatar"},bn=["src"],yn={class:"card-body"},wn=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,l)=>{const a=g("el-empty"),o=g("el-tag"),s=g("el-card");return e.list.length===0?(u(),k(a,{key:0})):(u(!0),E(q,{key:1},j(e.list,(r,c)=>(u(),k(s,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[C("div",_n,[C("div",null,[C("span",null,[C("span",vn,z(r.title),1),r.extra?(u(),k(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:_(()=>[G(z(r.extra),1)]),_:2},1032,["type"])):I("",!0)]),C("div",hn,z(r.datetime),1)]),r.avatar?(u(),E("div",gn,[C("img",{src:r.avatar,width:"34"},null,8,bn)])):I("",!0)])]),default:_(()=>[C("div",yn,z(r.description??"No Data"),1)]),_:2},1024))),128))}}}),Sn=D(wn,[["__scopeId","data-v-c0dacc5d"]]),kn=[{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"}],xn=[{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"}],Cn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Tn={class:"notify"},En={class:"notify-history"},Pe=99,$n=350,Vn=R({__name:"index",setup(n){const e=M(()=>l.value.reduce((o,s)=>o+s.list.length,0)),t=P("通知"),l=P([{name:"通知",type:"primary",list:kn},{name:"消息",type:"danger",list:xn},{name:"待办",type:"warning",list:Cn}]),a=()=>{fe.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=g("el-icon"),c=g("el-tooltip"),m=g("el-badge"),p=g("el-scrollbar"),i=g("el-tab-pane"),b=g("el-tabs"),v=g("el-button"),h=g("el-popover");return u(),E("div",Tn,[d(h,{placement:"bottom",width:$n,trigger:"click"},{reference:_(()=>[d(m,{value:e.value,max:Pe,hidden:e.value===0},{default:_(()=>[d(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[d(r,{size:20},{default:_(()=>[d(f(vt))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[d(b,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=w=>t.value=w),class:"demo-tabs",stretch:""},{default:_(()=>[(u(!0),E(q,null,j(l.value,(w,x)=>(u(),k(i,{name:w.name,key:x},{label:_(()=>[G(z(w.name)+" ",1),d(m,{value:w.list.length,max:Pe,type:w.type},null,8,["value","type"])]),default:_(()=>[d(p,{height:"400px"},{default:_(()=>[d(Sn,{list:w.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),C("div",En,[d(v,{link:"",onClick:a},{default:_(()=>[G("查看"+z(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),Mn=D(Vn,[["__scopeId","data-v-a5fd6355"]]),Fe=[["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"]],Y=(()=>{if(typeof document>"u")return!1;const n=Fe[0],e={};for(const t of Fe)if((t==null?void 0:t[1])in document){for(const[a,o]of t.entries())e[n[a]]=o;return e}return!1})(),Ne={change:Y.fullscreenchange,error:Y.fullscreenerror};let H={request(n=document.documentElement,e){return new Promise((t,l)=>{const a=()=>{H.off("change",a),t()};H.on("change",a);const o=n[Y.requestFullscreen](e);o instanceof Promise&&o.then(a).catch(l)})},exit(){return new Promise((n,e)=>{if(!H.isFullscreen){n();return}const t=()=>{H.off("change",t),n()};H.on("change",t);const l=document[Y.exitFullscreen]();l instanceof Promise&&l.then(t).catch(e)})},toggle(n,e){return H.isFullscreen?H.exit():H.request(n,e)},onchange(n){H.on("change",n)},onerror(n){H.on("error",n)},on(n,e){const t=Ne[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Ne[n];t&&document.removeEventListener(t,e,!1)},raw:Y};Object.defineProperties(H,{isFullscreen:{get:()=>!!document[Y.fullscreenElement]},element:{enumerable:!0,get:()=>document[Y.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Y.fullscreenEnabled]}});Y||(H={isEnabled:!1});const Q=H,An=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=P(!1),l=M(()=>t.value?e.exitTips:e.openTips),a=M(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const b=document.querySelector(e.element)||void 0;Q.isEnabled?Q.toggle(b):fe.warning("您的浏览器无法工作")},s=()=>{t.value=Q.isFullscreen,t.value||(document.body.className="")};de(b=>{Q.on("change",s),b(()=>{Q.isEnabled&&Q.off("change",s)})});const r=P(!1),c=M(()=>r.value?"内容区复原":"内容区放大"),m=M(()=>r.value?"fullscreen-exit":"fullscreen"),p=()=>{r.value=!r.value,document.body.className=r.value?"content-large":""},i=()=>{r.value&&p(),document.body.className="content-full",o()};return(b,v)=>{const h=g("SvgIcon"),w=g("el-tooltip"),x=g("el-dropdown-item"),L=g("el-dropdown-menu"),F=g("el-dropdown");return u(),E("div",null,[b.content?(u(),k(F,{key:1,disabled:t.value},{dropdown:_(()=>[d(L,null,{default:_(()=>[d(x,{onClick:p},{default:_(()=>[G(z(c.value),1)]),_:1}),d(x,{onClick:i},{default:_(()=>[G("内容区全屏")]),_:1})]),_:1})]),default:_(()=>[d(h,{name:m.value},null,8,["name"])]),_:1},8,["disabled"])):(u(),k(w,{key:0,effect:"dark",content:l.value,placement:"bottom"},{default:_(()=>[d(h,{name:a.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}}),Ze=D(An,[["__scopeId","data-v-a995be53"]]),In=["onMouseenter"],Ln={class:"result-item-title"},Rn=R({__name:"SearchResult",props:st({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=Ue(n,"modelValue"),l=n,a=qe(),o=P(0),s=p=>{const i=p.name===t.value;return{background:i?"var(--el-color-primary)":"",color:i?"#ffffff":""}},r=p=>{l.isPressUpOrDown||(t.value=p.name)},c=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},m=p=>{var h;const i=(h=a==null?void 0:a.proxy)==null?void 0:h.$refs[`resultItemRef${p}`];if(!i)return 0;const v=i[0].offsetTop+128;return v>o.value?v-o.value:0};return Be(()=>{window.addEventListener("resize",c)}),Se(()=>{c()}),We(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:m}),(p,i)=>{const b=g("SvgIcon");return u(),E("div",null,[(u(!0),E(q,null,j(p.list,(v,h)=>{var w,x,L;return u(),E("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Xe(s(v)),onMouseenter:F=>r(v)},[(w=v.meta)!=null&&w.svgIcon?(u(),k(b,{key:0,name:v.meta.svgIcon},null,8,["name"])):(x=v.meta)!=null&&x.elIcon?(u(),k(ie(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),C("span",Ln,z((L=v.meta)==null?void 0:L.title),1),t.value&&t.value===v.name?(u(),k(b,{key:2,name:"keyboard-enter"})):I("",!0)],44,In)}),128))])}}}),Dn=D(Rn,[["__scopeId","data-v-8cd47626"]]),Ve=n=>(ke("data-v-8dce46e8"),n=n(),xe(),n),Pn={class:"search-footer"},Fn={class:"search-footer-item"},Nn=Ve(()=>C("span",null,"确认",-1)),zn={class:"search-footer-item"},Bn=Ve(()=>C("span",null,"切换",-1)),Wn={class:"search-footer-item"},On=Ve(()=>C("span",null,"关闭",-1)),Hn={class:"search-footer-total"},Un=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=se();return(l,a)=>{const o=g("SvgIcon");return u(),E("div",Pn,[f(t)?I("",!0):(u(),E(q,{key:0},[C("span",Fn,[d(o,{name:"keyboard-enter"}),Nn]),C("span",zn,[d(o,{name:"keyboard-up"}),d(o,{name:"keyboard-down"}),Bn]),C("span",Wn,[d(o,{name:"keyboard-esc"}),On])],64)),C("span",Hn,"共 "+z(e.total)+" 项",1)])}}}),qn=D(Un,[["__scopeId","data-v-8dce46e8"]]),Xn=C("p",null,"搜索结果",-1),Kn=R({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Ue(n,"modelValue"),t=_e(),{isMobile:l}=se(),a=P(null),o=P(null),s=P(null),r=P(""),c=at([]),m=P(void 0),p=P(!1),i=M(()=>l.value?"80vw":"40vw"),b=M(()=>ht(Ce().routes)),v=gt(()=>{var T;const A=h(b.value);c.value=A.filter(W=>{var S,V;return r.value?(V=(S=W.meta)==null?void 0:S.title)==null?void 0:V.toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim()):!1});const y=(T=c.value)==null?void 0:T.length;m.value=y>0?c.value[0].name:void 0},500),h=(A,y=[])=>(A.forEach(T=>{y.push(T),T.children&&h(T.children,y)}),y),w=()=>{e.value=!1,setTimeout(()=>{r.value="",c.value=[]},200)},x=A=>{var T;if(!s.value)return;const y=s.value.getScrollTop(A);(T=o.value)==null||T.setScrollTop(y)},L=()=>{p.value=!0;const{length:A}=c.value;if(A===0)return;const y=c.value.findIndex(T=>T.name===m.value);if(y===0){const T=c.value[A-1].name;m.value===T&&A>1?(m.value=c.value[A-2].name,x(A-2)):(m.value=T,x(A-1))}else m.value=c.value[y-1].name,x(y-1)},F=()=>{p.value=!0;const{length:A}=c.value;if(A===0)return;const y=c.value.map(T=>T.name).lastIndexOf(m.value);if(y===A-1){const T=c.value[0].name;m.value===T&&A>1?(m.value=c.value[1].name,x(1)):(m.value=T,x(0))}else m.value=c.value[y+1].name,x(y+1)},B=()=>{var W;const{length:A}=c.value;if(A===0)return;const y=m.value,T=(W=c.value.find(S=>S.name===y))==null?void 0:W.path;if(T&&pe(T)){window.open(T,"_blank","noopener, noreferrer");return}if(!y){fe.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:y})}catch{fe.error("该菜单有必填的动态参数,无法通过搜索进入");return}w()},O=()=>{p.value=!1};return(A,y)=>{const T=g("SvgIcon"),W=g("el-input"),S=g("el-empty"),V=g("el-dialog");return u(),k(V,{modelValue:e.value,"onUpdate:modelValue":y[2]||(y[2]=N=>e.value=N),onOpened:y[3]||(y[3]=N=>{var $;return($=a.value)==null?void 0:$.focus()}),onClosed:y[4]||(y[4]=N=>{var $;return($=a.value)==null?void 0:$.blur()}),onKeydown:[le(L,["up"]),le(F,["down"]),le(B,["enter"])],onKeyup:le(O,["up","down"]),"before-close":w,width:i.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[d(qn,{total:c.value.length},null,8,["total"])]),default:_(()=>[d(W,{ref_key:"inputRef",ref:a,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=N=>r.value=N),onInput:f(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[d(T,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(u(),k(S,{key:0,description:"暂无搜索结果","image-size":100})):(u(),E(q,{key:1},[Xn,d(f(Je),{ref_key:"scrollbarRef",ref:o,"max-height":"40vh",always:""},{default:_(()=>[d(Dn,{ref_key:"searchResultRef",ref:s,modelValue:m.value,"onUpdate:modelValue":y[1]||(y[1]=N=>m.value=N),list:c.value,isPressUpOrDown:p.value,onClick:B},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),Gn=R({__name:"index",setup(n){const e=P(!1),t=()=>{e.value=!0};return(l,a)=>{const o=g("SvgIcon"),s=g("el-tooltip");return u(),E("div",null,[d(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[d(o,{name:"search",onClick:t})]),_:1}),d(Kn,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])])}}}),Jn=D(Gn,[["__scopeId","data-v-dc5accb4"]]),Yn=n=>(ke("data-v-1ee6dd91"),n=n(),xe(),n),jn={class:"navigation-bar"},Zn={class:"right-menu"},Qn={class:"right-menu-avatar"},eo={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},to={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},no=Yn(()=>C("span",{style:{display:"block"}},"退出登录",-1)),oo=R({__name:"index",setup(n){const{isMobile:e}=se(),{isTop:t}=ae(),l=_e(),a=oe(),o=dt(),s=J(),{showNotify:r,showThemeSwitch:c,showScreenfull:m,showSearchMenu:p}=ne(s),i=()=>{a.toggleSidebar(!1)},b=()=>{o.logout(),l.push("/login")};return(v,h)=>{const w=g("el-avatar"),x=g("el-dropdown-item"),L=g("el-dropdown-menu"),F=g("el-dropdown");return u(),E("div",jn,[!f(t)||f(e)?(u(),k(Ot,{key:0,"is-active":f(a).sidebar.opened,class:"hamburger",onToggleClick:i},null,8,["is-active"])):I("",!0),!f(t)||f(e)?(u(),k(Zt,{key:1,class:"breadcrumb"})):I("",!0),f(t)&&!f(e)?(u(),k($e,{key:2,class:"sidebar"})):I("",!0),C("div",Zn,[f(p)?(u(),k(Jn,{key:0,class:"right-menu-item"})):I("",!0),f(m)?(u(),k(Ze,{key:1,class:"right-menu-item"})):I("",!0),f(c)?(u(),k(Ct,{key:2,class:"right-menu-item"})):I("",!0),f(r)?(u(),k(Mn,{key:3,class:"right-menu-item"})):I("",!0),d(F,{class:"right-menu-item"},{dropdown:_(()=>[d(L,null,{default:_(()=>[C("a",eo,[d(x,null,{default:_(()=>[G("GitHub")]),_:1})]),C("a",to,[d(x,null,{default:_(()=>[G("Gitee")]),_:1})]),d(x,{divided:"",onClick:b},{default:_(()=>[no]),_:1})]),_:1})]),default:_(()=>[C("div",Qn,[d(w,{icon:f(bt),size:30},null,8,["icon"]),C("span",null,z(f(o).username),1)])]),_:1})])])}}}),Me=D(oo,[["__scopeId","data-v-1ee6dd91"]]),so={class:"select-layout-mode"},ao=R({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:l,setLayoutMode:a}=ae();return(o,s)=>{const r=g("el-aside"),c=g("el-header"),m=g("el-main"),p=g("el-container"),i=g("el-tooltip");return u(),E("div",so,[d(i,{content:"左侧模式"},{default:_(()=>[d(p,{class:U(["layout-mode left",{active:f(e)}]),onClick:s[0]||(s[0]=b=>f(a)(f(ee).Left))},{default:_(()=>[d(r),d(p,null,{default:_(()=>[d(c),d(m)]),_:1})]),_:1},8,["class"])]),_:1}),d(i,{content:"顶部模式"},{default:_(()=>[d(p,{class:U(["layout-mode top",{active:f(t)}]),onClick:s[1]||(s[1]=b=>f(a)(f(ee).Top))},{default:_(()=>[d(c),d(m)]),_:1},8,["class"])]),_:1}),d(i,{content:"混合模式"},{default:_(()=>[d(p,{class:U(["layout-mode left-top",{active:f(l)}]),onClick:s[2]||(s[2]=b=>f(a)(f(ee).LeftTop))},{default:_(()=>[d(c),d(p,null,{default:_(()=>[d(r),d(m)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),lo=D(ao,[["__scopeId","data-v-b859d856"]]),Qe=n=>(ke("data-v-107157f3"),n=n(),xe(),n),ro={class:"setting-container"},co=Qe(()=>C("h4",null,"布局配置",-1)),io=Qe(()=>C("h4",null,"功能配置",-1)),uo={class:"setting-name"},fo=R({__name:"index",setup(n){const{isLeft:e}=ae(),t=J(),{showTagsView:l,showLogo:a,fixedHeader:o,showFooter:s,showNotify:r,showThemeSwitch:c,showScreenfull:m,showSearchMenu:p,cacheTagsView:i,showWatermark:b,showGreyMode:v,showColorWeakness:h}=ne(t),w={显示标签栏:l,"显示 Logo":a,"固定 Header":o,"显示页脚 Footer":s,显示消息通知:r,显示切换主题按钮:c,显示全屏按钮:m,显示搜索按钮:p,是否缓存标签栏:i,开启系统水印:b,显示灰色模式:v,显示色弱模式:h};return de(()=>{!e.value&&(o.value=!0)}),(x,L)=>{const F=g("el-divider"),B=g("el-switch"),O=g("el-button");return u(),E("div",ro,[co,d(lo),d(F),io,(u(),E(q,null,j(w,(A,y,T)=>C("div",{class:"setting-item",key:T},[C("span",uo,z(y),1),d(B,{modelValue:A.value,"onUpdate:modelValue":W=>A.value=W,disabled:!f(e)&&y==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),d(O,{type:"danger",icon:f(yt),onClick:f(pn)},{default:_(()=>[G("重 置")]),_:1},8,["icon","onClick"])])}}}),po=D(fo,[["__scopeId","data-v-107157f3"]]),mo={class:"scroll-container"},_o=200,vo=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=me(),l=J(),{listenerRouteChange:a}=ge(),o=P(),s=P();let r=0;const c=({scrollLeft:v})=>{r=v},m=({deltaY:v})=>{/^-/.test(v.toString())?i("left"):i("right")},p=()=>{const v=s.value.clientWidth,h=o.value.wrapRef.clientWidth,w=v-h-r;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:w}},i=(v,h=_o)=>{let w=0;const{scrollbarContentRefWidth:x,scrollbarRefWidth:L,lastDistance:F}=p();L>x||(v==="left"?w=Math.max(0,r-h):w=Math.min(r+h,r+F),o.value.setScrollLeft(w))},b=()=>{const v=e.tagRefs;for(let h=0;hB){const O=L-B;i("right",O);return}}};return a(()=>{lt(b)}),(v,h)=>{const w=g("el-icon");return u(),E("div",mo,[d(w,{class:"arrow left",onClick:h[0]||(h[0]=x=>i("left"))},{default:_(()=>[d(f(wt))]),_:1}),d(f(Je),{ref_key:"scrollbarRef",ref:o,onWheelPassive:m,onScroll:c},{default:_(()=>[C("div",{ref_key:"scrollbarContentRef",ref:s,class:"scrollbar-content"},[ue(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),d(w,{class:"arrow right",onClick:h[1]||(h[1]=x=>i("right"))},{default:_(()=>[d(f(St))]),_:1}),f(l).showScreenfull?(u(),k(Ze,{key:0,content:!0,class:"screenfull"})):I("",!0)])}}}),ho=D(vo,[["__scopeId","data-v-5784e87c"]]),go={class:"tags-view-container"},bo=R({__name:"index",setup(n){const e=qe(),t=_e(),l=me(),a=Ge(),o=Ce(),{listenerRouteChange:s}=ge(),r=P([]),c=P(!1),m=P(0),p=P(0),i=P({});let b=[];const v=S=>S.path===l.path,h=S=>{var V;return(V=S.meta)==null?void 0:V.affix},w=(S,V="/")=>{const N=[];return S.forEach($=>{if(h($)){const X=je.resolve(V,$.path);N.push({fullPath:X,path:X,name:$.name,meta:{...$.meta}})}if($.children){const X=w($.children,$.path);N.push(...X)}}),N},x=()=>{b=w(o.routes);for(const S of b)S.name&&a.addVisitedView(S)},L=S=>{S.name&&(a.addVisitedView(S),a.addCachedView(S))},F=S=>{a.delCachedView(S),t.replace({path:"/redirect"+S.path,query:S.query})},B=S=>{a.delVisitedView(S),a.delCachedView(S),v(S)&&y(a.visitedViews,S)},O=()=>{const S=i.value.fullPath;S!==l.path&&S!==void 0&&t.push(S),a.delOthersVisitedViews(i.value),a.delOthersCachedViews(i.value)},A=S=>{a.delAllVisitedViews(),a.delAllCachedViews(),!b.some(V=>V.path===l.path)&&y(a.visitedViews,S)},y=(S,V)=>{const N=S.slice(-1)[0],$=N==null?void 0:N.fullPath;$!==void 0?t.push($):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},T=(S,V)=>{const $=e.proxy.$el.getBoundingClientRect().left,ye=e.proxy.$el.offsetWidth-105,Ie=V.clientX-$+15;p.value=Ie>ye?ye:Ie,m.value=V.clientY,c.value=!0,i.value=S},W=()=>{c.value=!1};return ze(c,S=>{S?document.body.addEventListener("click",W):document.body.removeEventListener("click",W)}),Se(()=>{x(),s(async S=>{L(S)},!0)}),(S,V)=>{const N=g("el-icon");return u(),E("div",go,[d(ho,{class:"tags-view-wrapper","tag-refs":r.value},{default:_(()=>[(u(!0),E(q,null,j(f(a).visitedViews,$=>(u(),k(f(rt),{ref_for:!0,ref_key:"tagRefs",ref:r,key:$.path,class:U([{active:v($)},"tags-view-item"]),to:{path:$.path,query:$.query},onMouseup:re(X=>!h($)&&B($),["middle"]),onContextmenu:re(X=>T($,X),["prevent"])},{default:_(()=>{var X;return[G(z((X=$.meta)==null?void 0:X.title)+" ",1),h($)?I("",!0):(u(),k(N,{key:0,size:12,onClick:re(ye=>B($),["prevent","stop"])},{default:_(()=>[d(f(kt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ve(C("ul",{class:"contextmenu",style:Xe({left:p.value+"px",top:m.value+"px"})},[C("li",{onClick:V[0]||(V[0]=$=>F(i.value))},"刷新"),h(i.value)?I("",!0):(u(),E("li",{key:0,onClick:V[1]||(V[1]=$=>B(i.value))},"关闭")),C("li",{onClick:O},"关闭其它"),C("li",{onClick:V[2]||(V[2]=$=>A(i.value))},"关闭所有")],4),[[he,c.value]])])}}}),Ae=D(bo,[["__scopeId","data-v-6f2c645d"]]),yo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){He(a=>({"79e23a76":t}));const t=n.buttonTop+"px",l=P(!1);return(a,o)=>{const s=g("el-icon"),r=g("el-drawer");return u(),E(q,null,[C("div",{class:"handle-button",onClick:o[0]||(o[0]=c=>l.value=!0)},[d(s,{size:24},{default:_(()=>[d(f(xt))]),_:1})]),d(r,{modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=c=>l.value=c),size:"300px","with-header":!1},{default:_(()=>[ue(a.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),wo=D(yo,[["__scopeId","data-v-e47107a1"]]),So=R({__name:"LeftMode",setup(n){const{isMobile:e}=se(),t=oe(),l=J(),{showTagsView:a,fixedHeader:o}=ne(l),s=M(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),r=()=>{t.closeSidebar(!1)};return(c,m)=>(u(),E("div",{class:U([s.value,"app-wrapper"])},[s.value.mobile&&s.value.openSidebar?(u(),E("div",{key:0,class:"drawer-bg",onClick:r})):I("",!0),d(f($e),{class:"sidebar-container"}),C("div",{class:U([{hasTagsView:f(a)},"main-container"])},[C("div",{class:U([{"fixed-header":f(o)},"layout-header"])},[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(a)]])],2),d(f(Te),{class:"app-main"})],2)],2))}}),ko=D(So,[["__scopeId","data-v-79281f6e"]]),xo={class:"app-wrapper"},Co={class:"fixed-header layout-header"},To={class:"content"},Eo=R({__name:"TopMode",setup(n){const e=J(),{showTagsView:t,showLogo:l}=ne(e);return(a,o)=>(u(),E("div",xo,[C("div",Co,[C("div",To,[f(l)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),d(f(Me),{class:"navigation-bar"})]),ve(d(f(Ae),null,null,512),[[he,f(t)]])]),C("div",{class:U([{hasTagsView:f(t)},"main-container"])},[d(f(Te),{class:"app-main"})],2)]))}}),$o=D(Eo,[["__scopeId","data-v-da4d3997"]]),Vo={class:"fixed-header layout-header"},Mo={class:"content"},Ao=R({__name:"LeftTopMode",setup(n){const e=oe(),t=J(),{showTagsView:l,showLogo:a}=ne(t),o=M(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(u(),E("div",{class:U([o.value,"app-wrapper"])},[C("div",Vo,[f(a)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),C("div",Mo,[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(l)]])])]),C("div",{class:U([{hasTagsView:f(l)},"main-container"])},[d(f($e),{class:"sidebar-container"}),d(f(Te),{class:"app-main"})],2)],2))}}),Io=D(Ao,[["__scopeId","data-v-b05e214b"]]),we="--v3-tagsview-height",Lo=R({__name:"index",setup(n){$t();const{setWatermark:e,clearWatermark:t}=ft(),{isMobile:l}=se(),{isLeft:a,isTop:o,isLeftTop:s}=ae(),r=J(),{showSettings:c,showTagsView:m,showWatermark:p,showGreyMode:i,showColorWeakness:b}=ne(r),v=M(()=>({showGreyMode:i.value,showColorWeakness:b.value})),h=ce(we);return de(()=>{m.value?De(we,h):De(we,"0px")}),de(()=>{p.value?e("V3 Admin Vite"):t()}),(w,x)=>(u(),E("div",{class:U(v.value)},[f(a)||f(l)?(u(),k(ko,{key:0})):f(o)?(u(),k($o,{key:1})):f(s)?(u(),k(Io,{key:2})):I("",!0),f(c)?(u(),k(f(wo),{key:3},{default:_(()=>[d(f(po))]),_:1})):I("",!0)],2))}}),Bo=D(Lo,[["__scopeId","data-v-f8f963f5"]]);export{Bo as default}; +import{aA as et,Z as tt,r as P,b as ze,E as Be,d as Se,z as We,e as M,l as R,m as u,p as E,T as z,u as f,ah as g,q as C,U as d,O as _,W as Oe,M as k,aB as nt,Q as ie,R as I,aC as me,aD as _e,F as q,a7 as j,a2 as re,H as ue,a9 as ot,S as G,I as U,aE as He,w as de,aF as st,aG as Ue,c as qe,J as Xe,aH as ke,aI as xe,s as at,a8 as le,aJ as ne,n as lt,aK as rt,P as ve,V as he}from"./vue-Dve2Dm07.js";import{g as ct,S as Ke,D as Q,s as Le,a as it,u as ge,b as J,L as ee,_ as D,c as Ge,r as ut,d as Ce,e as dt}from"./index-DBdOCPoM.js";import{u as ft}from"./useWatermark-C5tfeNej.js";import{h as pt,j as mt,g as _t,k as vt,b as fe,l as ht,n as gt,o as Je,u as bt,r as yt,p as wt,q as St,s as kt,t as xt}from"./element-D97nkBxs.js";import{_ as Ct}from"./index.vue_vue_type_script_setup_true_lang-LY9QwYga.js";import"./vxe-D4242vD8.js";function Tt(n){n?Le(it):Le(Ke)}const oe=et("app",()=>{const n=tt({opened:ct()!==Ke,withoutAnimation:!1}),e=P(Q.Desktop);return ze(()=>n.opened,o=>Tt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),Et=992,$t=()=>{const n=oe(),{listenerRouteChange:e}=ge(),t=()=>document.body.getBoundingClientRect().width-1{if(!document.hidden){const a=t();n.toggleDevice(a?Q.Mobile:Q.Desktop),a&&n.closeSidebar(!0)}};e(()=>{n.device===Q.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),Be(()=>{window.addEventListener("resize",l)}),Se(()=>{t()&&(n.toggleDevice(Q.Mobile),n.closeSidebar(!0))}),We(()=>{window.removeEventListener("resize",l)})},Ye=oe(),Vt=M(()=>Ye.device===Q.Mobile),Mt=M(()=>Ye.device===Q.Desktop);function se(){return{isMobile:Vt,isDesktop:Mt}}const be=J(),At=M(()=>be.layoutMode===ee.Left),It=M(()=>be.layoutMode===ee.Top),Lt=M(()=>be.layoutMode===ee.LeftTop),Rt=n=>{be.layoutMode=n};function ae(){return{isLeft:At,isTop:It,isLeftTop:Lt,setLayoutMode:Rt}}const Dt={class:"layout-footer"},Pt=R({__name:"index",setup(n){const e="V3 Admin Vite";return(t,l)=>(u(),E("footer",Dt,"MIT © 2021-PRESENT "+z(f(e)),1))}}),Ft=D(Pt,[["__scopeId","data-v-18d14396"]]),Nt={class:"app-main"},zt={class:"app-scrollbar"},Bt=R({__name:"AppMain",setup(n){const e=Ge(),t=J();return(l,a)=>{const o=g("router-view"),s=g("el-backtop");return u(),E("section",Nt,[C("div",zt,[d(o,null,{default:_(({Component:r,route:c})=>[d(Oe,{name:"el-fade-in",mode:"out-in"},{default:_(()=>[(u(),k(nt,{include:f(e).cachedViews},[(u(),k(ie(r),{key:c.path,class:"app-container-grow"}))],1032,["include"]))]),_:2},1024)]),_:1}),f(t).showFooter?(u(),k(Ft,{key:0})):I("",!0)]),d(s),d(s,{target:".app-scrollbar"})])}}}),Te=D(Bt,[["__scopeId","data-v-e96aa434"]]),Wt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=e,a=()=>{l("toggleClick")};return(o,s)=>{const r=g("el-icon");return u(),E("div",{onClick:a},[d(r,{size:20,class:"icon"},{default:_(()=>[t.isActive?(u(),k(f(pt),{key:0})):(u(),k(f(mt),{key:1}))]),_:1})])}}}),Ot=D(Wt,[["__scopeId","data-v-a21f53d4"]]);function Ht(n){for(var e=[],t=0;t=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){a+=n[o++];continue}break}if(!a)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:a}),t=o;continue}if(l==="("){var r=1,c="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o{a.value=e.matched.filter(c=>{var m,p;return((m=c.meta)==null?void 0:m.title)&&((p=c.meta)==null?void 0:p.breadcrumb)!==!1})},s=c=>qt(c)(e.params),r=c=>{const{redirect:m,path:p}=c;if(m){t.push(m);return}t.push(s(p))};return l(c=>{c.path.startsWith("/redirect/")||o()},!0),(c,m)=>{const p=g("el-breadcrumb-item"),i=g("el-breadcrumb");return u(),k(i,null,{default:_(()=>[(u(!0),E(q,null,j(a.value,(b,v)=>(u(),k(p,{key:b.path},{default:_(()=>[b.redirect==="noRedirect"||v===a.value.length-1?(u(),E("span",Jt,z(b.meta.title),1)):(u(),E("a",{key:1,onClick:re(h=>r(b),["prevent"])},z(b.meta.title),9,Yt))]),_:2},1024))),128))]),_:1})}}}),Zt=D(jt,[["__scopeId","data-v-5110efca"]]),pe=n=>/^(https?:|mailto:|tel:)/.test(n),Qt=["href"],en=R({__name:"SidebarItemLink",props:{to:{}},setup(n){const e=n;return(t,l)=>{const a=g("router-link");return f(pe)(e.to)?(u(),E("a",{key:0,href:e.to,target:"_blank",rel:"noopener"},[ue(t.$slots,"default")],8,Qt)):(u(),k(a,{key:1,to:e.to},{default:_(()=>[ue(t.$slots,"default")]),_:3},8,["to"]))}}});function K(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function Re(n,e){for(var t="",l=0,a=-1,o=0,s,r=0;r<=n.length;++r){if(r2){var c=t.lastIndexOf("/");if(c!==t.length-1){c===-1?(t="",l=0):(t=t.slice(0,c),l=t.length-1-t.lastIndexOf("/")),a=r,o=0;continue}}else if(t.length===2||t.length===1){t="",l=0,a=r,o=0;continue}}e&&(t.length>0?t+="/..":t="..",l=2)}else t.length>0?t+="/"+n.slice(a+1,r):t=n.slice(a+1,r),l=r-a-1;a=r,o=0}else s===46&&o!==-1?++o:o=-1}return t}function tn(n,e){var t=e.dir||e.root,l=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+l:t+n+l:l}var te={resolve:function(){for(var e="",t=!1,l,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(l===void 0&&(l=process.cwd()),o=l),K(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=Re(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(K(e),e.length===0)return".";var t=e.charCodeAt(0)===47,l=e.charCodeAt(e.length-1)===47;return e=Re(e,!t),e.length===0&&!t&&(e="."),e.length>0&&l&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return K(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=l:e+="/"+l)}return e===void 0?".":te.normalize(e)},relative:function(e,t){if(K(e),K(t),e===t||(e=te.resolve(e),t=te.resolve(t),e===t))return"";for(var l=1;lm){if(t.charCodeAt(s+i)===47)return t.slice(s+i+1);if(i===0)return t.slice(s+i)}else o>m&&(e.charCodeAt(l+i)===47?p=i:i===0&&(p=0));break}var b=e.charCodeAt(l+i),v=t.charCodeAt(s+i);if(b!==v)break;b===47&&(p=i)}var h="";for(i=l+p+1;i<=a;++i)(i===a||e.charCodeAt(i)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(s+p):(s+=p,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(K(e),e.length===0)return".";for(var t=e.charCodeAt(0),l=t===47,a=-1,o=!0,s=e.length-1;s>=1;--s)if(t=e.charCodeAt(s),t===47){if(!o){a=s;break}}else o=!1;return a===-1?l?"/":".":l&&a===1?"//":e.slice(0,a)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');K(e);var l=0,a=-1,o=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var r=t.length-1,c=-1;for(s=e.length-1;s>=0;--s){var m=e.charCodeAt(s);if(m===47){if(!o){l=s+1;break}}else c===-1&&(o=!1,c=s+1),r>=0&&(m===t.charCodeAt(r)?--r===-1&&(a=s):(r=-1,a=c))}return l===a?a=c:a===-1&&(a=e.length),e.slice(l,a)}else{for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===47){if(!o){l=s+1;break}}else a===-1&&(o=!1,a=s+1);return a===-1?"":e.slice(l,a)}},extname:function(e){K(e);for(var t=-1,l=0,a=-1,o=!0,s=0,r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(c===47){if(!o){l=r+1;break}continue}a===-1&&(o=!1,a=r+1),c===46?t===-1?t=r:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||a===-1||s===0||s===1&&t===a-1&&t===l+1?"":e.slice(t,a)},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 tn("/",e)},parse:function(e){K(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var l=e.charCodeAt(0),a=l===47,o;a?(t.root="/",o=1):o=0;for(var s=-1,r=0,c=-1,m=!0,p=e.length-1,i=0;p>=o;--p){if(l=e.charCodeAt(p),l===47){if(!m){r=p+1;break}continue}c===-1&&(m=!1,c=p+1),l===46?s===-1?s=p:i!==1&&(i=1):s!==-1&&(i=-1)}return s===-1||c===-1||i===0||i===1&&s===c-1&&s===r+1?c!==-1&&(r===0&&a?t.base=t.name=e.slice(1,c):t.base=t.name=e.slice(r,c)):(r===0&&a?(t.name=e.slice(1,s),t.base=e.slice(1,c)):(t.name=e.slice(r,s),t.base=e.slice(r,c)),t.ext=e.slice(s,c)),r>0?t.dir=e.slice(0,r-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};te.posix=te;var nn=te;const je=_t(nn),on={key:2},sn=R({__name:"SidebarItem",props:{item:{},basePath:{default:""}},setup(n){const e=n,t=M(()=>{var r;return(r=e.item.meta)==null?void 0:r.alwaysShow}),l=M(()=>{var r;return((r=e.item.children)==null?void 0:r.filter(c=>{var m;return!((m=c.meta)!=null&&m.hidden)}))??[]}),a=M(()=>l.value.length),o=M(()=>{const r=a.value;switch(!0){case r>1:return null;case r===1:return l.value[0];default:return{...e.item,path:""}}}),s=r=>{switch(!0){case pe(r):return r;case pe(e.basePath):return e.basePath;default:return je.resolve(e.basePath,r)}};return(r,c)=>{const m=g("SvgIcon"),p=g("el-menu-item"),i=g("SidebarItem",!0),b=g("el-sub-menu");return!t.value&&o.value&&!o.value.children?(u(),E(q,{key:0},[o.value.meta?(u(),k(en,{key:0,to:s(o.value.path)},{default:_(()=>[d(p,{index:s(o.value.path)},ot({default:_(()=>[o.value.meta.svgIcon?(u(),k(m,{key:0,name:o.value.meta.svgIcon},null,8,["name"])):o.value.meta.elIcon?(u(),k(ie(o.value.meta.elIcon),{key:1,class:"el-icon"})):I("",!0)]),_:2},[o.value.meta.title?{name:"title",fn:_(()=>[G(z(o.value.meta.title),1)]),key:"0"}:void 0]),1032,["index"])]),_:1},8,["to"])):I("",!0)],64)):(u(),k(b,{key:1,index:s(e.item.path),teleported:""},{title:_(()=>{var v,h,w;return[(v=e.item.meta)!=null&&v.svgIcon?(u(),k(m,{key:0,name:e.item.meta.svgIcon},null,8,["name"])):(h=e.item.meta)!=null&&h.elIcon?(u(),k(ie(e.item.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),(w=e.item.meta)!=null&&w.title?(u(),E("span",on,z(e.item.meta.title),1)):I("",!0)]}),default:_(()=>[e.item.children?(u(!0),E(q,{key:0},j(l.value,v=>(u(),k(i,{key:v.path,item:v,"base-path":s(v.path)},null,8,["item","base-path"]))),128)):I("",!0)]),_:1},8,["index"]))}}}),an=D(sn,[["__scopeId","data-v-ed98da72"]]),ln="/v3-admin-vite/static/logo-BY3URNHQ.png",rn="/v3-admin-vite/static/logo-text-1-CHuEm79x.png",cn="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",un=["src"],dn=["src"],fn=R({__name:"index",props:{collapse:{type:Boolean,default:!0}},setup(n){const e=n,{isLeft:t,isTop:l}=ae();return(a,o)=>{const s=g("router-link");return u(),E("div",{class:U(["layout-logo-container",{collapse:e.collapse,"layout-mode-top":f(l)}])},[d(Oe,{name:"layout-logo-fade"},{default:_(()=>[e.collapse?(u(),k(s,{key:"collapse",to:"/"},{default:_(()=>[C("img",{src:f(ln),class:"layout-logo"},null,8,un)]),_:1})):(u(),k(s,{key:"expand",to:"/"},{default:_(()=>[C("img",{src:f(t)?f(rn):f(cn),class:"layout-logo-text"},null,8,dn)]),_:1}))]),_:1})],2)}}}),Ee=D(fn,[["__scopeId","data-v-52f1a9b3"]]),ce=n=>{let e="";try{e=getComputedStyle(document.documentElement).getPropertyValue(n)}catch(t){console.error(t)}return e},De=(n,e)=>{try{document.documentElement.style.setProperty(n,e)}catch(t){console.error(t)}},pn=()=>{ut(),location.reload()},mn=R({__name:"index",setup(n){He(y=>({"4ded6dc0":O.value,"61d38dec":A.value,"15ffc82c":F.value,"05d7b6d4":B.value,"632f5fe7":L.value}));const e=ce("--v3-sidebar-menu-bg-color"),t=ce("--v3-sidebar-menu-text-color"),l=ce("--v3-sidebar-menu-active-text-color"),{isMobile:a}=se(),{isLeft:o,isTop:s}=ae(),r=me(),c=oe(),m=Ce(),p=J(),i=M(()=>{const{meta:{activeMenu:y},path:T}=r;return y||T}),b=M(()=>m.routes.filter(y=>{var T;return!((T=y.meta)!=null&&T.hidden)})),v=M(()=>!c.sidebar.opened),h=M(()=>o.value&&p.showLogo),w=M(()=>o.value?e:void 0),x=M(()=>o.value?t:void 0),L=M(()=>o.value?l:void 0),F=M(()=>s.value?"var(--v3-navigationbar-height)":"var(--v3-sidebar-menu-item-height)"),B=M(()=>s.value?"transparent":"var(--v3-sidebar-menu-hover-bg-color)"),O=M(()=>s.value?"0px":"2px"),A=M(()=>s.value?"none":"block");return(y,T)=>{const W=g("el-menu"),S=g("el-scrollbar");return u(),E("div",{class:U({"has-logo":h.value})},[h.value?(u(),k(Ee,{key:0,collapse:v.value},null,8,["collapse"])):I("",!0),d(S,{"wrap-class":"scrollbar-wrapper"},{default:_(()=>[d(W,{"default-active":i.value,collapse:v.value&&!f(s),"background-color":w.value,"text-color":x.value,"active-text-color":L.value,"unique-opened":!0,"collapse-transition":!1,mode:f(s)&&!f(a)?"horizontal":"vertical"},{default:_(()=>[(u(!0),E(q,null,j(b.value,V=>(u(),k(an,{key:V.path,item:V,"base-path":V.path},null,8,["item","base-path"]))),128))]),_:1},8,["default-active","collapse","background-color","text-color","active-text-color","mode"])]),_:1})],2)}}}),$e=D(mn,[["__scopeId","data-v-4b030497"]]),_n={class:"card-header"},vn={class:"card-title"},hn={class:"card-time"},gn={key:0,class:"card-avatar"},bn=["src"],yn={class:"card-body"},wn=R({__name:"NotifyList",props:{list:{}},setup(n){const e=n;return(t,l)=>{const a=g("el-empty"),o=g("el-tag"),s=g("el-card");return e.list.length===0?(u(),k(a,{key:0})):(u(!0),E(q,{key:1},j(e.list,(r,c)=>(u(),k(s,{key:c,shadow:"never",class:"card-container"},{header:_(()=>[C("div",_n,[C("div",null,[C("span",null,[C("span",vn,z(r.title),1),r.extra?(u(),k(o,{key:0,type:r.status,effect:"plain",size:"small"},{default:_(()=>[G(z(r.extra),1)]),_:2},1032,["type"])):I("",!0)]),C("div",hn,z(r.datetime),1)]),r.avatar?(u(),E("div",gn,[C("img",{src:r.avatar,width:"34"},null,8,bn)])):I("",!0)])]),default:_(()=>[C("div",yn,z(r.description??"No Data"),1)]),_:2},1024))),128))}}}),Sn=D(wn,[["__scopeId","data-v-c0dacc5d"]]),kn=[{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"}],xn=[{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"}],Cn=[{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"未开始",status:"info"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"进行中",status:"primary"},{title:"任务名称",description:"这家伙很懒,什么都没留下",extra:"已超时",status:"danger"}],Tn={class:"notify"},En={class:"notify-history"},Pe=99,$n=350,Vn=R({__name:"index",setup(n){const e=M(()=>l.value.reduce((o,s)=>o+s.list.length,0)),t=P("通知"),l=P([{name:"通知",type:"primary",list:kn},{name:"消息",type:"danger",list:xn},{name:"待办",type:"warning",list:Cn}]),a=()=>{fe.success(`跳转到${t.value}历史页面`)};return(o,s)=>{const r=g("el-icon"),c=g("el-tooltip"),m=g("el-badge"),p=g("el-scrollbar"),i=g("el-tab-pane"),b=g("el-tabs"),v=g("el-button"),h=g("el-popover");return u(),E("div",Tn,[d(h,{placement:"bottom",width:$n,trigger:"click"},{reference:_(()=>[d(m,{value:e.value,max:Pe,hidden:e.value===0},{default:_(()=>[d(c,{effect:"dark",content:"消息通知",placement:"bottom"},{default:_(()=>[d(r,{size:20},{default:_(()=>[d(f(vt))]),_:1})]),_:1})]),_:1},8,["value","hidden"])]),default:_(()=>[d(b,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=w=>t.value=w),class:"demo-tabs",stretch:""},{default:_(()=>[(u(!0),E(q,null,j(l.value,(w,x)=>(u(),k(i,{name:w.name,key:x},{label:_(()=>[G(z(w.name)+" ",1),d(m,{value:w.list.length,max:Pe,type:w.type},null,8,["value","type"])]),default:_(()=>[d(p,{height:"400px"},{default:_(()=>[d(Sn,{list:w.list},null,8,["list"])]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"]),C("div",En,[d(v,{link:"",onClick:a},{default:_(()=>[G("查看"+z(t.value)+"历史",1)]),_:1})])]),_:1})])}}}),Mn=D(Vn,[["__scopeId","data-v-a5fd6355"]]),Fe=[["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"]],Y=(()=>{if(typeof document>"u")return!1;const n=Fe[0],e={};for(const t of Fe)if((t==null?void 0:t[1])in document){for(const[a,o]of t.entries())e[n[a]]=o;return e}return!1})(),Ne={change:Y.fullscreenchange,error:Y.fullscreenerror};let H={request(n=document.documentElement,e){return new Promise((t,l)=>{const a=()=>{H.off("change",a),t()};H.on("change",a);const o=n[Y.requestFullscreen](e);o instanceof Promise&&o.then(a).catch(l)})},exit(){return new Promise((n,e)=>{if(!H.isFullscreen){n();return}const t=()=>{H.off("change",t),n()};H.on("change",t);const l=document[Y.exitFullscreen]();l instanceof Promise&&l.then(t).catch(e)})},toggle(n,e){return H.isFullscreen?H.exit():H.request(n,e)},onchange(n){H.on("change",n)},onerror(n){H.on("error",n)},on(n,e){const t=Ne[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=Ne[n];t&&document.removeEventListener(t,e,!1)},raw:Y};Object.defineProperties(H,{isFullscreen:{get:()=>!!document[Y.fullscreenElement]},element:{enumerable:!0,get:()=>document[Y.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>!!document[Y.fullscreenEnabled]}});Y||(H={isEnabled:!1});const Z=H,An=R({__name:"index",props:{element:{default:"html"},openTips:{default:"全屏"},exitTips:{default:"退出全屏"},content:{type:Boolean,default:!1}},setup(n){const e=n,t=P(!1),l=M(()=>t.value?e.exitTips:e.openTips),a=M(()=>t.value?"fullscreen-exit":"fullscreen"),o=()=>{const b=document.querySelector(e.element)||void 0;Z.isEnabled?Z.toggle(b):fe.warning("您的浏览器无法工作")},s=()=>{t.value=Z.isFullscreen,t.value||(document.body.className="")};de(b=>{Z.isEnabled&&Z.on("change",s),b(()=>{Z.isEnabled&&Z.off("change",s)})});const r=P(!1),c=M(()=>r.value?"内容区复原":"内容区放大"),m=M(()=>r.value?"fullscreen-exit":"fullscreen"),p=()=>{r.value=!r.value,document.body.className=r.value?"content-large":""},i=()=>{r.value&&p(),document.body.className="content-full",o()};return(b,v)=>{const h=g("SvgIcon"),w=g("el-tooltip"),x=g("el-dropdown-item"),L=g("el-dropdown-menu"),F=g("el-dropdown");return u(),E("div",null,[b.content?(u(),k(F,{key:1,disabled:t.value},{dropdown:_(()=>[d(L,null,{default:_(()=>[d(x,{onClick:p},{default:_(()=>[G(z(c.value),1)]),_:1}),d(x,{onClick:i},{default:_(()=>[G("内容区全屏")]),_:1})]),_:1})]),default:_(()=>[d(h,{name:m.value},null,8,["name"])]),_:1},8,["disabled"])):(u(),k(w,{key:0,effect:"dark",content:l.value,placement:"bottom"},{default:_(()=>[d(h,{name:a.value,onClick:o},null,8,["name"])]),_:1},8,["content"]))])}}}),Ze=D(An,[["__scopeId","data-v-889fe0df"]]),In=["onMouseenter"],Ln={class:"result-item-title"},Rn=R({__name:"SearchResult",props:st({list:{},isPressUpOrDown:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:e}){const t=Ue(n,"modelValue"),l=n,a=qe(),o=P(0),s=p=>{const i=p.name===t.value;return{background:i?"var(--el-color-primary)":"",color:i?"#ffffff":""}},r=p=>{l.isPressUpOrDown||(t.value=p.name)},c=()=>{o.value=Number((window.innerHeight*.4).toFixed(1))},m=p=>{var h;const i=(h=a==null?void 0:a.proxy)==null?void 0:h.$refs[`resultItemRef${p}`];if(!i)return 0;const v=i[0].offsetTop+128;return v>o.value?v-o.value:0};return Be(()=>{window.addEventListener("resize",c)}),Se(()=>{c()}),We(()=>{window.removeEventListener("resize",c)}),e({getScrollTop:m}),(p,i)=>{const b=g("SvgIcon");return u(),E("div",null,[(u(!0),E(q,null,j(p.list,(v,h)=>{var w,x,L;return u(),E("div",{key:h,ref_for:!0,ref:`resultItemRef${h}`,class:"result-item",style:Xe(s(v)),onMouseenter:F=>r(v)},[(w=v.meta)!=null&&w.svgIcon?(u(),k(b,{key:0,name:v.meta.svgIcon},null,8,["name"])):(x=v.meta)!=null&&x.elIcon?(u(),k(ie(v.meta.elIcon),{key:1,class:"el-icon"})):I("",!0),C("span",Ln,z((L=v.meta)==null?void 0:L.title),1),t.value&&t.value===v.name?(u(),k(b,{key:2,name:"keyboard-enter"})):I("",!0)],44,In)}),128))])}}}),Dn=D(Rn,[["__scopeId","data-v-8cd47626"]]),Ve=n=>(ke("data-v-8dce46e8"),n=n(),xe(),n),Pn={class:"search-footer"},Fn={class:"search-footer-item"},Nn=Ve(()=>C("span",null,"确认",-1)),zn={class:"search-footer-item"},Bn=Ve(()=>C("span",null,"切换",-1)),Wn={class:"search-footer-item"},On=Ve(()=>C("span",null,"关闭",-1)),Hn={class:"search-footer-total"},Un=R({__name:"SearchFooter",props:{total:{}},setup(n){const e=n,{isMobile:t}=se();return(l,a)=>{const o=g("SvgIcon");return u(),E("div",Pn,[f(t)?I("",!0):(u(),E(q,{key:0},[C("span",Fn,[d(o,{name:"keyboard-enter"}),Nn]),C("span",zn,[d(o,{name:"keyboard-up"}),d(o,{name:"keyboard-down"}),Bn]),C("span",Wn,[d(o,{name:"keyboard-esc"}),On])],64)),C("span",Hn,"共 "+z(e.total)+" 项",1)])}}}),qn=D(Un,[["__scopeId","data-v-8dce46e8"]]),Xn=C("p",null,"搜索结果",-1),Kn=R({__name:"SearchModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(n){const e=Ue(n,"modelValue"),t=_e(),{isMobile:l}=se(),a=P(null),o=P(null),s=P(null),r=P(""),c=at([]),m=P(void 0),p=P(!1),i=M(()=>l.value?"80vw":"40vw"),b=M(()=>ht(Ce().routes)),v=gt(()=>{var T;const A=h(b.value);c.value=A.filter(W=>{var S,V;return r.value?(V=(S=W.meta)==null?void 0:S.title)==null?void 0:V.toLocaleLowerCase().includes(r.value.toLocaleLowerCase().trim()):!1});const y=(T=c.value)==null?void 0:T.length;m.value=y>0?c.value[0].name:void 0},500),h=(A,y=[])=>(A.forEach(T=>{y.push(T),T.children&&h(T.children,y)}),y),w=()=>{e.value=!1,setTimeout(()=>{r.value="",c.value=[]},200)},x=A=>{var T;if(!s.value)return;const y=s.value.getScrollTop(A);(T=o.value)==null||T.setScrollTop(y)},L=()=>{p.value=!0;const{length:A}=c.value;if(A===0)return;const y=c.value.findIndex(T=>T.name===m.value);if(y===0){const T=c.value[A-1].name;m.value===T&&A>1?(m.value=c.value[A-2].name,x(A-2)):(m.value=T,x(A-1))}else m.value=c.value[y-1].name,x(y-1)},F=()=>{p.value=!0;const{length:A}=c.value;if(A===0)return;const y=c.value.map(T=>T.name).lastIndexOf(m.value);if(y===A-1){const T=c.value[0].name;m.value===T&&A>1?(m.value=c.value[1].name,x(1)):(m.value=T,x(0))}else m.value=c.value[y+1].name,x(y+1)},B=()=>{var W;const{length:A}=c.value;if(A===0)return;const y=m.value,T=(W=c.value.find(S=>S.name===y))==null?void 0:W.path;if(T&&pe(T)){window.open(T,"_blank","noopener, noreferrer");return}if(!y){fe.warning("无法通过搜索进入该菜单,请为对应的路由设置唯一的 Name");return}try{t.push({name:y})}catch{fe.error("该菜单有必填的动态参数,无法通过搜索进入");return}w()},O=()=>{p.value=!1};return(A,y)=>{const T=g("SvgIcon"),W=g("el-input"),S=g("el-empty"),V=g("el-dialog");return u(),k(V,{modelValue:e.value,"onUpdate:modelValue":y[2]||(y[2]=N=>e.value=N),onOpened:y[3]||(y[3]=N=>{var $;return($=a.value)==null?void 0:$.focus()}),onClosed:y[4]||(y[4]=N=>{var $;return($=a.value)==null?void 0:$.blur()}),onKeydown:[le(L,["up"]),le(F,["down"]),le(B,["enter"])],onKeyup:le(O,["up","down"]),"before-close":w,width:i.value,top:"5vh",class:"search-modal__private","append-to-body":""},{footer:_(()=>[d(qn,{total:c.value.length},null,8,["total"])]),default:_(()=>[d(W,{ref_key:"inputRef",ref:a,modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=N=>r.value=N),onInput:f(v),placeholder:"搜索菜单",size:"large",clearable:""},{prefix:_(()=>[d(T,{name:"search"})]),_:1},8,["modelValue","onInput"]),c.value.length===0?(u(),k(S,{key:0,description:"暂无搜索结果","image-size":100})):(u(),E(q,{key:1},[Xn,d(f(Je),{ref_key:"scrollbarRef",ref:o,"max-height":"40vh",always:""},{default:_(()=>[d(Dn,{ref_key:"searchResultRef",ref:s,modelValue:m.value,"onUpdate:modelValue":y[1]||(y[1]=N=>m.value=N),list:c.value,isPressUpOrDown:p.value,onClick:B},null,8,["modelValue","list","isPressUpOrDown"])]),_:1},512)],64))]),_:1},8,["modelValue","width"])}}}),Gn=R({__name:"index",setup(n){const e=P(!1),t=()=>{e.value=!0};return(l,a)=>{const o=g("SvgIcon"),s=g("el-tooltip");return u(),E("div",null,[d(s,{effect:"dark",content:"搜索菜单",placement:"bottom"},{default:_(()=>[d(o,{name:"search",onClick:t})]),_:1}),d(Kn,{modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=r=>e.value=r)},null,8,["modelValue"])])}}}),Jn=D(Gn,[["__scopeId","data-v-dc5accb4"]]),Yn=n=>(ke("data-v-1ee6dd91"),n=n(),xe(),n),jn={class:"navigation-bar"},Zn={class:"right-menu"},Qn={class:"right-menu-avatar"},eo={target:"_blank",href:"https://github.com/un-pany/v3-admin-vite"},to={target:"_blank",href:"https://gitee.com/un-pany/v3-admin-vite"},no=Yn(()=>C("span",{style:{display:"block"}},"退出登录",-1)),oo=R({__name:"index",setup(n){const{isMobile:e}=se(),{isTop:t}=ae(),l=_e(),a=oe(),o=dt(),s=J(),{showNotify:r,showThemeSwitch:c,showScreenfull:m,showSearchMenu:p}=ne(s),i=()=>{a.toggleSidebar(!1)},b=()=>{o.logout(),l.push("/login")};return(v,h)=>{const w=g("el-avatar"),x=g("el-dropdown-item"),L=g("el-dropdown-menu"),F=g("el-dropdown");return u(),E("div",jn,[!f(t)||f(e)?(u(),k(Ot,{key:0,"is-active":f(a).sidebar.opened,class:"hamburger",onToggleClick:i},null,8,["is-active"])):I("",!0),!f(t)||f(e)?(u(),k(Zt,{key:1,class:"breadcrumb"})):I("",!0),f(t)&&!f(e)?(u(),k($e,{key:2,class:"sidebar"})):I("",!0),C("div",Zn,[f(p)?(u(),k(Jn,{key:0,class:"right-menu-item"})):I("",!0),f(m)?(u(),k(Ze,{key:1,class:"right-menu-item"})):I("",!0),f(c)?(u(),k(Ct,{key:2,class:"right-menu-item"})):I("",!0),f(r)?(u(),k(Mn,{key:3,class:"right-menu-item"})):I("",!0),d(F,{class:"right-menu-item"},{dropdown:_(()=>[d(L,null,{default:_(()=>[C("a",eo,[d(x,null,{default:_(()=>[G("GitHub")]),_:1})]),C("a",to,[d(x,null,{default:_(()=>[G("Gitee")]),_:1})]),d(x,{divided:"",onClick:b},{default:_(()=>[no]),_:1})]),_:1})]),default:_(()=>[C("div",Qn,[d(w,{icon:f(bt),size:30},null,8,["icon"]),C("span",null,z(f(o).username),1)])]),_:1})])])}}}),Me=D(oo,[["__scopeId","data-v-1ee6dd91"]]),so={class:"select-layout-mode"},ao=R({__name:"SelectLayoutMode",setup(n){const{isLeft:e,isTop:t,isLeftTop:l,setLayoutMode:a}=ae();return(o,s)=>{const r=g("el-aside"),c=g("el-header"),m=g("el-main"),p=g("el-container"),i=g("el-tooltip");return u(),E("div",so,[d(i,{content:"左侧模式"},{default:_(()=>[d(p,{class:U(["layout-mode left",{active:f(e)}]),onClick:s[0]||(s[0]=b=>f(a)(f(ee).Left))},{default:_(()=>[d(r),d(p,null,{default:_(()=>[d(c),d(m)]),_:1})]),_:1},8,["class"])]),_:1}),d(i,{content:"顶部模式"},{default:_(()=>[d(p,{class:U(["layout-mode top",{active:f(t)}]),onClick:s[1]||(s[1]=b=>f(a)(f(ee).Top))},{default:_(()=>[d(c),d(m)]),_:1},8,["class"])]),_:1}),d(i,{content:"混合模式"},{default:_(()=>[d(p,{class:U(["layout-mode left-top",{active:f(l)}]),onClick:s[2]||(s[2]=b=>f(a)(f(ee).LeftTop))},{default:_(()=>[d(c),d(p,null,{default:_(()=>[d(r),d(m)]),_:1})]),_:1},8,["class"])]),_:1})])}}}),lo=D(ao,[["__scopeId","data-v-b859d856"]]),Qe=n=>(ke("data-v-107157f3"),n=n(),xe(),n),ro={class:"setting-container"},co=Qe(()=>C("h4",null,"布局配置",-1)),io=Qe(()=>C("h4",null,"功能配置",-1)),uo={class:"setting-name"},fo=R({__name:"index",setup(n){const{isLeft:e}=ae(),t=J(),{showTagsView:l,showLogo:a,fixedHeader:o,showFooter:s,showNotify:r,showThemeSwitch:c,showScreenfull:m,showSearchMenu:p,cacheTagsView:i,showWatermark:b,showGreyMode:v,showColorWeakness:h}=ne(t),w={显示标签栏:l,"显示 Logo":a,"固定 Header":o,"显示页脚 Footer":s,显示消息通知:r,显示切换主题按钮:c,显示全屏按钮:m,显示搜索按钮:p,是否缓存标签栏:i,开启系统水印:b,显示灰色模式:v,显示色弱模式:h};return de(()=>{!e.value&&(o.value=!0)}),(x,L)=>{const F=g("el-divider"),B=g("el-switch"),O=g("el-button");return u(),E("div",ro,[co,d(lo),d(F),io,(u(),E(q,null,j(w,(A,y,T)=>C("div",{class:"setting-item",key:T},[C("span",uo,z(y),1),d(B,{modelValue:A.value,"onUpdate:modelValue":W=>A.value=W,disabled:!f(e)&&y==="固定 Header"},null,8,["modelValue","onUpdate:modelValue","disabled"])])),64)),d(O,{type:"danger",icon:f(yt),onClick:f(pn)},{default:_(()=>[G("重 置")]),_:1},8,["icon","onClick"])])}}}),po=D(fo,[["__scopeId","data-v-107157f3"]]),mo={class:"scroll-container"},_o=200,vo=R({__name:"ScrollPane",props:{tagRefs:{}},setup(n){const e=n,t=me(),l=J(),{listenerRouteChange:a}=ge(),o=P(),s=P();let r=0;const c=({scrollLeft:v})=>{r=v},m=({deltaY:v})=>{/^-/.test(v.toString())?i("left"):i("right")},p=()=>{const v=s.value.clientWidth,h=o.value.wrapRef.clientWidth,w=v-h-r;return{scrollbarContentRefWidth:v,scrollbarRefWidth:h,lastDistance:w}},i=(v,h=_o)=>{let w=0;const{scrollbarContentRefWidth:x,scrollbarRefWidth:L,lastDistance:F}=p();L>x||(v==="left"?w=Math.max(0,r-h):w=Math.min(r+h,r+F),o.value.setScrollLeft(w))},b=()=>{const v=e.tagRefs;for(let h=0;hB){const O=L-B;i("right",O);return}}};return a(()=>{lt(b)}),(v,h)=>{const w=g("el-icon");return u(),E("div",mo,[d(w,{class:"arrow left",onClick:h[0]||(h[0]=x=>i("left"))},{default:_(()=>[d(f(wt))]),_:1}),d(f(Je),{ref_key:"scrollbarRef",ref:o,onWheelPassive:m,onScroll:c},{default:_(()=>[C("div",{ref_key:"scrollbarContentRef",ref:s,class:"scrollbar-content"},[ue(v.$slots,"default",{},void 0,!0)],512)]),_:3},512),d(w,{class:"arrow right",onClick:h[1]||(h[1]=x=>i("right"))},{default:_(()=>[d(f(St))]),_:1}),f(l).showScreenfull?(u(),k(Ze,{key:0,content:!0,class:"screenfull"})):I("",!0)])}}}),ho=D(vo,[["__scopeId","data-v-5784e87c"]]),go={class:"tags-view-container"},bo=R({__name:"index",setup(n){const e=qe(),t=_e(),l=me(),a=Ge(),o=Ce(),{listenerRouteChange:s}=ge(),r=P([]),c=P(!1),m=P(0),p=P(0),i=P({});let b=[];const v=S=>S.path===l.path,h=S=>{var V;return(V=S.meta)==null?void 0:V.affix},w=(S,V="/")=>{const N=[];return S.forEach($=>{if(h($)){const X=je.resolve(V,$.path);N.push({fullPath:X,path:X,name:$.name,meta:{...$.meta}})}if($.children){const X=w($.children,$.path);N.push(...X)}}),N},x=()=>{b=w(o.routes);for(const S of b)S.name&&a.addVisitedView(S)},L=S=>{S.name&&(a.addVisitedView(S),a.addCachedView(S))},F=S=>{a.delCachedView(S),t.replace({path:"/redirect"+S.path,query:S.query})},B=S=>{a.delVisitedView(S),a.delCachedView(S),v(S)&&y(a.visitedViews,S)},O=()=>{const S=i.value.fullPath;S!==l.path&&S!==void 0&&t.push(S),a.delOthersVisitedViews(i.value),a.delOthersCachedViews(i.value)},A=S=>{a.delAllVisitedViews(),a.delAllCachedViews(),!b.some(V=>V.path===l.path)&&y(a.visitedViews,S)},y=(S,V)=>{const N=S.slice(-1)[0],$=N==null?void 0:N.fullPath;$!==void 0?t.push($):V.name==="Dashboard"?t.push({path:"/redirect"+V.path,query:V.query}):t.push("/")},T=(S,V)=>{const $=e.proxy.$el.getBoundingClientRect().left,ye=e.proxy.$el.offsetWidth-105,Ie=V.clientX-$+15;p.value=Ie>ye?ye:Ie,m.value=V.clientY,c.value=!0,i.value=S},W=()=>{c.value=!1};return ze(c,S=>{S?document.body.addEventListener("click",W):document.body.removeEventListener("click",W)}),Se(()=>{x(),s(async S=>{L(S)},!0)}),(S,V)=>{const N=g("el-icon");return u(),E("div",go,[d(ho,{class:"tags-view-wrapper","tag-refs":r.value},{default:_(()=>[(u(!0),E(q,null,j(f(a).visitedViews,$=>(u(),k(f(rt),{ref_for:!0,ref_key:"tagRefs",ref:r,key:$.path,class:U([{active:v($)},"tags-view-item"]),to:{path:$.path,query:$.query},onMouseup:re(X=>!h($)&&B($),["middle"]),onContextmenu:re(X=>T($,X),["prevent"])},{default:_(()=>{var X;return[G(z((X=$.meta)==null?void 0:X.title)+" ",1),h($)?I("",!0):(u(),k(N,{key:0,size:12,onClick:re(ye=>B($),["prevent","stop"])},{default:_(()=>[d(f(kt))]),_:2},1032,["onClick"]))]}),_:2},1032,["class","to","onMouseup","onContextmenu"]))),128))]),_:1},8,["tag-refs"]),ve(C("ul",{class:"contextmenu",style:Xe({left:p.value+"px",top:m.value+"px"})},[C("li",{onClick:V[0]||(V[0]=$=>F(i.value))},"刷新"),h(i.value)?I("",!0):(u(),E("li",{key:0,onClick:V[1]||(V[1]=$=>B(i.value))},"关闭")),C("li",{onClick:O},"关闭其它"),C("li",{onClick:V[2]||(V[2]=$=>A(i.value))},"关闭所有")],4),[[he,c.value]])])}}}),Ae=D(bo,[["__scopeId","data-v-6f2c645d"]]),yo=R({__name:"index",props:{buttonTop:{default:350}},setup(n){He(a=>({"79e23a76":t}));const t=n.buttonTop+"px",l=P(!1);return(a,o)=>{const s=g("el-icon"),r=g("el-drawer");return u(),E(q,null,[C("div",{class:"handle-button",onClick:o[0]||(o[0]=c=>l.value=!0)},[d(s,{size:24},{default:_(()=>[d(f(xt))]),_:1})]),d(r,{modelValue:l.value,"onUpdate:modelValue":o[1]||(o[1]=c=>l.value=c),size:"300px","with-header":!1},{default:_(()=>[ue(a.$slots,"default",{},void 0,!0)]),_:3},8,["modelValue"])],64)}}}),wo=D(yo,[["__scopeId","data-v-e47107a1"]]),So=R({__name:"LeftMode",setup(n){const{isMobile:e}=se(),t=oe(),l=J(),{showTagsView:a,fixedHeader:o}=ne(l),s=M(()=>({hideSidebar:!t.sidebar.opened,openSidebar:t.sidebar.opened,withoutAnimation:t.sidebar.withoutAnimation,mobile:e.value})),r=()=>{t.closeSidebar(!1)};return(c,m)=>(u(),E("div",{class:U([s.value,"app-wrapper"])},[s.value.mobile&&s.value.openSidebar?(u(),E("div",{key:0,class:"drawer-bg",onClick:r})):I("",!0),d(f($e),{class:"sidebar-container"}),C("div",{class:U([{hasTagsView:f(a)},"main-container"])},[C("div",{class:U([{"fixed-header":f(o)},"layout-header"])},[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(a)]])],2),d(f(Te),{class:"app-main"})],2)],2))}}),ko=D(So,[["__scopeId","data-v-79281f6e"]]),xo={class:"app-wrapper"},Co={class:"fixed-header layout-header"},To={class:"content"},Eo=R({__name:"TopMode",setup(n){const e=J(),{showTagsView:t,showLogo:l}=ne(e);return(a,o)=>(u(),E("div",xo,[C("div",Co,[C("div",To,[f(l)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),d(f(Me),{class:"navigation-bar"})]),ve(d(f(Ae),null,null,512),[[he,f(t)]])]),C("div",{class:U([{hasTagsView:f(t)},"main-container"])},[d(f(Te),{class:"app-main"})],2)]))}}),$o=D(Eo,[["__scopeId","data-v-da4d3997"]]),Vo={class:"fixed-header layout-header"},Mo={class:"content"},Ao=R({__name:"LeftTopMode",setup(n){const e=oe(),t=J(),{showTagsView:l,showLogo:a}=ne(t),o=M(()=>({hideSidebar:!e.sidebar.opened}));return(s,r)=>(u(),E("div",{class:U([o.value,"app-wrapper"])},[C("div",Vo,[f(a)?(u(),k(f(Ee),{key:0,collapse:!1,class:"logo"})):I("",!0),C("div",Mo,[d(f(Me)),ve(d(f(Ae),null,null,512),[[he,f(l)]])])]),C("div",{class:U([{hasTagsView:f(l)},"main-container"])},[d(f($e),{class:"sidebar-container"}),d(f(Te),{class:"app-main"})],2)],2))}}),Io=D(Ao,[["__scopeId","data-v-b05e214b"]]),we="--v3-tagsview-height",Lo=R({__name:"index",setup(n){$t();const{setWatermark:e,clearWatermark:t}=ft(),{isMobile:l}=se(),{isLeft:a,isTop:o,isLeftTop:s}=ae(),r=J(),{showSettings:c,showTagsView:m,showWatermark:p,showGreyMode:i,showColorWeakness:b}=ne(r),v=M(()=>({showGreyMode:i.value,showColorWeakness:b.value})),h=ce(we);return de(()=>{m.value?De(we,h):De(we,"0px")}),de(()=>{p.value?e("V3 Admin Vite"):t()}),(w,x)=>(u(),E("div",{class:U(v.value)},[f(a)||f(l)?(u(),k(ko,{key:0})):f(o)?(u(),k($o,{key:1})):f(s)?(u(),k(Io,{key:2})):I("",!0),f(c)?(u(),k(f(wo),{key:3},{default:_(()=>[d(f(po))]),_:1})):I("",!0)],2))}}),Bo=D(Lo,[["__scopeId","data-v-f8f963f5"]]);export{Bo as default}; diff --git a/static/index-OPpVNdHm.js b/static/index-BkEWbhUq.js similarity index 97% rename from static/index-OPpVNdHm.js rename to static/index-BkEWbhUq.js index 09a94117..f4b8f6ee 100644 --- a/static/index-OPpVNdHm.js +++ b/static/index-BkEWbhUq.js @@ -1 +1 @@ -import{c as K,u as Q,d as W,g as X}from"./index-Ccp6vopz.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-D97nkBxs.js";import{Z as M,l as re,r as b,b as se,ah as d,ap as ie,m,p as ue,P as $,M as _,O as a,U as e,u as r,S as s,q as w,T as de,R as pe}from"./vue-Dve2Dm07.js";import{_ as ce}from"./index-3-mGofWC.js";import"./vxe-D4242vD8.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:y=>{i.currentPage=y},handleSizeChange:y=>{i.pageSize=y}}}const _e={class:"app-container"},ge={class:"toolbar-wrapper"},ve={class:"table-wrapper"},he={class:"pager-wrapper"},be=re({name:"ElementPlus",__name:"index",setup(S){const i=b(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:y}=fe(),P={id:void 0,username:"",password:""},g=b(!1),V=b(null),u=b(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?K:Q)(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(()=>{W(t.id).then(()=>{E.success("删除成功"),C()})})},G=t=>{g.value=!0,u.value=D(t)},z=b([]),T=b(null),f=M({username:"",phone:""}),C=()=>{i.value=!0,X({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(y),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(be,[["__scopeId","data-v-7ecd548f"]]);export{ze as default}; +import{c as K,u as Q,d as W,g as X}from"./index-6ChvBY-Z.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-D97nkBxs.js";import{Z as M,l as re,r as b,b as se,ah as d,ap as ie,m,p as ue,P as $,M as _,O as a,U as e,u as r,S as s,q as w,T as de,R as pe}from"./vue-Dve2Dm07.js";import{_ as ce}from"./index-DBdOCPoM.js";import"./vxe-D4242vD8.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:y=>{i.currentPage=y},handleSizeChange:y=>{i.pageSize=y}}}const _e={class:"app-container"},ge={class:"toolbar-wrapper"},ve={class:"table-wrapper"},he={class:"pager-wrapper"},be=re({name:"ElementPlus",__name:"index",setup(S){const i=b(!1),{paginationData:o,handleCurrentChange:x,handleSizeChange:y}=fe(),P={id:void 0,username:"",password:""},g=b(!1),V=b(null),u=b(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?K:Q)(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(()=>{W(t.id).then(()=>{E.success("删除成功"),C()})})},G=t=>{g.value=!0,u.value=D(t)},z=b([]),T=b(null),f=M({username:"",phone:""}),C=()=>{i.value=!0,X({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(y),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(be,[["__scopeId","data-v-7ecd548f"]]);export{ze as default}; diff --git a/static/index-BpQZlxFs.css b/static/index-BrXOIlcI.css similarity index 99% rename from static/index-BpQZlxFs.css rename to static/index-BrXOIlcI.css index 72730372..bb29ae20 100644 --- a/static/index-BpQZlxFs.css +++ b/static/index-BrXOIlcI.css @@ -1 +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-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-a995be53]{font-size:20px}.svg-icon[data-v-a995be53]: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)} +@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-CyuM0oD9.js b/static/index-CwyieoU9.js similarity index 92% rename from static/index-CyuM0oD9.js rename to static/index-CwyieoU9.js index 6b4b015f..4e0bb61f 100644 --- a/static/index-CyuM0oD9.js +++ b/static/index-CwyieoU9.js @@ -1 +1 @@ -import{_ as e}from"./index-3-mGofWC.js";import{m as o,p as n,q as t}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-DBdOCPoM.js";import{m as o,p as n,q as t}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-7q2QvBqu.js b/static/index-D3Tt4rqX.js similarity index 96% rename from static/index-7q2QvBqu.js rename to static/index-D3Tt4rqX.js index 97b2b8ac..58a96162 100644 --- a/static/index-7q2QvBqu.js +++ b/static/index-D3Tt4rqX.js @@ -1 +1 @@ -import{l as V,m as F,p as b,I as U,aL as R,r as u,aD as q,Z as M,ah as n,U as e,u as l,q as p,O as s,a2 as N,S as E,a8 as L,aH as O,aI as $}from"./vue-Dve2Dm07.js";import{_ as B,f as D,e as K}from"./index-3-mGofWC.js";import{v as A,w as H,x as J,y as T,z as Z}from"./element-D97nkBxs.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang-CgyoMCxv.js";import"./vxe-D4242vD8.js";const G="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",P=R('
',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=>(O("data-v-c8304cc7"),o=o(),$(),o),oe={class:"login-container"},ae={class:"login-card"},se=ee(()=>p("div",{class:"title"},[p("img",{src:G})],-1)),te={class:"content"},le=V({__name:"index",setup(o){const c=q(),{isFocus:m,handleBlur:h,handleFocus:C}=Y(),w=u(null),_=u(!1),f=u(""),a=M({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,K().login(a).then(()=>{c.push({path:"/"})}).catch(()=>{g(),a.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},g=()=>{a.code="",f.value="",D().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(j,{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:L(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(H),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(J),maxlength:"7",size:"large"},{append:s(()=>[e(I,{src:f.value,onClick:g,draggable:"false"},{placeholder:s(()=>[e(y,null,{default:s(()=>[e(l(T))]),_:1})]),error:s(()=>[e(y,null,{default:s(()=>[e(l(Z))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(z,{loading:_.value,type:"primary",size:"large",onClick:N(x,["prevent"])},{default:s(()=>[E("登 录")]),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),ue=B(le,[["__scopeId","data-v-c8304cc7"]]);export{ue as default}; +import{l as V,m as F,p as b,I as U,aL as R,r as u,aD as q,Z as M,ah as n,U as e,u as l,q as p,O as s,a2 as N,S as E,a8 as L,aH as O,aI as $}from"./vue-Dve2Dm07.js";import{_ as B,f as D,e as K}from"./index-DBdOCPoM.js";import{v as A,w as H,x as J,y as T,z as Z}from"./element-D97nkBxs.js";import{_ as j}from"./index.vue_vue_type_script_setup_true_lang-LY9QwYga.js";import"./vxe-D4242vD8.js";const G="/v3-admin-vite/static/logo-text-2-CVewf8RJ.png",P=R('
',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=>(O("data-v-c8304cc7"),o=o(),$(),o),oe={class:"login-container"},ae={class:"login-card"},se=ee(()=>p("div",{class:"title"},[p("img",{src:G})],-1)),te={class:"content"},le=V({__name:"index",setup(o){const c=q(),{isFocus:m,handleBlur:h,handleFocus:C}=Y(),w=u(null),_=u(!1),f=u(""),a=M({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,K().login(a).then(()=>{c.push({path:"/"})}).catch(()=>{g(),a.password=""}).finally(()=>{_.value=!1})):console.error("表单校验不通过",d)})},g=()=>{a.code="",f.value="",D().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(j,{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:L(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(H),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(J),maxlength:"7",size:"large"},{append:s(()=>[e(I,{src:f.value,onClick:g,draggable:"false"},{placeholder:s(()=>[e(y,null,{default:s(()=>[e(l(T))]),_:1})]),error:s(()=>[e(y,null,{default:s(()=>[e(l(Z))]),_:1})]),_:1},8,["src"])]),_:1},8,["modelValue","prefix-icon"])]),_:1}),e(z,{loading:_.value,type:"primary",size:"large",onClick:N(x,["prevent"])},{default:s(()=>[E("登 录")]),_:1},8,["loading"])]),_:1},8,["model"])])])])}}}),ue=B(le,[["__scopeId","data-v-c8304cc7"]]);export{ue as default}; diff --git a/static/index-3-mGofWC.js b/static/index-DBdOCPoM.js similarity index 97% rename from static/index-3-mGofWC.js rename to static/index-DBdOCPoM.js index c0487246..6df22e85 100644 --- a/static/index-3-mGofWC.js +++ b/static/index-DBdOCPoM.js @@ -1,10 +1,10 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["static/index-DQLOBRdc.js","static/vue-Dve2Dm07.js","static/useWatermark-C5tfeNej.js","static/element-D97nkBxs.js","static/index.vue_vue_type_script_setup_true_lang-CgyoMCxv.js","static/vxe-D4242vD8.js","static/index-BpQZlxFs.css","static/index-B4rGPEOX.js","static/403-dCfewxD-.js","static/ErrorPageLayout-C1bUmyU6.js","static/ErrorPageLayout-zOAQY_Gs.css","static/404-CTYBsJ-w.js","static/index-7q2QvBqu.js","static/index-B9zIkYV9.css","static/index-DI1XgnB2.js","static/index-tavtFK3w.css","static/index-CyuM0oD9.js","static/index-OPpVNdHm.js","static/index-Ccp6vopz.js","static/index-BRmddp6Q.css","static/index-CfCJ7RZ_.js","static/index-zYH02cbt.js","static/index-DmS5ZuTx.css","static/index-w8hn_ZYV.js","static/index-CgDqt8bv.js","static/index-xoD_zdVv.js","static/index-B48Yk8JQ.js","static/index-BlSLKvOr.js","static/index-D_bD-eGW.js","static/use-fetch-select-5LnerHoo.js","static/use-fullscreen-loading-0kW39SUT.js","static/use-watermark-Dw9dZStc.js","static/use-watermark-C8yPoY9R.css","static/page-D1-25hnF.js","static/SwitchRoles-Din5Zafg.js","static/SwitchRoles-CoSs55AH.css","static/page-D_JSdlLP.css","static/directive-uaXdYmui.js","static/directive-NEoCH_vr.css"] + __vite__mapDeps.viteFileDeps = ["static/index-BNcNillM.js","static/vue-Dve2Dm07.js","static/useWatermark-C5tfeNej.js","static/element-D97nkBxs.js","static/index.vue_vue_type_script_setup_true_lang-LY9QwYga.js","static/vxe-D4242vD8.js","static/index-BrXOIlcI.css","static/index-B4rGPEOX.js","static/403-mN_jjpbb.js","static/ErrorPageLayout-771_GbEU.js","static/ErrorPageLayout-zOAQY_Gs.css","static/404-CcS5yolh.js","static/index-D3Tt4rqX.js","static/index-B9zIkYV9.css","static/index-DsGHvmyZ.js","static/index-tavtFK3w.css","static/index-CwyieoU9.js","static/index-BkEWbhUq.js","static/index-6ChvBY-Z.js","static/index-BRmddp6Q.css","static/index-B1nCzJdx.js","static/index-B3CUqfN3.js","static/index-DmS5ZuTx.css","static/index-w8hn_ZYV.js","static/index-jqfPGGJW.js","static/index-xoD_zdVv.js","static/index-B48Yk8JQ.js","static/index-BlSLKvOr.js","static/index-D_bD-eGW.js","static/use-fetch-select-5LnerHoo.js","static/use-fullscreen-loading-0kW39SUT.js","static/use-watermark-B_GYlypJ.js","static/use-watermark-C8yPoY9R.css","static/page-5Rp_P7tm.js","static/SwitchRoles-CVSdZDtk.js","static/SwitchRoles-CoSs55AH.css","static/page-D_JSdlLP.css","static/directive-6bxpAqtB.js","static/directive-NEoCH_vr.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } -var kt=Object.defineProperty;var xt=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>(xt(e,typeof t!="symbol"?t+"":t,n),n);import{r as x,w as Xe,l as Ye,M as Pt,O as Dt,u as Bt,ah as De,m as Ze,U as Ft,ax as Lt,ay as Nt,az as It,aA as Q,b as Qe,z as Vt,e as Ut,p as Mt,q as jt,as as zt}from"./vue-Dve2Dm07.js";import{E as Ht,b as G,c as qt,m as Wt,e as $t,g as Jt,i as Gt,f as Kt}from"./element-D97nkBxs.js";import{V as ye,a as Xt}from"./vxe-D4242vD8.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const U="v3-admin-vite";class _{}N(_,"TOKEN",`${U}-token-key`),N(_,"CONFIG_LAYOUT",`${U}-config-layout-key`),N(_,"SIDEBAR_STATUS",`${U}-sidebar-status-key`),N(_,"ACTIVE_THEME_NAME",`${U}-active-theme-name-key`),N(_,"VISITED_VIEWS",`${U}-visited-views-key`),N(_,"CACHED_VIEWS",`${U}-cached-views-key`);const Yt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Zt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},ys=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},ws=()=>localStorage.getItem(_.SIDEBAR_STATUS),bs=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},Qt=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),en=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},tn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},nn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},rn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},sn=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},et="normal",on=[{title:"默认",name:et},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],we=x(Qt()||et),an=e=>{we.value=e},cn=e=>{document.documentElement.className=e},un=()=>{Xe(()=>{const e=we.value;cn(e),en(e)})};function ln(){return{themeList:on,activeThemeName:we,initTheme:un,setTheme:an}}var dn={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 fn=Ye({__name:"App",setup(e){const{initTheme:t}=ln();return t(),Ht({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ze(),Pt(o,{locale:Bt(dn)},{default:Dt(()=>[Ft(s)]),_:1},8,["locale"])}}}),be=Lt(),mn="modulepreload",pn=function(e){return"/v3-admin-vite/"+e},Be={},v=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.all(n.map(f=>{if(f=pn(f),f in Be)return;Be[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(!!r)for(let w=o.length-1;w>=0;w--){const a=o[w];if(a.href===f&&(!h||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${m}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":mn,h||(p.as="script",p.crossOrigin=""),p.href=f,l&&p.setAttribute("nonce",l),document.head.appendChild(p),h)return new Promise((w,a)=>{p.addEventListener("load",w),p.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${f}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},hn=Nt("/v3-admin-vite/"),tt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>v(()=>import("./index-DQLOBRdc.js"),__vite__mapDeps([0,1,2,3,4,5,6])),nt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>v(()=>import("./index-B4rGPEOX.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>v(()=>import("./403-dCfewxD-.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>v(()=>import("./404-CTYBsJ-w.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>v(()=>import("./index-7q2QvBqu.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>v(()=>import("./index-DI1XgnB2.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>v(()=>import("./index-CyuM0oD9.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:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>v(()=>import("./index-OPpVNdHm.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>v(()=>import("./index-CfCJ7RZ_.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>v(()=>import("./index-zYH02cbt.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>v(()=>import("./index-w8hn_ZYV.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>v(()=>import("./index-CgDqt8bv.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:()=>v(()=>import("./index-xoD_zdVv.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>v(()=>import("./index-B48Yk8JQ.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>v(()=>import("./index-BlSLKvOr.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>v(()=>import("./index-D_bD-eGW.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>v(()=>import("./use-fetch-select-5LnerHoo.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>v(()=>import("./use-fullscreen-loading-0kW39SUT.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>v(()=>import("./use-watermark-Dw9dZStc.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Fe=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>v(()=>import("./page-D1-25hnF.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>v(()=>import("./directive-uaXdYmui.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],F=It({history:hn,routes:nt});function En(){try{F.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&F.hasRoute(t)&&F.removeRoute(t)})}catch{window.location.reload()}}var gn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(gn||{}),rt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(rt||{});const vs="opened",Ss="closed",yn={layoutMode:rt.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},wn={...yn,...Yt()},st=Q("settings",()=>{const e={};for(const[n,r]of Object.entries(wn)){const s=x(r);e[n]=s,Qe(s,()=>{const o=t();Zt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),bn=Q("tags-view",()=>{const{cacheTagsView:e}=st(),t=x(e?tn():[]),n=x(e?rn():[]);return Xe(()=>{nn(t.value),sn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:u=>{const p=t.value.findIndex(w=>w.path===u.path);p!==-1?t.value[p].fullPath!==u.fullPath&&(t.value[p]={...u}):t.value.push({...u})},addCachedView:u=>{var p;typeof u.name=="string"&&(n.value.includes(u.name)||(p=u.meta)!=null&&p.keepAlive&&n.value.push(u.name))},delVisitedView:u=>{const p=t.value.findIndex(w=>w.path===u.path);p!==-1&&t.value.splice(p,1)},delCachedView:u=>{if(typeof u.name!="string")return;const p=n.value.indexOf(u.name);p!==-1&&n.value.splice(p,1)},delOthersVisitedViews:u=>{t.value=t.value.filter(p=>{var w;return((w=p.meta)==null?void 0:w.affix)||p.path===u.path})},delOthersCachedViews:u=>{if(typeof u.name!="string")return;const p=n.value.indexOf(u.name);p!==-1?n.value=n.value.slice(p,p+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(u=>{var p;return(p=u.meta)==null?void 0:p.affix})},delAllCachedViews:()=>{n.value=[]}}});function J(e){for(var t=1;t"u")){i=J({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var f in i)i[f]&&(l+="; "+f,i[f]!==!0&&(l+="="+i[f].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},l=0;lve.get(_.TOKEN),Le=e=>{ve.set(_.TOKEN,e)},Ne=()=>{ve.remove(_.TOKEN)};function ot(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sn}=Object.prototype,{getPrototypeOf:_e}=Object,ee=(e=>t=>{const n=Sn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>ee(t)===e),te=e=>t=>typeof t===e,{isArray:j}=Array,H=te("undefined");function _n(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const it=P("ArrayBuffer");function An(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&it(e.buffer),t}const Tn=te("string"),R=te("function"),at=te("number"),ne=e=>e!==null&&typeof e=="object",Rn=e=>e===!0||e===!1,K=e=>{if(ee(e)!=="object")return!1;const t=_e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},On=P("Date"),Cn=P("File"),kn=P("Blob"),xn=P("FileList"),Pn=e=>ne(e)&&R(e.pipe),Dn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=ee(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Bn=P("URLSearchParams"),Fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),j(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lt=e=>!H(e)&&e!==ut;function le(){const{caseless:e}=lt(this)&&this||{},t={},n=(r,s)=>{const o=e&&ct(t,s)||s;K(t[o])&&K(r)?t[o]=le(t[o],r):K(r)?t[o]=le({},r):j(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(q(t,(s,o)=>{n&&R(s)?e[o]=ot(s,n):e[o]=s},{allOwnKeys:r}),e),Nn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),In=(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)},Vn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&_e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Un=(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},Mn=e=>{if(!e)return null;if(j(e))return e;let t=e.length;if(!at(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_e(Uint8Array)),zn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Hn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qn=P("HTMLFormElement"),Wn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$n=P("RegExp"),dt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Jn=e=>{dt(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(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+"'")})}})},Gn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return j(e)?r(e):r(String(e).split(t)),n},Kn=()=>{},Xn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),oe="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",ft={DIGIT:Ve,ALPHA:oe,ALPHA_DIGIT:oe+oe.toUpperCase()+Ve},Yn=(e=16,t=ft.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zn(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qn=e=>{const t=new Array(10),n=(r,s)=>{if(ne(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=j(r)?[]:{};return q(r,(i,l)=>{const f=n(i,s+1);!H(f)&&(o[l]=f)}),t[s]=void 0,o}}return r};return n(e,0)},er=P("AsyncFunction"),tr=e=>e&&(ne(e)||R(e))&&R(e.then)&&R(e.catch),c={isArray:j,isArrayBuffer:it,isBuffer:_n,isFormData:Dn,isArrayBufferView:An,isString:Tn,isNumber:at,isBoolean:Rn,isObject:ne,isPlainObject:K,isUndefined:H,isDate:On,isFile:Cn,isBlob:kn,isRegExp:$n,isFunction:R,isStream:Pn,isURLSearchParams:Bn,isTypedArray:jn,isFileList:xn,forEach:q,merge:le,extend:Ln,trim:Fn,stripBOM:Nn,inherits:In,toFlatObject:Vn,kindOf:ee,kindOfTest:P,endsWith:Un,toArray:Mn,forEachEntry:zn,matchAll:Hn,isHTMLForm:qn,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:dt,freezeMethods:Jn,toObjectSet:Gn,toCamelCase:Wn,noop:Kn,toFiniteNumber:Xn,findKey:ct,global:ut,isContextDefined:lt,ALPHABET:ft,generateString:Yn,isSpecCompliantForm:Zn,toJSONObject:Qn,isAsyncFn:er,isThenable:tr};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mt=g.prototype,pt={};["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=>{pt[e]={value:e}});Object.defineProperties(g,pt);Object.defineProperty(mt,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(mt);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const nr=null;function de(e){return c.isPlainObject(e)||c.isArray(e)}function ht(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ue(e,t,n){return e?e.concat(t).map(function(s,o){return s=ht(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function rr(e){return c.isArray(e)&&!e.some(de)}const sr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function re(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,E){return!c.isUndefined(E[d])});const r=n.metaTokens,s=n.visitor||m,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!f&&c.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?f&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function m(a,d,E){let y=a;if(a&&!E&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&rr(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(y=c.toArray(a)))return d=ht(d),y.forEach(function(T,b){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Ue([d],b,o):i===null?d:d+"[]",h(T))}),!1}return de(a)?!0:(t.append(Ue(E,d,o),h(a)),!1)}const u=[],p=Object.assign(sr,{defaultVisitor:m,convertValue:h,isVisitable:de});function w(a,d){if(!c.isUndefined(a)){if(u.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));u.push(a),c.forEach(a,function(y,S){(!(c.isUndefined(y)||y===null)&&s.call(t,y,c.isString(S)?S.trim():S,d,p))===!0&&w(y,d?d.concat(S):[S])}),u.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Me(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ae(e,t){this._pairs=[],e&&re(e,this,t)}const Et=Ae.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Me)}:Me;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function or(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gt(e,t,n){if(!t)return e;const r=n&&n.encode||or,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new Ae(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class je{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ir=typeof URLSearchParams<"u"?URLSearchParams:Ae,ar=typeof FormData<"u"?FormData:null,cr=typeof Blob<"u"?Blob:null,ur={isBrowser:!0,classes:{URLSearchParams:ir,FormData:ar,Blob:cr},protocols:["http","https","file","blob","url","data"]},wt=typeof window<"u"&&typeof document<"u",lr=(e=>wt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wt,hasStandardBrowserEnv:lr,hasStandardBrowserWebWorkerEnv:dr},Symbol.toStringTag,{value:"Module"})),k={...fr,...ur};function mr(e,t){return re(e,new k.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return k.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=hr(s[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(pr(r),s,n,0)}),n}return null}function Er(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Te={transitional:yt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(bt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return re(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Er(t)):t}],transformResponse:[function(t){const n=this.transitional||Te.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?g.from(l,g.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Te.headers[e]={}});const Re=Te,gr=c.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"]),yr=e=>{const t={};let n,r,s;return e&&e.split(` +var kt=Object.defineProperty;var xt=(e,t,n)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var N=(e,t,n)=>(xt(e,typeof t!="symbol"?t+"":t,n),n);import{r as x,w as Xe,l as Ye,M as Pt,O as Dt,u as Bt,ah as De,m as Ze,U as Ft,ax as Lt,ay as Nt,az as It,aA as Q,b as Qe,z as Vt,e as Ut,p as Mt,q as jt,as as zt}from"./vue-Dve2Dm07.js";import{E as Ht,b as G,c as qt,m as Wt,e as $t,g as Jt,i as Gt,f as Kt}from"./element-D97nkBxs.js";import{V as ye,a as Xt}from"./vxe-D4242vD8.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const U="v3-admin-vite";class _{}N(_,"TOKEN",`${U}-token-key`),N(_,"CONFIG_LAYOUT",`${U}-config-layout-key`),N(_,"SIDEBAR_STATUS",`${U}-sidebar-status-key`),N(_,"ACTIVE_THEME_NAME",`${U}-active-theme-name-key`),N(_,"VISITED_VIEWS",`${U}-visited-views-key`),N(_,"CACHED_VIEWS",`${U}-cached-views-key`);const Yt=()=>{const e=localStorage.getItem(_.CONFIG_LAYOUT);return e?JSON.parse(e):null},Zt=e=>{localStorage.setItem(_.CONFIG_LAYOUT,JSON.stringify(e))},ys=()=>{localStorage.removeItem(_.CONFIG_LAYOUT)},ws=()=>localStorage.getItem(_.SIDEBAR_STATUS),bs=e=>{localStorage.setItem(_.SIDEBAR_STATUS,e)},Qt=()=>localStorage.getItem(_.ACTIVE_THEME_NAME),en=e=>{localStorage.setItem(_.ACTIVE_THEME_NAME,e)},tn=()=>{const e=localStorage.getItem(_.VISITED_VIEWS);return JSON.parse(e??"[]")},nn=e=>{e.forEach(t=>{delete t.matched,delete t.redirectedFrom}),localStorage.setItem(_.VISITED_VIEWS,JSON.stringify(e))},rn=()=>{const e=localStorage.getItem(_.CACHED_VIEWS);return JSON.parse(e??"[]")},sn=e=>{localStorage.setItem(_.CACHED_VIEWS,JSON.stringify(e))},et="normal",on=[{title:"默认",name:et},{title:"黑暗",name:"dark"},{title:"深蓝",name:"dark-blue"}],we=x(Qt()||et),an=e=>{we.value=e},cn=e=>{document.documentElement.className=e},un=()=>{Xe(()=>{const e=we.value;cn(e),en(e)})};function ln(){return{themeList:on,activeThemeName:we,initTheme:un,setTheme:an}}var dn={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 fn=Ye({__name:"App",setup(e){const{initTheme:t}=ln();return t(),Ht({title:"Hello",type:"success",dangerouslyUseHTMLString:!0,message:"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)",duration:0,position:"bottom-right"}),(n,r)=>{const s=De("router-view"),o=De("el-config-provider");return Ze(),Pt(o,{locale:Bt(dn)},{default:Dt(()=>[Ft(s)]),_:1},8,["locale"])}}}),be=Lt(),mn="modulepreload",pn=function(e){return"/v3-admin-vite/"+e},Be={},v=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=Promise.all(n.map(f=>{if(f=pn(f),f in Be)return;Be[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(!!r)for(let w=o.length-1;w>=0;w--){const a=o[w];if(a.href===f&&(!h||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${m}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":mn,h||(p.as="script",p.crossOrigin=""),p.href=f,l&&p.setAttribute("nonce",l),document.head.appendChild(p),h)return new Promise((w,a)=>{p.addEventListener("load",w),p.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${f}`)))})}))}return s.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},hn=Nt("/v3-admin-vite/"),tt={dynamic:!0,defaultRoles:["DEFAULT_ROLE"],thirdLevelRouteCache:!1},I=()=>v(()=>import("./index-BNcNillM.js"),__vite__mapDeps([0,1,2,3,4,5,6])),nt=[{path:"/redirect",component:I,meta:{hidden:!0},children:[{path:":path(.*)",component:()=>v(()=>import("./index-B4rGPEOX.js"),__vite__mapDeps([7,1]))}]},{path:"/403",component:()=>v(()=>import("./403-mN_jjpbb.js"),__vite__mapDeps([8,9,1,10,3,5])),meta:{hidden:!0}},{path:"/404",component:()=>v(()=>import("./404-CcS5yolh.js"),__vite__mapDeps([11,9,1,10,3,5])),meta:{hidden:!0},alias:"/:pathMatch(.*)*"},{path:"/login",component:()=>v(()=>import("./index-D3Tt4rqX.js"),__vite__mapDeps([12,1,3,4,5,13])),meta:{hidden:!0}},{path:"/",component:I,redirect:"/dashboard",children:[{path:"dashboard",component:()=>v(()=>import("./index-DsGHvmyZ.js"),__vite__mapDeps([14,1,3,5,15])),name:"Dashboard",meta:{title:"首页",svgIcon:"dashboard",affix:!0}}]},{path:"/unocss",component:I,redirect:"/unocss/index",children:[{path:"index",component:()=>v(()=>import("./index-CwyieoU9.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:I,redirect:"/table/element-plus",name:"Table",meta:{title:"表格",elIcon:"Grid"},children:[{path:"element-plus",component:()=>v(()=>import("./index-BkEWbhUq.js"),__vite__mapDeps([17,18,3,1,5,19])),name:"ElementPlus",meta:{title:"Element Plus",keepAlive:!0}},{path:"vxe-table",component:()=>v(()=>import("./index-B1nCzJdx.js"),__vite__mapDeps([20,18,1,3,5])),name:"VxeTable",meta:{title:"Vxe Table",keepAlive:!0}}]},{path:"/menu",component:I,redirect:"/menu/menu1",name:"Menu",meta:{title:"多级路由",svgIcon:"menu"},children:[{path:"menu1",component:()=>v(()=>import("./index-B3CUqfN3.js"),__vite__mapDeps([21,1,3,5,22])),redirect:"/menu/menu1/menu1-1",name:"Menu1",meta:{title:"menu1"},children:[{path:"menu1-1",component:()=>v(()=>import("./index-w8hn_ZYV.js"),__vite__mapDeps([23,1])),name:"Menu1-1",meta:{title:"menu1-1",keepAlive:!0}},{path:"menu1-2",component:()=>v(()=>import("./index-jqfPGGJW.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:()=>v(()=>import("./index-xoD_zdVv.js"),__vite__mapDeps([25,1])),name:"Menu1-2-1",meta:{title:"menu1-2-1",keepAlive:!0}},{path:"menu1-2-2",component:()=>v(()=>import("./index-B48Yk8JQ.js"),__vite__mapDeps([26,1])),name:"Menu1-2-2",meta:{title:"menu1-2-2",keepAlive:!0}}]},{path:"menu1-3",component:()=>v(()=>import("./index-BlSLKvOr.js"),__vite__mapDeps([27,1])),name:"Menu1-3",meta:{title:"menu1-3",keepAlive:!0}}]},{path:"menu2",component:()=>v(()=>import("./index-D_bD-eGW.js"),__vite__mapDeps([28,1])),name:"Menu2",meta:{title:"menu2",keepAlive:!0}}]},{path:"/hook-demo",component:I,redirect:"/hook-demo/use-fetch-select",name:"HookDemo",meta:{title:"Hook",elIcon:"Menu",alwaysShow:!0},children:[{path:"use-fetch-select",component:()=>v(()=>import("./use-fetch-select-5LnerHoo.js"),__vite__mapDeps([29,1])),name:"UseFetchSelect",meta:{title:"useFetchSelect"}},{path:"use-fullscreen-loading",component:()=>v(()=>import("./use-fullscreen-loading-0kW39SUT.js"),__vite__mapDeps([30,3,1])),name:"UseFullscreenLoading",meta:{title:"useFullscreenLoading"}},{path:"use-watermark",component:()=>v(()=>import("./use-watermark-B_GYlypJ.js"),__vite__mapDeps([31,2,3,1,5,32])),name:"UseWatermark",meta:{title:"useWatermark"}}]}],Fe=[{path:"/permission",component:I,redirect:"/permission/page",name:"Permission",meta:{title:"权限",svgIcon:"lock",roles:["admin","editor"],alwaysShow:!0},children:[{path:"page",component:()=>v(()=>import("./page-5Rp_P7tm.js"),__vite__mapDeps([33,34,1,35,3,5,36])),name:"PagePermission",meta:{title:"页面级",roles:["admin"]}},{path:"directive",component:()=>v(()=>import("./directive-6bxpAqtB.js"),__vite__mapDeps([37,34,1,35,3,5,38])),name:"DirectivePermission",meta:{title:"按钮级"}}]}],F=It({history:hn,routes:nt});function En(){try{F.getRoutes().forEach(e=>{var r;const{name:t,meta:n}=e;t&&((r=n.roles)!=null&&r.length)&&F.hasRoute(t)&&F.removeRoute(t)})}catch{window.location.reload()}}var gn=(e=>(e[e.Mobile=0]="Mobile",e[e.Desktop=1]="Desktop",e))(gn||{}),rt=(e=>(e.Left="left",e.Top="top",e.LeftTop="left-top",e))(rt||{});const vs="opened",Ss="closed",yn={layoutMode:rt.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},wn={...yn,...Yt()},st=Q("settings",()=>{const e={};for(const[n,r]of Object.entries(wn)){const s=x(r);e[n]=s,Qe(s,()=>{const o=t();Zt(o)})}const t=()=>{const n={};for(const[r,s]of Object.entries(e))n[r]=s.value;return n};return e}),bn=Q("tags-view",()=>{const{cacheTagsView:e}=st(),t=x(e?tn():[]),n=x(e?rn():[]);return Xe(()=>{nn(t.value),sn(n.value)}),{visitedViews:t,cachedViews:n,addVisitedView:u=>{const p=t.value.findIndex(w=>w.path===u.path);p!==-1?t.value[p].fullPath!==u.fullPath&&(t.value[p]={...u}):t.value.push({...u})},addCachedView:u=>{var p;typeof u.name=="string"&&(n.value.includes(u.name)||(p=u.meta)!=null&&p.keepAlive&&n.value.push(u.name))},delVisitedView:u=>{const p=t.value.findIndex(w=>w.path===u.path);p!==-1&&t.value.splice(p,1)},delCachedView:u=>{if(typeof u.name!="string")return;const p=n.value.indexOf(u.name);p!==-1&&n.value.splice(p,1)},delOthersVisitedViews:u=>{t.value=t.value.filter(p=>{var w;return((w=p.meta)==null?void 0:w.affix)||p.path===u.path})},delOthersCachedViews:u=>{if(typeof u.name!="string")return;const p=n.value.indexOf(u.name);p!==-1?n.value=n.value.slice(p,p+1):n.value=[]},delAllVisitedViews:()=>{t.value=t.value.filter(u=>{var p;return(p=u.meta)==null?void 0:p.affix})},delAllCachedViews:()=>{n.value=[]}}});function J(e){for(var t=1;t"u")){i=J({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var f in i)i[f]&&(l+="; "+f,i[f]!==!0&&(l+="="+i[f].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],i={},l=0;lve.get(_.TOKEN),Le=e=>{ve.set(_.TOKEN,e)},Ne=()=>{ve.remove(_.TOKEN)};function ot(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sn}=Object.prototype,{getPrototypeOf:_e}=Object,ee=(e=>t=>{const n=Sn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>ee(t)===e),te=e=>t=>typeof t===e,{isArray:j}=Array,H=te("undefined");function _n(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const it=P("ArrayBuffer");function An(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&it(e.buffer),t}const Tn=te("string"),R=te("function"),at=te("number"),ne=e=>e!==null&&typeof e=="object",Rn=e=>e===!0||e===!1,K=e=>{if(ee(e)!=="object")return!1;const t=_e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},On=P("Date"),Cn=P("File"),kn=P("Blob"),xn=P("FileList"),Pn=e=>ne(e)&&R(e.pipe),Dn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||R(e.append)&&((t=ee(e))==="formdata"||t==="object"&&R(e.toString)&&e.toString()==="[object FormData]"))},Bn=P("URLSearchParams"),Fn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),j(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const ut=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,lt=e=>!H(e)&&e!==ut;function le(){const{caseless:e}=lt(this)&&this||{},t={},n=(r,s)=>{const o=e&&ct(t,s)||s;K(t[o])&&K(r)?t[o]=le(t[o],r):K(r)?t[o]=le({},r):j(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(q(t,(s,o)=>{n&&R(s)?e[o]=ot(s,n):e[o]=s},{allOwnKeys:r}),e),Nn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),In=(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)},Vn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&_e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Un=(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},Mn=e=>{if(!e)return null;if(j(e))return e;let t=e.length;if(!at(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_e(Uint8Array)),zn=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Hn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qn=P("HTMLFormElement"),Wn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$n=P("RegExp"),dt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Jn=e=>{dt(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(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+"'")})}})},Gn=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return j(e)?r(e):r(String(e).split(t)),n},Kn=()=>{},Xn=(e,t)=>(e=+e,Number.isFinite(e)?e:t),oe="abcdefghijklmnopqrstuvwxyz",Ve="0123456789",ft={DIGIT:Ve,ALPHA:oe,ALPHA_DIGIT:oe+oe.toUpperCase()+Ve},Yn=(e=16,t=ft.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Zn(e){return!!(e&&R(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qn=e=>{const t=new Array(10),n=(r,s)=>{if(ne(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=j(r)?[]:{};return q(r,(i,l)=>{const f=n(i,s+1);!H(f)&&(o[l]=f)}),t[s]=void 0,o}}return r};return n(e,0)},er=P("AsyncFunction"),tr=e=>e&&(ne(e)||R(e))&&R(e.then)&&R(e.catch),c={isArray:j,isArrayBuffer:it,isBuffer:_n,isFormData:Dn,isArrayBufferView:An,isString:Tn,isNumber:at,isBoolean:Rn,isObject:ne,isPlainObject:K,isUndefined:H,isDate:On,isFile:Cn,isBlob:kn,isRegExp:$n,isFunction:R,isStream:Pn,isURLSearchParams:Bn,isTypedArray:jn,isFileList:xn,forEach:q,merge:le,extend:Ln,trim:Fn,stripBOM:Nn,inherits:In,toFlatObject:Vn,kindOf:ee,kindOfTest:P,endsWith:Un,toArray:Mn,forEachEntry:zn,matchAll:Hn,isHTMLForm:qn,hasOwnProperty:Ie,hasOwnProp:Ie,reduceDescriptors:dt,freezeMethods:Jn,toObjectSet:Gn,toCamelCase:Wn,noop:Kn,toFiniteNumber:Xn,findKey:ct,global:ut,isContextDefined:lt,ALPHABET:ft,generateString:Yn,isSpecCompliantForm:Zn,toJSONObject:Qn,isAsyncFn:er,isThenable:tr};function g(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(g,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mt=g.prototype,pt={};["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=>{pt[e]={value:e}});Object.defineProperties(g,pt);Object.defineProperty(mt,"isAxiosError",{value:!0});g.from=(e,t,n,r,s,o)=>{const i=Object.create(mt);return c.toFlatObject(e,i,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),g.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const nr=null;function de(e){return c.isPlainObject(e)||c.isArray(e)}function ht(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function Ue(e,t,n){return e?e.concat(t).map(function(s,o){return s=ht(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function rr(e){return c.isArray(e)&&!e.some(de)}const sr=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function re(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,E){return!c.isUndefined(E[d])});const r=n.metaTokens,s=n.visitor||m,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function h(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!f&&c.isBlob(a))throw new g("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?f&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function m(a,d,E){let y=a;if(a&&!E&&typeof a=="object"){if(c.endsWith(d,"{}"))d=r?d:d.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&rr(a)||(c.isFileList(a)||c.endsWith(d,"[]"))&&(y=c.toArray(a)))return d=ht(d),y.forEach(function(T,b){!(c.isUndefined(T)||T===null)&&t.append(i===!0?Ue([d],b,o):i===null?d:d+"[]",h(T))}),!1}return de(a)?!0:(t.append(Ue(E,d,o),h(a)),!1)}const u=[],p=Object.assign(sr,{defaultVisitor:m,convertValue:h,isVisitable:de});function w(a,d){if(!c.isUndefined(a)){if(u.indexOf(a)!==-1)throw Error("Circular reference detected in "+d.join("."));u.push(a),c.forEach(a,function(y,S){(!(c.isUndefined(y)||y===null)&&s.call(t,y,c.isString(S)?S.trim():S,d,p))===!0&&w(y,d?d.concat(S):[S])}),u.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Me(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ae(e,t){this._pairs=[],e&&re(e,this,t)}const Et=Ae.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Me)}:Me;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function or(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gt(e,t,n){if(!t)return e;const r=n&&n.encode||or,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new Ae(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class je{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ir=typeof URLSearchParams<"u"?URLSearchParams:Ae,ar=typeof FormData<"u"?FormData:null,cr=typeof Blob<"u"?Blob:null,ur={isBrowser:!0,classes:{URLSearchParams:ir,FormData:ar,Blob:cr},protocols:["http","https","file","blob","url","data"]},wt=typeof window<"u"&&typeof document<"u",lr=(e=>wt&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),dr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:wt,hasStandardBrowserEnv:lr,hasStandardBrowserWebWorkerEnv:dr},Symbol.toStringTag,{value:"Module"})),k={...fr,...ur};function mr(e,t){return re(e,new k.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return k.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pr(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hr(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,f?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=hr(s[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(pr(r),s,n,0)}),n}return null}function Er(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Te={transitional:yt,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(bt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mr(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return re(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Er(t)):t}],transformResponse:[function(t){const n=this.transitional||Te.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?g.from(l,g.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:k.classes.FormData,Blob:k.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{Te.headers[e]={}});const Re=Te,gr=c.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"]),yr=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&gr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ze=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function X(e){return e===!1||e==null?e:c.isArray(e)?e.map(X):String(e)}function wr(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 br=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ie(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function vr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Sr(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class se{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,f,h){const m=z(f);if(!m)throw new Error("header name must be a non-empty string");const u=c.findKey(s,m);(!u||s[u]===void 0||h===!0||h===void 0&&s[u]!==!1)&&(s[u||f]=X(l))}const i=(l,f)=>c.forEach(l,(h,m)=>o(h,m,f));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!br(t)?i(yr(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=z(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return wr(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ie(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=z(i),i){const l=c.findKey(r,i);l&&(!n||ie(r,r[l],l,n))&&(delete r[l],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||ie(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=X(s),delete n[o];return}const l=t?vr(o):String(o).trim();l!==o&&delete n[o],n[l]=X(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ze]=this[ze]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=z(i);r[l]||(Sr(s,i),r[l]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(se.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(se);const D=se;function ae(e,t){const n=this||Re,r=t||n,s=D.from(r.headers);let o=r.data;return c.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function vt(e){return!!(e&&e.__CANCEL__)}function W(e,t,n){g.call(this,e??"canceled",g.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(W,g,{__CANCEL__:!0});function _r(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new g("Request failed with status code "+n.status,[g.ERR_BAD_REQUEST,g.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ar=k.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Tr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function St(e,t){return e&&!Tr(t)?Rr(e,t):t}const Or=k.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;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=s(window.location.href),function(i){const l=c.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Cr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const h=Date.now(),m=r[o];i||(i=h),n[s]=f,r[s]=h;let u=o,p=0;for(;u!==s;)p+=n[u++],u=u%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),h-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,f=r(l),h=o<=i;n=o;const m={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:f||void 0,estimated:f&&i&&h?(i-o)/f:void 0,event:s};m[t?"download":"upload"]=!0,e(m)}}const xr=typeof XMLHttpRequest<"u",Pr=xr&&function(e){return new Promise(function(n,r){let s=e.data;const o=D.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,f;function h(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}let m;if(c.isFormData(s)){if(k.hasStandardBrowserEnv||k.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((m=o.getContentType())!==!1){const[d,...E]=m?m.split(";").map(y=>y.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...E].join("; "))}}let u=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(d+":"+E))}const p=St(e.baseURL,e.url);u.open(e.method.toUpperCase(),gt(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function w(){if(!u)return;const d=D.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:d,config:e,request:u};_r(function(T){n(T),h()},function(T){r(T),h()},y),u=null}if("onloadend"in u?u.onloadend=w:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(w)},u.onabort=function(){u&&(r(new g("Request aborted",g.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new g("Network Error",g.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||yt;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),r(new g(E,y.clarifyTimeoutError?g.ETIMEDOUT:g.ECONNABORTED,e,u)),u=null},k.hasStandardBrowserEnv&&(l&&c.isFunction(l)&&(l=l(e)),l||l!==!1&&Or(p))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&Ar.read(e.xsrfCookieName);d&&o.set(e.xsrfHeaderName,d)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&c.forEach(o.toJSON(),function(E,y){u.setRequestHeader(y,E)}),c.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",He(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",He(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=d=>{u&&(r(!d||d.type?new W(null,e,u):d),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));const a=Cr(p);if(a&&k.protocols.indexOf(a)===-1){r(new g("Unsupported protocol "+a+":",g.ERR_BAD_REQUEST,e));return}u.send(s||null)})},fe={http:nr,xhr:Pr};c.forEach(fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qe=e=>`- ${e}`,Dr=e=>c.isFunction(e)||e===null||e===!1,_t={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(qe).join(` diff --git a/static/index-DI1XgnB2.js b/static/index-DsGHvmyZ.js similarity index 91% rename from static/index-DI1XgnB2.js rename to static/index-DsGHvmyZ.js index f786e6a7..34166f4b 100644 --- a/static/index-DI1XgnB2.js +++ b/static/index-DsGHvmyZ.js @@ -1 +1 @@ -import{_ as c,e as _}from"./index-3-mGofWC.js";import{ah as s,m as n,p as r,U as a,l as i,M as p,Q as d,u as m}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-DBdOCPoM.js";import{ah as s,m as n,p as r,U as a,l as i,M as p,Q as d,u as m}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-CgDqt8bv.js b/static/index-jqfPGGJW.js similarity index 83% rename from static/index-CgDqt8bv.js rename to static/index-jqfPGGJW.js index b33198ab..f0437d22 100644 --- a/static/index-CgDqt8bv.js +++ b/static/index-jqfPGGJW.js @@ -1 +1 @@ -import{_ as n}from"./index-3-mGofWC.js";import{ah as e,m as c,p as a,U as o,O as s}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const x=n(_,[["render",m]]);export{x as default}; +import{_ as n}from"./index-DBdOCPoM.js";import{ah as e,m as c,p as a,U as o,O as s}from"./vue-Dve2Dm07.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.js";const _={},i={class:"app-container"};function m(p,d){const t=e("router-view"),r=e("el-card");return c(),a("div",i,[o(r,{header:"三级路由 - menu1-2"},{default:s(()=>[o(t)]),_:1})])}const x=n(_,[["render",m]]);export{x as default}; diff --git a/static/index.vue_vue_type_script_setup_true_lang-CgyoMCxv.js b/static/index.vue_vue_type_script_setup_true_lang-LY9QwYga.js similarity index 94% rename from static/index.vue_vue_type_script_setup_true_lang-CgyoMCxv.js rename to static/index.vue_vue_type_script_setup_true_lang-LY9QwYga.js index 7fb6947a..c29ac1a2 100644 --- a/static/index.vue_vue_type_script_setup_true_lang-CgyoMCxv.js +++ b/static/index.vue_vue_type_script_setup_true_lang-LY9QwYga.js @@ -1 +1 @@ -import{h as g}from"./index-3-mGofWC.js";import{A as T}from"./element-D97nkBxs.js";import{l as v,ah as o,m as c,M as p,O as e,U as r,p as C,a7 as B,u as i,F as M,q as _,T as V}from"./vue-Dve2Dm07.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(M,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,V(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-DBdOCPoM.js";import{A as T}from"./element-D97nkBxs.js";import{l as v,ah as o,m as c,M as p,O as e,U as r,p as C,a7 as B,u as i,F as M,q as _,T as V}from"./vue-Dve2Dm07.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(M,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,V(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-D1-25hnF.js b/static/page-5Rp_P7tm.js similarity index 76% rename from static/page-D1-25hnF.js rename to static/page-5Rp_P7tm.js index 1f2d6e37..25c4c1bf 100644 --- a/static/page-D1-25hnF.js +++ b/static/page-5Rp_P7tm.js @@ -1 +1 @@ -import{S as a}from"./SwitchRoles-Din5Zafg.js";import{l as o,ah as s,m as n,p as r,U as e,O as p,S as c}from"./vue-Dve2Dm07.js";import{_}from"./index-3-mGofWC.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-CVSdZDtk.js";import{l as o,ah as s,m as n,p as r,U as e,O as p,S as c}from"./vue-Dve2Dm07.js";import{_}from"./index-DBdOCPoM.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-Dw9dZStc.js b/static/use-watermark-B_GYlypJ.js similarity index 96% rename from static/use-watermark-Dw9dZStc.js rename to static/use-watermark-B_GYlypJ.js index 2fe10be9..63df280c 100644 --- a/static/use-watermark-Dw9dZStc.js +++ b/static/use-watermark-B_GYlypJ.js @@ -1 +1 @@ -import{u as f}from"./useWatermark-C5tfeNej.js";import{l as C,r as v,ah as m,m as y,p as b,q as i,U as t,O as a,u as r,S as l,aH as W,aI as g}from"./vue-Dve2Dm07.js";import{_ as w}from"./index-3-mGofWC.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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-C5tfeNej.js";import{l as C,r as v,ah as m,m as y,p as b,q as i,U as t,O as a,u as r,S as l,aH as W,aI as g}from"./vue-Dve2Dm07.js";import{_ as w}from"./index-DBdOCPoM.js";import"./element-D97nkBxs.js";import"./vxe-D4242vD8.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};