Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 11:29:20 +08:00

Deploying to gh-pages from @ 97f47ef165b51d2dd00899a8d6b94e4552db9a24 🚀

This commit is contained in:
pany-ang 2022-07-21 08:12:46 +00:00
parent 05f42a30da
commit 56689b3e94
36 changed files with 20 additions and 20 deletions

View File

@ -6,7 +6,7 @@
<link rel="icon" href="./favicon.ico" />
<link rel="stylesheet" href="./app-loading.css" />
<title>v3-admin-vite</title>
<script type="module" crossorigin src="./static/index.f8084797.js"></script>
<script type="module" crossorigin src="./static/index.6cc655ae.js"></script>
<link rel="stylesheet" href="./static/index.0c9de343.css">
</head>
<body>

1
static/401.919f8f0a.js Normal file
View File

@ -0,0 +1 @@
import{_ as t,o as e,b as n,z as s}from"./index.6cc655ae.js";const o={},a=[s("p",{style:{"text-align":"center","font-size":"140px","margin-bottom":"50px"}},"401",-1),s("p",{style:{"text-align":"center","font-size":"40px"}},"你没有权限去该页面",-1)];const r=t(o,[["render",function(t,s){return e(),n("div",null,a)}]]);export{r as default};

View File

@ -1 +0,0 @@
import{_ as t,o as e,b as n,z as s}from"./index.f8084797.js";const o={},r=[s("p",{style:{"text-align":"center","font-size":"140px","margin-bottom":"50px"}},"401",-1),s("p",{style:{"text-align":"center","font-size":"40px"}},"你没有权限去该页面",-1)];const a=t(o,[["render",function(t,s){return e(),n("div",null,r)}]]);export{a as default};

View File

@ -1 +0,0 @@
import{_ as t,o as e,b as n,z as s}from"./index.f8084797.js";const o={},r=[s("p",{style:{"text-align":"center","font-size":"140px","margin-bottom":"50px"}},"404",-1),s("p",{style:{"text-align":"center","font-size":"40px"}},"未找到你想要的页面",-1)];const a=t(o,[["render",function(t,s){return e(),n("div",null,r)}]]);export{a as default};

1
static/404.cccaa549.js Normal file
View File

@ -0,0 +1 @@
import{_ as t,o as e,b as n,z as s}from"./index.6cc655ae.js";const o={},a=[s("p",{style:{"text-align":"center","font-size":"140px","margin-bottom":"50px"}},"404",-1),s("p",{style:{"text-align":"center","font-size":"40px"}},"未找到你想要的页面",-1)];const r=t(o,[["render",function(t,s){return e(),n("div",null,a)}]]);export{r as default};

View File

@ -0,0 +1 @@
import{a,y as e,c as s,R as l,j as t,g as o,o as n,b as i,z as u,t as d,u as r,e as c,w as m}from"./index.6cc655ae.js";const p={style:{"margin-bottom":"15px"}},g={style:{display:"flex","align-items":"center"}},v=u("span",null,"切换权限:",-1),b=a({__name:"SwitchRoles",emits:["change"],setup(a,{emit:b}){const y=e(),h=s((()=>y.roles)),x=l(h.value[0]);return t(x,(async a=>{await y.changeRoles(a),b("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return n(),i("div",null,[u("div",p,"你的权限:"+d(r(h)),1),u("div",g,[v,c(l,{modelValue:x.value,"onUpdate:modelValue":e[0]||(e[0]=a=>x.value=a)},{default:m((()=>[c(s,{label:"editor"}),c(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}});export{b as _};

View File

@ -1 +0,0 @@
import{a,y as e,c as s,R as l,k as t,r as o,o as n,b as i,z as r,t as d,g as u,e as m,w as c}from"./index.f8084797.js";const p={style:{"margin-bottom":"15px"}},g={style:{display:"flex","align-items":"center"}},v=r("span",null,"切换权限:",-1),b=a({__name:"SwitchRoles",emits:["change"],setup(a,{emit:b}){const y=e(),f=s((()=>y.roles)),h=l(f.value[0]);return t(h,(async a=>{await y.changeRoles(a),b("change")})),(a,e)=>{const s=o("el-radio-button"),l=o("el-radio-group");return n(),i("div",null,[r("div",p,"你的权限:"+d(u(f)),1),r("div",g,[v,m(l,{modelValue:h.value,"onUpdate:modelValue":e[0]||(e[0]=a=>h.value=a)},{default:c((()=>[m(s,{label:"editor"}),m(s,{label:"admin"})])),_:1},8,["modelValue"])])])}}});export{b as _};

View File

@ -1 +0,0 @@
import{a1 as e,a as s,j as i,r as a,a2 as n,o,b as r,e as t,z as l,M as d,w as m,f as p,g as u,A as c,C as f,_}from"./index.f8084797.js";import{_ as y}from"./SwitchRoles.vue_vue_type_script_setup_true_lang.48f234c9.js";const v=s=>{if(s&&s instanceof Array&&s.length>0){const i=e().roles,a=s;return i.some((e=>a.includes(e)))}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1},g={class:"app-container"},k={class:"permission-alert"},h=f(" 只有 "),C=f("admin"),b=f("可以看见这个 "),x=f(" v-permission=\"['admin']\" "),z={class:"permission-alert"},P=f(" 只有 "),j=f("editor"),w=f("可以看见这个 "),R=f(" v-permission=\"['editor']\" "),A={class:"permission-alert"},E=f(" 两者 "),I=f("admin"),L=f("和 "),M=f("editor"),S=f("都可以看见这个 "),q=f(" v-permission=\"['admin', 'editor']\" "),B=f(" 在某些情况下,不适合使用 v-permission。例如: Element-Plus 的 el-tab 或 el-table-column 以及其它动态渲染 dom 的场景。你只能通过手动设置 v-if 来实现。 "),D=f(" admin 可以看见这个 "),F=f(" v-if=\"checkPermission(['admin'])\" "),G=f(" editor 可以看见这个 "),H=f(" v-if=\"checkPermission(['editor'])\" "),J=f(" 两者 admin 和 editor 都可以看见这个 "),K=f(" v-if=\"checkPermission(['admin', 'editor'])\" "),N=_(s({__name:"directive",setup(e){const s=i({key:1,handleRolesChange:()=>{s.key++}});return(e,i)=>{const f=a("el-tag"),_=a("el-tab-pane"),N=a("el-tabs"),O=n("permission");return o(),r("div",g,[t(y,{onChange:s.handleRolesChange},null,8,["onChange"]),(o(),r("div",{key:s.key,style:{"margin-top":"30px"}},[l("div",null,[d((o(),r("span",k,[h,t(f,null,{default:m((()=>[C])),_:1}),b])),[[O,["admin"]]]),d((o(),p(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[x])),_:1})),[[O,["admin"]]])]),l("div",null,[d((o(),r("span",z,[P,t(f,null,{default:m((()=>[j])),_:1}),w])),[[O,["editor"]]]),d((o(),p(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[R])),_:1})),[[O,["editor"]]])]),l("div",null,[d((o(),r("span",A,[E,t(f,null,{default:m((()=>[I])),_:1}),L,t(f,null,{default:m((()=>[M])),_:1}),S])),[[O,["admin","editor"]]]),d((o(),p(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[q])),_:1})),[[O,["admin","editor"]]])])])),(o(),r("div",{key:"checkPermission"+s.key,style:{"margin-top":"60px"}},[t(f,{type:"info",size:"large"},{default:m((()=>[B])),_:1}),t(N,{type:"border-card",style:{width:"550px","margin-top":"60px"}},{default:m((()=>[u(v)(["admin"])?(o(),p(_,{key:0,label:"admin"},{default:m((()=>[D,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[F])),_:1})])),_:1})):c("",!0),u(v)(["editor"])?(o(),p(_,{key:1,label:"editor"},{default:m((()=>[G,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[H])),_:1})])),_:1})):c("",!0),u(v)(["admin","editor"])?(o(),p(_,{key:2,label:"admin 和 editor"},{default:m((()=>[J,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[K])),_:1})])),_:1})):c("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-20ddcc2b"]]);export{N as default};

View File

@ -0,0 +1 @@
import{a1 as e,a as s,i,g as a,a2 as n,o,b as r,e as t,z as d,M as l,w as m,f as p,u,A as c,C as f,_}from"./index.6cc655ae.js";import{_ as y}from"./SwitchRoles.vue_vue_type_script_setup_true_lang.171d32d8.js";const v=s=>{if(s&&s instanceof Array&&s.length>0){const i=e().roles,a=s;return i.some((e=>a.includes(e)))}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1},g={class:"app-container"},k={class:"permission-alert"},h=f(" 只有 "),C=f("admin"),b=f("可以看见这个 "),x=f(" v-permission=\"['admin']\" "),z={class:"permission-alert"},P=f(" 只有 "),w=f("editor"),R=f("可以看见这个 "),j=f(" v-permission=\"['editor']\" "),A={class:"permission-alert"},E=f(" 两者 "),I=f("admin"),L=f("和 "),M=f("editor"),S=f("都可以看见这个 "),q=f(" v-permission=\"['admin', 'editor']\" "),B=f(" 在某些情况下,不适合使用 v-permission。例如: Element-Plus 的 el-tab 或 el-table-column 以及其它动态渲染 dom 的场景。你只能通过手动设置 v-if 来实现。 "),D=f(" admin 可以看见这个 "),F=f(" v-if=\"checkPermission(['admin'])\" "),G=f(" editor 可以看见这个 "),H=f(" v-if=\"checkPermission(['editor'])\" "),J=f(" 两者 admin 和 editor 都可以看见这个 "),K=f(" v-if=\"checkPermission(['admin', 'editor'])\" "),N=_(s({__name:"directive",setup(e){const s=i({key:1,handleRolesChange:()=>{s.key++}});return(e,i)=>{const f=a("el-tag"),_=a("el-tab-pane"),N=a("el-tabs"),O=n("permission");return o(),r("div",g,[t(y,{onChange:s.handleRolesChange},null,8,["onChange"]),(o(),r("div",{key:s.key,style:{"margin-top":"30px"}},[d("div",null,[l((o(),r("span",k,[h,t(f,null,{default:m((()=>[C])),_:1}),b])),[[O,["admin"]]]),l((o(),p(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[x])),_:1})),[[O,["admin"]]])]),d("div",null,[l((o(),r("span",z,[P,t(f,null,{default:m((()=>[w])),_:1}),R])),[[O,["editor"]]]),l((o(),p(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[j])),_:1})),[[O,["editor"]]])]),d("div",null,[l((o(),r("span",A,[E,t(f,null,{default:m((()=>[I])),_:1}),L,t(f,null,{default:m((()=>[M])),_:1}),S])),[[O,["admin","editor"]]]),l((o(),p(f,{class:"permission-sourceCode",type:"info",size:"large"},{default:m((()=>[q])),_:1})),[[O,["admin","editor"]]])])])),(o(),r("div",{key:"checkPermission"+s.key,style:{"margin-top":"60px"}},[t(f,{type:"info",size:"large"},{default:m((()=>[B])),_:1}),t(N,{type:"border-card",style:{width:"550px","margin-top":"60px"}},{default:m((()=>[u(v)(["admin"])?(o(),p(_,{key:0,label:"admin"},{default:m((()=>[D,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[F])),_:1})])),_:1})):c("",!0),u(v)(["editor"])?(o(),p(_,{key:1,label:"editor"},{default:m((()=>[G,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[H])),_:1})])),_:1})):c("",!0),u(v)(["admin","editor"])?(o(),p(_,{key:2,label:"admin 和 editor"},{default:m((()=>[J,t(f,{class:"permission-sourceCode",type:"info"},{default:m((()=>[K])),_:1})])),_:1})):c("",!0)])),_:1})]))])}}}),[["__scopeId","data-v-20ddcc2b"]]);export{N as default};

1
static/index.008cff09.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o as c,C as o}from"./index.6cc655ae.js";const r={},d={class:"app-container"},l=o(" menu 1-2-2 ");const u=a(r,[["render",function(a,o){const r=t("el-card");return c(),s("div",d,[e(r,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,r,o as t,C as o}from"./index.f8084797.js";const c={},d={class:"app-container"},l=o(" menu 1-3 ");const u=a(c,[["render",function(a,o){const c=r("el-card");return t(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

1
static/index.2486d0b2.js Normal file

File diff suppressed because one or more lines are too long

1
static/index.27310744.js Normal file
View File

@ -0,0 +1 @@
import{a,n as e,b as s,h as r,o as t}from"./index.6cc655ae.js";const n=a({__name:"index",setup(a){const{params:n,query:c}=r(),{path:o}=n;return e().replace({path:"/"+o,query:c}).catch((a=>{console.warn(a)})),(a,e)=>(t(),s("div"))}});export{n as default};

1
static/index.37f7ba80.js Normal file
View File

@ -0,0 +1 @@
import{_ as e,b as a,e as s,w as r,g as n,o as t}from"./index.6cc655ae.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[s(i,{header:"menu 1-2"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};

1
static/index.5f0958a5.js Normal file
View File

@ -0,0 +1 @@
import{a as e,R as o,i as a,b as l,e as r,z as s,w as n,Y as i,g as d,D as t,G as c,y as m,o as u,u as g,Z as p,$ as f,a0 as h,p as x,C as _,n as w,_ as b}from"./index.6cc655ae.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang.33ec9a02.js";const v=""+new URL("logo-text-2.f252b556.png",import.meta.url).href,y={class:"login-container"},V={class:"login-card"},C=(e=>(t("data-v-d119bcf9"),e=e(),c(),e))((()=>s("div",{class:"title"},[s("img",{src:v})],-1))),U={class:"content"},z={class:"show-code"},k=["src"],L=_(" 登 录 "),R=b(e({__name:"index",setup(e){const t=w(),c=o(),_=a({loading:!1,codeUrl:"",loginForm:{username:"admin",password:"12345678",code:"abcd"},loginRules:{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"}]},handleLogin:()=>{c.value.validate((e=>{if(!e)return!1;_.loading=!0,m().login({username:_.loginForm.username,password:_.loginForm.password}).then((()=>{_.loading=!1,t.push({path:"/"}).catch((e=>{console.warn(e)}))})).catch((()=>{_.loading=!1,_.createCode(),_.loginForm.password=""}))}))},createCode:()=>{_.loginForm.code="",_.codeUrl="/api/v1/login/code?"+1e3*Math.random()}});return(e,o)=>{const a=d("el-input"),t=d("el-form-item"),m=d("el-button"),w=d("el-form");return u(),l("div",y,[r(F,{class:"theme-switch"}),s("div",V,[C,s("div",U,[r(w,{ref_key:"loginFormDom",ref:c,model:_.loginForm,rules:_.loginRules,onKeyup:i(_.handleLogin,["enter"])},{default:n((()=>[r(t,{prop:"username"},{default:n((()=>[r(a,{modelValue:_.loginForm.username,"onUpdate:modelValue":o[0]||(o[0]=e=>_.loginForm.username=e),placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":g(p),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"password"},{default:n((()=>[r(a,{modelValue:_.loginForm.password,"onUpdate:modelValue":o[1]||(o[1]=e=>_.loginForm.password=e),placeholder:"密码",type:"password",tabindex:"2","prefix-icon":g(f),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"code"},{default:n((()=>[r(a,{modelValue:_.loginForm.code,"onUpdate:modelValue":o[2]||(o[2]=e=>_.loginForm.code=e),placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":g(h),maxlength:"4",size:"large"},null,8,["modelValue","prefix-icon"]),s("span",z,[s("img",{src:_.codeUrl,onClick:o[3]||(o[3]=(...e)=>_.createCode&&_.createCode(...e))},null,8,k)])])),_:1}),r(m,{loading:_.loading,type:"primary",size:"large",onClick:x(_.handleLogin,["prevent"])},{default:n((()=>[L])),_:1},8,["loading","onClick"])])),_:1},8,["model","rules","onKeyup"])])])])}}}),[["__scopeId","data-v-d119bcf9"]]);export{R as default};

1
static/index.61a0868b.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o as c,C as o}from"./index.6cc655ae.js";const r={},d={class:"app-container"},l=o(" menu 1-2-1 ");const u=a(r,[["render",function(a,o){const r=t("el-card");return c(),s("div",d,[e(r,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{a as e,R as o,j as a,b as l,e as r,z as s,w as n,Y as i,r as d,D as t,G as c,i as m,y as g,o as p,g as u,Z as f,$ as h,a0 as x,p as _,C as w,_ as b}from"./index.f8084797.js";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang.9f39cfbc.js";const v=""+new URL("logo-text-2.f252b556.png",import.meta.url).href,y={class:"login-container"},V={class:"login-card"},C=(e=>(t("data-v-d119bcf9"),e=e(),c(),e))((()=>s("div",{class:"title"},[s("img",{src:v})],-1))),U={class:"content"},z={class:"show-code"},k=["src"],L=w(" 登 录 "),R=b(e({__name:"index",setup(e){const t=m(),c=o(),w=a({loading:!1,codeUrl:"",loginForm:{username:"admin",password:"12345678",code:"abcd"},loginRules:{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"}]},handleLogin:()=>{c.value.validate((e=>{if(!e)return!1;w.loading=!0,g().login({username:w.loginForm.username,password:w.loginForm.password}).then((()=>{w.loading=!1,t.push({path:"/"}).catch((e=>{console.warn(e)}))})).catch((()=>{w.loading=!1,w.createCode(),w.loginForm.password=""}))}))},createCode:()=>{w.loginForm.code="",w.codeUrl="/api/v1/login/code?"+1e3*Math.random()}});return(e,o)=>{const a=d("el-input"),t=d("el-form-item"),m=d("el-button"),g=d("el-form");return p(),l("div",y,[r(F,{class:"theme-switch"}),s("div",V,[C,s("div",U,[r(g,{ref_key:"loginFormDom",ref:c,model:w.loginForm,rules:w.loginRules,onKeyup:i(w.handleLogin,["enter"])},{default:n((()=>[r(t,{prop:"username"},{default:n((()=>[r(a,{modelValue:w.loginForm.username,"onUpdate:modelValue":o[0]||(o[0]=e=>w.loginForm.username=e),placeholder:"用户名",type:"text",tabindex:"1","prefix-icon":u(f),size:"large"},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"password"},{default:n((()=>[r(a,{modelValue:w.loginForm.password,"onUpdate:modelValue":o[1]||(o[1]=e=>w.loginForm.password=e),placeholder:"密码",type:"password",tabindex:"2","prefix-icon":u(h),size:"large","show-password":""},null,8,["modelValue","prefix-icon"])])),_:1}),r(t,{prop:"code"},{default:n((()=>[r(a,{modelValue:w.loginForm.code,"onUpdate:modelValue":o[2]||(o[2]=e=>w.loginForm.code=e),placeholder:"验证码",type:"text",tabindex:"3","prefix-icon":u(x),maxlength:"4",size:"large"},null,8,["modelValue","prefix-icon"]),s("span",z,[s("img",{src:w.codeUrl,onClick:o[3]||(o[3]=(...e)=>w.createCode&&w.createCode(...e))},null,8,k)])])),_:1}),r(m,{loading:w.loading,type:"primary",size:"large",onClick:_(w.handleLogin,["prevent"])},{default:n((()=>[L])),_:1},8,["loading","onClick"])])),_:1},8,["model","rules","onKeyup"])])])])}}}),[["__scopeId","data-v-d119bcf9"]]);export{R as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as e,b as a,e as r,w as s,r as n,o as t}from"./index.f8084797.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[r(i,{header:"menu 1"},{default:s((()=>[r(d)])),_:1})])}]]);export{c as default};

View File

@ -1 +1 @@
import{_ as a,b as n,o as s,a as e,R as r,c as t,l as i,f as o,h as d,y as c}from"./index.f8084797.js";const u={class:"app-container"};const l=a({},[["render",function(a,e){return s(),n("div",u,"Admin 权限可见")}]]),m={class:"app-container"};const p=a({},[["render",function(a,e){return s(),n("div",m,"Editor 权限可见")}]]),f=e({__name:"index",setup(a){const n=r("admin"),e=t((()=>c().roles));return i((()=>{e.value.includes("admin")||(n.value="editor")})),(a,e)=>(s(),o(d("admin"===n.value?l:p)))}});export{f as default};
import{_ as a,b as n,o as s,a as e,R as r,c as t,k as i,f as o,r as c,y as d}from"./index.6cc655ae.js";const u={class:"app-container"};const l=a({},[["render",function(a,e){return s(),n("div",u,"Admin 权限可见")}]]),m={class:"app-container"};const p=a({},[["render",function(a,e){return s(),n("div",m,"Editor 权限可见")}]]),f=e({__name:"index",setup(a){const n=r("admin"),e=t((()=>d().roles));return i((()=>{e.value.includes("admin")||(n.value="editor")})),(a,e)=>(s(),o(c("admin"===n.value?l:p)))}});export{f as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,r,o as t,C as o}from"./index.f8084797.js";const c={},d={class:"app-container"},l=o(" menu 1-2-2 ");const u=a(c,[["render",function(a,o){const c=r("el-card");return t(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,r,o as t,C as o}from"./index.f8084797.js";const c={},d={class:"app-container"},l=o(" menu 1-1 ");const u=a(c,[["render",function(a,o){const c=r("el-card");return t(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,r,o as t,C as o}from"./index.f8084797.js";const c={},d={class:"app-container"},l=o(" menu 2 ");const u=a(c,[["render",function(a,o){const c=r("el-card");return t(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as a,b as s,e as n,w as e,r,o as t,C as o}from"./index.f8084797.js";const c={},d={class:"app-container"},l=o(" menu 1-2-1 ");const u=a(c,[["render",function(a,o){const c=r("el-card");return t(),s("div",d,[n(c,null,{default:e((()=>[l])),_:1})])}]]);export{u as default};

1
static/index.ac18cedf.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o as c,C as o}from"./index.6cc655ae.js";const r={},d={class:"app-container"},l=o(" menu 1-1 ");const u=a(r,[["render",function(a,o){const r=t("el-card");return c(),s("div",d,[e(r,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

1
static/index.b4526b3c.js Normal file
View File

@ -0,0 +1 @@
import{_ as e,b as a,e as s,w as r,g as n,o as t}from"./index.6cc655ae.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[s(i,{header:"menu 1"},{default:r((()=>[s(d)])),_:1})])}]]);export{c as default};

1
static/index.d36a83ea.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o as c,C as o}from"./index.6cc655ae.js";const r={},d={class:"app-container"},l=o(" menu 2 ");const u=a(r,[["render",function(a,o){const r=t("el-card");return c(),s("div",d,[e(r,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -1 +0,0 @@
import{_ as e,b as a,e as r,w as s,r as n,o as t}from"./index.f8084797.js";const o={class:"app-container"};const c=e({},[["render",function(e,c){const d=n("router-view"),i=n("el-card");return t(),a("div",o,[r(i,{header:"menu 1-2"},{default:s((()=>[r(d)])),_:1})])}]]);export{c as default};

View File

@ -1 +0,0 @@
import{a,i as e,b as s,u as r,o as t}from"./index.f8084797.js";const n=a({__name:"index",setup(a){const{params:n,query:o}=r(),{path:p}=n;return e().replace({path:"/"+p,query:o}).catch((a=>{console.warn(a)})),(a,e)=>(t(),s("div"))}});export{n as default};

View File

@ -1 +1 @@
import{_ as t,b as e,o as a,z as o}from"./index.f8084797.js";const n={},s={"h-full":"","app-container":""},i=[o("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[o("div",{ma:""},[o("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"unocss"),o("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),o("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[o("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),o("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 unocss 的使用案例,其他页面依旧采用 sass ",-1)];const r=t(n,[["render",function(t,o){return a(),e("div",s,i)}]]);export{r as default};
import{_ as t,b as e,o as a,z as o}from"./index.6cc655ae.js";const n={},s={"h-full":"","app-container":""},i=[o("div",{"h-full":"","text-center":"",flex:"","select-none":"","all:transition-400":""},[o("div",{ma:""},[o("div",{"text-5xl":"",fw100:"","animate-bounce-alt":"","animate-count-infinite":"","animate-1s":""},"unocss"),o("div",{op30:"","dark:op60":"","text-lg":"",fw300:"",m1:""},"具有高性能且极具灵活性的即时原子化 CSS 引擎"),o("div",{m2:"",flex:"","justify-center":"","text-lg":"",op30:"","dark:op60":"",hover:"op80","dark:hover":"op80"},[o("a",{href:"https://antfu.me/posts/reimagine-atomic-css-zh",target:"_blank"},"推荐阅读:重新构想原子化 CSS")])])],-1),o("div",{absolute:"","bottom-5":"","right-0":"","left-0":"","text-center":"",op30:"","dark:op60":"",fw300:""}," 该页面是一个 unocss 的使用案例,其他页面依旧采用 sass ",-1)];const r=t(n,[["render",function(t,o){return a(),e("div",s,i)}]]);export{r as default};

1
static/index.f76f616d.js Normal file
View File

@ -0,0 +1 @@
import{_ as a,b as s,e,w as n,g as t,o as c,C as o}from"./index.6cc655ae.js";const r={},d={class:"app-container"},l=o(" menu 1-3 ");const u=a(r,[["render",function(a,o){const r=t("el-card");return c(),s("div",d,[e(r,null,{default:n((()=>[l])),_:1})])}]]);export{u as default};

View File

@ -0,0 +1 @@
import{a as e,x as a,c as t,o as n,f as s,w as l,e as o,b as d,l as m,u as c,F as i,z as r,X as u,g as p,t as f}from"./index.6cc655ae.js";const _=e({__name:"index",setup(e){const _=a(),w=t((()=>_.themeList)),b=t((()=>_.activeThemeName)),x=e=>{_.setTheme(e)};return(e,a)=>{const t=p("el-icon"),_=p("el-tooltip"),g=p("el-dropdown-item"),h=p("el-dropdown-menu"),k=p("el-dropdown");return n(),s(k,{trigger:"click",onCommand:x},{dropdown:l((()=>[o(h,null,{default:l((()=>[(n(!0),d(i,null,m(c(w),((e,a)=>(n(),s(g,{key:a,disabled:c(b)===e.name,command:e.name},{default:l((()=>[r("span",null,f(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:l((()=>[r("div",null,[o(_,{effect:"dark",content:"主题模式",placement:"bottom"},{default:l((()=>[o(t,{size:20},{default:l((()=>[o(c(u))])),_:1})])),_:1})])])),_:1})}}});export{_};

View File

@ -1 +0,0 @@
import{a as e,x as a,c as t,r as n,o as s,f as o,w as d,e as l,b as m,m as i,g as r,F as c,z as u,X as f,t as p}from"./index.f8084797.js";const _=e({__name:"index",setup(e){const _=a(),w=t((()=>_.themeList)),b=t((()=>_.activeThemeName)),x=e=>{_.setTheme(e)};return(e,a)=>{const t=n("el-icon"),_=n("el-tooltip"),g=n("el-dropdown-item"),h=n("el-dropdown-menu"),k=n("el-dropdown");return s(),o(k,{trigger:"click",onCommand:x},{dropdown:d((()=>[l(h,null,{default:d((()=>[(s(!0),m(c,null,i(r(w),((e,a)=>(s(),o(g,{key:a,disabled:r(b)===e.name,command:e.name},{default:d((()=>[u("span",null,p(e.title),1)])),_:2},1032,["disabled","command"])))),128))])),_:1})])),default:d((()=>[u("div",null,[l(_,{effect:"dark",content:"主题模式",placement:"bottom"},{default:d((()=>[l(t,{size:20},{default:d((()=>[l(r(f))])),_:1})])),_:1})])])),_:1})}}});export{_};

1
static/page.3daff05d.js Normal file
View File

@ -0,0 +1 @@
import{a,n as s,g as e,o as t,b as n,e as o,w as r,C as c}from"./index.6cc655ae.js";import{_ as p}from"./SwitchRoles.vue_vue_type_script_setup_true_lang.171d32d8.js";const u={class:"app-container"},i=c(" 当前页面只有 admin 权限可见 "),_=a({__name:"page",setup(a){const c=s(),_=()=>{c.push({path:"/401"}).catch((a=>{console.warn(a)}))};return(a,s)=>{const c=e("el-tag");return t(),n("div",u,[o(c,{type:"success",size:"large",style:{"margin-bottom":"15px"}},{default:r((()=>[i])),_:1}),o(p,{onChange:_})])}}});export{_ as default};

View File

@ -1 +0,0 @@
import{a as s,i as a,r as e,o as t,b as n,e as o,w as r,C as p}from"./index.f8084797.js";import{_ as c}from"./SwitchRoles.vue_vue_type_script_setup_true_lang.48f234c9.js";const i={class:"app-container"},u=p(" 当前页面只有 admin 权限可见 "),_=s({__name:"page",setup(s){const p=a(),_=()=>{p.push({path:"/401"}).catch((s=>{console.warn(s)}))};return(s,a)=>{const p=e("el-tag");return t(),n("div",i,[o(p,{type:"success",size:"large",style:{"margin-bottom":"15px"}},{default:r((()=>[u])),_:1}),o(c,{onChange:_})])}}});export{_ as default};