chore: update

This commit is contained in:
xiaoxian521 2023-02-28 22:58:13 +08:00
parent 6b2b5dee78
commit 6696a3964e
182 changed files with 151 additions and 151 deletions

8
dist/index.html vendored
View File

@ -22,15 +22,15 @@
<script> <script>
window.process = {}; window.process = {};
</script> </script>
<script type="module" crossorigin src="/vue-pure-admin/static/js/index-32307c7c.js"></script> <script type="module" crossorigin src="/vue-pure-admin/static/js/index-df1c1cc8.js"></script>
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-8c77f9cd.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-e857c921.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/_commonjsHelpers-042e6b4d.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/_commonjsHelpers-042e6b4d.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/hot-cf4dcfeb.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/hot-cf4dcfeb.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-5e5694dd.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-5e5694dd.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/multiTags-d9cd5aad.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/multiTags-a8003b1c.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-4b83e049.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-4b83e049.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-2b23ea72.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-2b23ea72.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-e2e6de45.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/index-82bd9287.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/_plugin-vue_export-helper-c27b6911.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/_plugin-vue_export-helper-c27b6911.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/LinearGradient-99afdd31.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/LinearGradient-99afdd31.js">
<link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/mitt-7f99bbc0.js"> <link rel="modulepreload" crossorigin href="/vue-pure-admin/static/js/mitt-7f99bbc0.js">

File diff suppressed because one or more lines are too long

1
dist/static/js/Bar-831785f7.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./Bar.vue_vue_type_script_setup_true_lang-5b02d650.js";import"./app-84cf8abc.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-e857c921.js";import"./LinearGradient-99afdd31.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./Bar.vue_vue_type_script_setup_true_lang-b89dcc21.js";import"./app-29e8e368.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-8c77f9cd.js";import"./LinearGradient-99afdd31.js";export{o as default};

View File

@ -1 +1 @@
import{u as c}from"./app-29e8e368.js";import{z as n,e as l,I as f}from"./index-8c77f9cd.js";import{L as e}from"./LinearGradient-99afdd31.js";const g=Vue.defineComponent({__name:"Bar",setup(p){const{isDark:r}=n(),a=Vue.computed(()=>r.value?"dark":"light"),t=Vue.ref(null),{setOptions:o,resize:i}=l(t,{theme:a});return o({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["watchers","fork","star"]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{interval:0},data:["2021","2022","2023"],triggerEvent:!0}],yAxis:[{type:"value",triggerEvent:!0}],series:[{name:"watchers",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#e6a23c"},{offset:1,color:"#eebe77"}])},data:[200,320,800]},{name:"fork",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#f56c6c"},{offset:1,color:"#f89898"}])},data:[1600,2460,4500]},{name:"star",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#409EFF"},{offset:1,color:"#53a7ff"}])},data:[1450,3620,7500]}],addTooltip:!0},{name:"click",callback:s=>{}}),Vue.watch(()=>c().getSidebarStatus,()=>{f(600).then(()=>i())}),(s,u)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"barChartRef",ref:t,style:{width:"100%",height:"35vh"}},null,512))}});export{g as _}; import{u as c}from"./app-84cf8abc.js";import{z as n,e as l,I as f}from"./index-e857c921.js";import{L as e}from"./LinearGradient-99afdd31.js";const g=Vue.defineComponent({__name:"Bar",setup(p){const{isDark:r}=n(),a=Vue.computed(()=>r.value?"dark":"light"),t=Vue.ref(null),{setOptions:o,resize:i}=l(t,{theme:a});return o({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["watchers","fork","star"]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0},axisLabel:{interval:0},data:["2021","2022","2023"],triggerEvent:!0}],yAxis:[{type:"value",triggerEvent:!0}],series:[{name:"watchers",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#e6a23c"},{offset:1,color:"#eebe77"}])},data:[200,320,800]},{name:"fork",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#f56c6c"},{offset:1,color:"#f89898"}])},data:[1600,2460,4500]},{name:"star",type:"bar",barWidth:"15%",itemStyle:{color:new e(0,0,0,1,[{offset:0,color:"#409EFF"},{offset:1,color:"#53a7ff"}])},data:[1450,3620,7500]}],addTooltip:!0},{name:"click",callback:s=>{}}),Vue.watch(()=>c().getSidebarStatus,()=>{f(600).then(()=>i())}),(s,u)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"barChartRef",ref:t,style:{width:"100%",height:"35vh"}},null,512))}});export{g as _};

1
dist/static/js/DialogForm-b177e951.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./DialogForm.vue_vue_type_script_setup_true_lang-18be8c00.js";import"./message-1173cef9.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./DialogForm.vue_vue_type_script_setup_true_lang-2c79269f.js";import"./message-7116a117.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1 +1 @@
import{m as h}from"./message-7116a117.js";const F=Vue.defineComponent({__name:"DialogForm",props:{visible:{type:Boolean,default:!1},data:{type:Object,default:()=>({})}},emits:["update:visible"],setup(c,{emit:v}){const r=c,f=[{label:"网关",value:1},{label:"人工智能",value:2},{label:"CVM",value:3},{label:"防火墙",value:4},{label:"未知",value:5}],V=Vue.ref(),a=Vue.ref(!1),o=Vue.ref(r.data),d=Vue.ref(""),_=async l=>{l&&await l.validate(e=>{e&&(h("提交成功",{type:"success"}),a.value=!1,s(l))})},s=l=>{l&&l.resetFields()},p=()=>{a.value=!1,s(V.value)};Vue.watch(()=>a.value,l=>{v("update:visible",l)}),Vue.watch(()=>r.visible,l=>{a.value=l}),Vue.watch(()=>r.data,l=>{o.value=l});const b={name:[{required:!0,message:"请输入产品名称",trigger:"blur"}]};return(l,e)=>{const n=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-form-item"),i=Vue.resolveComponent("el-radio"),x=Vue.resolveComponent("el-radio-group"),C=Vue.resolveComponent("el-option"),w=Vue.resolveComponent("el-select"),N=Vue.resolveComponent("el-form"),m=Vue.resolveComponent("el-button"),y=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(y,{modelValue:a.value,"onUpdate:modelValue":e[6]||(e[6]=t=>a.value=t),title:"新建产品",width:680,draggable:"","before-close":p},{footer:Vue.withCtx(()=>[Vue.createVNode(m,{onClick:p},{default:Vue.withCtx(()=>[Vue.createTextVNode("取消")]),_:1}),Vue.createVNode(m,{type:"primary",onClick:e[5]||(e[5]=t=>_(V.value))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 确定 ")]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(N,{ref_key:"ruleFormRef",ref:V,model:o.value,rules:b,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:"产品名称",prop:"name"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:o.value.name,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.name=t),style:{width:"480px"},placeholder:"请输入产品名称"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品状态",prop:"status"},{default:Vue.withCtx(()=>[Vue.createVNode(x,{modelValue:o.value.status,"onUpdate:modelValue":e[1]||(e[1]=t=>o.value.status=t)},{default:Vue.withCtx(()=>[Vue.createVNode(i,{label:"0"},{default:Vue.withCtx(()=>[Vue.createTextVNode("已停用")]),_:1}),Vue.createVNode(i,{label:"1"},{default:Vue.withCtx(()=>[Vue.createTextVNode("已启用")]),_:1})]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品描述",prop:"description"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:o.value.description,"onUpdate:modelValue":e[2]||(e[2]=t=>o.value.description=t),style:{width:"480px"},placeholder:"请输入产品描述"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品类型",prop:"type"},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:o.value.type,"onUpdate:modelValue":e[3]||(e[3]=t=>o.value.type=t),clearable:"",style:{width:"480px"}},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(f,(t,g)=>Vue.createVNode(C,{key:g,value:t.value,label:t.label},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.label),1)]),_:2},1032,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"备注",prop:"mark"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:d.value,"onUpdate:modelValue":e[4]||(e[4]=t=>d.value=t),type:"textarea",style:{width:"480px"},placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{F as _}; import{m as h}from"./message-1173cef9.js";const F=Vue.defineComponent({__name:"DialogForm",props:{visible:{type:Boolean,default:!1},data:{type:Object,default:()=>({})}},emits:["update:visible"],setup(c,{emit:v}){const r=c,f=[{label:"网关",value:1},{label:"人工智能",value:2},{label:"CVM",value:3},{label:"防火墙",value:4},{label:"未知",value:5}],V=Vue.ref(),a=Vue.ref(!1),o=Vue.ref(r.data),d=Vue.ref(""),_=async l=>{l&&await l.validate(e=>{e&&(h("提交成功",{type:"success"}),a.value=!1,s(l))})},s=l=>{l&&l.resetFields()},p=()=>{a.value=!1,s(V.value)};Vue.watch(()=>a.value,l=>{v("update:visible",l)}),Vue.watch(()=>r.visible,l=>{a.value=l}),Vue.watch(()=>r.data,l=>{o.value=l});const b={name:[{required:!0,message:"请输入产品名称",trigger:"blur"}]};return(l,e)=>{const n=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-form-item"),i=Vue.resolveComponent("el-radio"),x=Vue.resolveComponent("el-radio-group"),C=Vue.resolveComponent("el-option"),w=Vue.resolveComponent("el-select"),N=Vue.resolveComponent("el-form"),m=Vue.resolveComponent("el-button"),y=Vue.resolveComponent("el-dialog");return Vue.openBlock(),Vue.createBlock(y,{modelValue:a.value,"onUpdate:modelValue":e[6]||(e[6]=t=>a.value=t),title:"新建产品",width:680,draggable:"","before-close":p},{footer:Vue.withCtx(()=>[Vue.createVNode(m,{onClick:p},{default:Vue.withCtx(()=>[Vue.createTextVNode("取消")]),_:1}),Vue.createVNode(m,{type:"primary",onClick:e[5]||(e[5]=t=>_(V.value))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 确定 ")]),_:1})]),default:Vue.withCtx(()=>[Vue.createVNode(N,{ref_key:"ruleFormRef",ref:V,model:o.value,rules:b,"label-width":"100px"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:"产品名称",prop:"name"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:o.value.name,"onUpdate:modelValue":e[0]||(e[0]=t=>o.value.name=t),style:{width:"480px"},placeholder:"请输入产品名称"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品状态",prop:"status"},{default:Vue.withCtx(()=>[Vue.createVNode(x,{modelValue:o.value.status,"onUpdate:modelValue":e[1]||(e[1]=t=>o.value.status=t)},{default:Vue.withCtx(()=>[Vue.createVNode(i,{label:"0"},{default:Vue.withCtx(()=>[Vue.createTextVNode("已停用")]),_:1}),Vue.createVNode(i,{label:"1"},{default:Vue.withCtx(()=>[Vue.createTextVNode("已启用")]),_:1})]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品描述",prop:"description"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:o.value.description,"onUpdate:modelValue":e[2]||(e[2]=t=>o.value.description=t),style:{width:"480px"},placeholder:"请输入产品描述"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"产品类型",prop:"type"},{default:Vue.withCtx(()=>[Vue.createVNode(w,{modelValue:o.value.type,"onUpdate:modelValue":e[3]||(e[3]=t=>o.value.type=t),clearable:"",style:{width:"480px"}},{default:Vue.withCtx(()=>[(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(f,(t,g)=>Vue.createVNode(C,{key:g,value:t.value,label:t.label},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(t.label),1)]),_:2},1032,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"备注",prop:"mark"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{modelValue:d.value,"onUpdate:modelValue":e[4]||(e[4]=t=>d.value=t),type:"textarea",style:{width:"480px"},placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{F as _};

1
dist/static/js/Line-02ccd74e.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./Line.vue_vue_type_script_setup_true_lang-d270655c.js";import"./app-84cf8abc.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-e857c921.js";import"./index-2b23ea72.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./Line.vue_vue_type_script_setup_true_lang-eec339c5.js";import"./app-29e8e368.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-8c77f9cd.js";import"./index-2b23ea72.js";export{o as default};

View File

@ -1 +1 @@
import{u as m}from"./app-29e8e368.js";import{z as p,e as u,I as f}from"./index-8c77f9cd.js";import{a as d}from"./index-2b23ea72.js";const x=Vue.defineComponent({__name:"Line",setup(h){const{isDark:l}=p(),n=Vue.computed(()=>l.value?"dark":"default"),r=Vue.ref(null),{setOptions:s,getInstance:i,resize:c}=u(r,{theme:n}),o=(()=>{const e=[];for(let a=1;a<31;a++)e.push(`${a}`);return e})();s({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["fork","star"]},calculable:!0,xAxis:[{triggerEvent:!0,type:"category",splitLine:{show:!1},axisTick:{show:!1},data:o}],yAxis:[{triggerEvent:!0,type:"value",splitLine:{show:!1},axisLine:{show:!0}}],dataZoom:[{type:"slider",show:!1,realtime:!0,startValue:0,endValue:24}],series:[{name:"fork",type:"line",symbolSize:10,symbol:"circle",color:"#f56c6c",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[509,917,2455,2610,2719,3033,3044,3085,2708,2809,2117,2e3,1455,1210,719,733,944,2285,2208,3372,3936,3693,2962,2810,3519,2455,2610,2719,2484,2078]},{name:"star",type:"line",symbolSize:10,symbol:"circle",color:"#53a7ff",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[2136,3693,2962,3810,3519,3484,3915,3823,3455,4310,4019,3433,3544,3885,4208,3372,3484,3915,3748,3675,4009,4433,3544,3285,4208,3372,3484,3915,3823,4265,4298]}],addTooltip:!0},{name:"click",callback:e=>{}},{name:"contextmenu",callback:e=>{}},{type:"zrender",name:"click",callback:e=>{}});let t=1;return d(()=>{t==o.length-24&&(t=0),i().dispatchAction({type:"dataZoom",startValue:t,endValue:t+24}),t++},2e3),Vue.watch(()=>m().getSidebarStatus,()=>{f(600).then(()=>c())}),(e,a)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"lineChartRef",ref:r,style:{width:"100%",height:"35vh"}},null,512))}});export{x as _}; import{u as m}from"./app-84cf8abc.js";import{z as p,e as u,I as f}from"./index-e857c921.js";import{a as d}from"./index-2b23ea72.js";const x=Vue.defineComponent({__name:"Line",setup(h){const{isDark:l}=p(),n=Vue.computed(()=>l.value?"dark":"default"),r=Vue.ref(null),{setOptions:s,getInstance:i,resize:c}=u(r,{theme:n}),o=(()=>{const e=[];for(let a=1;a<31;a++)e.push(`${a}`);return e})();s({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{bottom:"20px",right:"10px"},legend:{right:!0,data:["fork","star"]},calculable:!0,xAxis:[{triggerEvent:!0,type:"category",splitLine:{show:!1},axisTick:{show:!1},data:o}],yAxis:[{triggerEvent:!0,type:"value",splitLine:{show:!1},axisLine:{show:!0}}],dataZoom:[{type:"slider",show:!1,realtime:!0,startValue:0,endValue:24}],series:[{name:"fork",type:"line",symbolSize:10,symbol:"circle",color:"#f56c6c",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[509,917,2455,2610,2719,3033,3044,3085,2708,2809,2117,2e3,1455,1210,719,733,944,2285,2208,3372,3936,3693,2962,2810,3519,2455,2610,2719,2484,2078]},{name:"star",type:"line",symbolSize:10,symbol:"circle",color:"#53a7ff",markPoint:{label:{color:"#fff"},data:[{type:"max",name:"最大值"},{type:"min",name:"最小值"}]},data:[2136,3693,2962,3810,3519,3484,3915,3823,3455,4310,4019,3433,3544,3885,4208,3372,3484,3915,3748,3675,4009,4433,3544,3285,4208,3372,3484,3915,3823,4265,4298]}],addTooltip:!0},{name:"click",callback:e=>{}},{name:"contextmenu",callback:e=>{}},{type:"zrender",name:"click",callback:e=>{}});let t=1;return d(()=>{t==o.length-24&&(t=0),i().dispatchAction({type:"dataZoom",startValue:t,endValue:t+24}),t++},2e3),Vue.watch(()=>m().getSidebarStatus,()=>{f(600).then(()=>c())}),(e,a)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"lineChartRef",ref:r,style:{width:"100%",height:"35vh"}},null,512))}});export{x as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./Pie.vue_vue_type_script_setup_true_lang-6721d01e.js";import"./app-29e8e368.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-8c77f9cd.js";export{o as default};

1
dist/static/js/Pie-1c1c5d07.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./Pie.vue_vue_type_script_setup_true_lang-1fd4ecfa.js";import"./app-84cf8abc.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +1 @@
import{u as o}from"./app-29e8e368.js";import{z as i,e as s,I as l}from"./index-8c77f9cd.js";const f=Vue.defineComponent({__name:"Pie",setup(u){const{isDark:a}=i(),r=Vue.computed(()=>a.value?"dark":"light"),e=Vue.ref(null),{setOptions:c,resize:n}=s(e,{theme:r});return c({tooltip:{trigger:"item"},legend:{icon:"circle",right:!0},series:[{name:"Github信息",type:"pie",top:"20%",radius:"80%",center:["40%","50%"],color:["#e6a23c","#f56c6c","#53a7ff"],data:[{value:400,name:"watchers"},{value:1600,name:"forks"},{value:7200,name:"star"}]}]},{name:"click",callback:t=>{}},{type:"zrender",name:"click",callback:t=>{}}),Vue.watch(()=>o().getSidebarStatus,()=>{l(600).then(()=>n())}),(t,p)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"pieChartRef",ref:e,style:{width:"100%",height:"35vh"}},null,512))}});export{f as _}; import{u as o}from"./app-84cf8abc.js";import{z as i,e as s,I as l}from"./index-e857c921.js";const f=Vue.defineComponent({__name:"Pie",setup(u){const{isDark:a}=i(),r=Vue.computed(()=>a.value?"dark":"light"),e=Vue.ref(null),{setOptions:c,resize:n}=s(e,{theme:r});return c({tooltip:{trigger:"item"},legend:{icon:"circle",right:!0},series:[{name:"Github信息",type:"pie",top:"20%",radius:"80%",center:["40%","50%"],color:["#e6a23c","#f56c6c","#53a7ff"],data:[{value:400,name:"watchers"},{value:1600,name:"forks"},{value:7200,name:"star"}]}]},{name:"click",callback:t=>{}},{type:"zrender",name:"click",callback:t=>{}}),Vue.watch(()=>o().getSidebarStatus,()=>{l(600).then(()=>n())}),(t,p)=>(Vue.openBlock(),Vue.createElementBlock("div",{ref_key:"pieChartRef",ref:e,style:{width:"100%",height:"35vh"}},null,512))}});export{f as _};

View File

@ -1 +1 @@
import{a as o}from"./index-5e5694dd.js";import{a}from"./index-4b83e049.js";import{s as i,R as r}from"./index-8c77f9cd.js";const u=Pinia.defineStore({id:"pure-app",state:()=>{var e,t;return{sidebar:{opened:((e=i().getItem("responsive-layout"))==null?void 0:e.sidebarStatus)??a().SidebarStatus,withoutAnimation:!1,isClickCollapse:!1},layout:((t=i().getItem("responsive-layout"))==null?void 0:t.layout)??a().Layout,device:r()?"mobile":"desktop",sortSwap:!1}},getters:{getSidebarStatus(){return this.sidebar.opened},getDevice(){return this.device}},actions:{TOGGLE_SIDEBAR(e,t){const s=i().getItem("responsive-layout");e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!0,s.sidebarStatus=!0):!e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!1,s.sidebarStatus=!1):!e&&!t&&(this.sidebar.withoutAnimation=!1,this.sidebar.opened=!this.sidebar.opened,this.sidebar.isClickCollapse=!this.sidebar.opened,s.sidebarStatus=this.sidebar.opened),i().setItem("responsive-layout",s)},async toggleSideBar(e,t){await this.TOGGLE_SIDEBAR(e,t)},toggleDevice(e){this.device=e},setLayout(e){this.layout=e},setSortSwap(e){this.sortSwap=e}}});function l(){return u(o)}export{l as u}; import{a as o}from"./index-5e5694dd.js";import{a}from"./index-4b83e049.js";import{s as i,c as r}from"./index-e857c921.js";const u=Pinia.defineStore({id:"pure-app",state:()=>{var e,t;return{sidebar:{opened:((e=i().getItem("responsive-layout"))==null?void 0:e.sidebarStatus)??a().SidebarStatus,withoutAnimation:!1,isClickCollapse:!1},layout:((t=i().getItem("responsive-layout"))==null?void 0:t.layout)??a().Layout,device:r()?"mobile":"desktop",sortSwap:!1}},getters:{getSidebarStatus(){return this.sidebar.opened},getDevice(){return this.device}},actions:{TOGGLE_SIDEBAR(e,t){const s=i().getItem("responsive-layout");e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!0,s.sidebarStatus=!0):!e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!1,s.sidebarStatus=!1):!e&&!t&&(this.sidebar.withoutAnimation=!1,this.sidebar.opened=!this.sidebar.opened,this.sidebar.isClickCollapse=!this.sidebar.opened,s.sidebarStatus=this.sidebar.opened),i().setItem("responsive-layout",s)},async toggleSideBar(e,t){await this.TOGGLE_SIDEBAR(e,t)},toggleDevice(e){this.device=e},setLayout(e){this.layout=e},setSortSwap(e){this.sortSwap=e}}});function l(){return u(o)}export{l as u};

File diff suppressed because one or more lines are too long

1
dist/static/js/base-91b4ef56.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./base.vue_vue_type_script_setup_true_lang-1adeebc6.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./base.vue_vue_type_script_setup_true_lang-7f30a0a5.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1 +1 @@
import{t as o}from"./data-ec6a9b49.js";const l=Vue.defineComponent({__name:"base",setup(t){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(n,p)=>{const a=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(a,{data:Vue.unref(o),columns:e},null,8,["data"])}}});export{l as _}; import{t as o}from"./data-151625dc.js";const l=Vue.defineComponent({__name:"base",setup(t){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(n,p)=>{const a=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(a,{data:Vue.unref(o),columns:e},null,8,["data"])}}});export{l as _};

View File

@ -1 +1 @@
import{_ as o}from"./border.vue_vue_type_script_setup_true_lang-fc5c029a.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default}; import{_ as o}from"./border.vue_vue_type_script_setup_true_lang-750d833a.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +1 @@
import{t as a}from"./data-ec6a9b49.js";const l=Vue.defineComponent({__name:"border",setup(r){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(t,n)=>{const o=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(o,{data:Vue.unref(a),columns:e,border:""},null,8,["data"])}}});export{l as _}; import{t as a}from"./data-151625dc.js";const l=Vue.defineComponent({__name:"border",setup(r){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(t,n)=>{const o=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(o,{data:Vue.unref(a),columns:e,border:""},null,8,["data"])}}});export{l as _};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{u as t,w as u}from"./xlsx-e927f539.js";import{a as m}from"./data-11b60b52.js";import{d as i}from"./index-8c77f9cd.js";import{m as f}from"./message-7116a117.js";function w(){const r=Vue.ref(i(m,!0)),e=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}];return{columns:e,dataList:r,exportExcel:()=>{const s=r.value.map(o=>{const n=[];return e.forEach(c=>{n.push(o[c.prop])}),n}),a=[];e.forEach(o=>{a.push(o.label)}),s.unshift(a);const l=t.aoa_to_sheet(s),p=t.book_new();t.book_append_sheet(p,l,"数据报表"),u(p,"pure-admin-table.xlsx"),f("导出成功",{type:"success"})}}}export{w as useColumns}; import{u as t,w as u}from"./xlsx-e927f539.js";import{a as m}from"./data-719766e9.js";import{f as i}from"./index-e857c921.js";import{m as f}from"./message-1173cef9.js";function w(){const r=Vue.ref(i(m,!0)),e=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}];return{columns:e,dataList:r,exportExcel:()=>{const s=r.value.map(o=>{const n=[];return e.forEach(c=>{n.push(o[c.prop])}),n}),a=[];e.forEach(o=>{a.push(o.label)}),s.unshift(a);const l=t.aoa_to_sheet(s),p=t.book_new();t.book_append_sheet(p,l,"数据报表"),u(p,"pure-admin-table.xlsx"),f("导出成功",{type:"success"})}}}export{w as useColumns};

View File

@ -1 +1 @@
import{m as s}from"./message-7116a117.js";import{b as r}from"./data-11b60b52.js";import"./index-8c77f9cd.js";function m(a){const t=Vue.ref(""),o=[{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],n=Vue.reactive({pageSize:5,currentPage:1,layout:"prev, pager, next",total:r.length,background:!0,small:!0});function l({row:{name:e}}){return{cursor:"pointer",background:e===t.value?"#f5f7fa":""}}function u(e){t.value=e.name,a.value.blur(),s(`当前选中行的数据为:${JSON.stringify(e)}`,{type:"success"})}return{columns:o,pagination:n,selectValue:t,tableDataEdit:r,rowStyle:l,onRowClick:u}}export{m as useColumns}; import{m as s}from"./message-1173cef9.js";import{b as r}from"./data-719766e9.js";import"./index-e857c921.js";function m(a){const t=Vue.ref(""),o=[{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],n=Vue.reactive({pageSize:5,currentPage:1,layout:"prev, pager, next",total:r.length,background:!0,small:!0});function l({row:{name:e}}){return{cursor:"pointer",background:e===t.value?"#f5f7fa":""}}function u(e){t.value=e.name,a.value.blur(),s(`当前选中行的数据为:${JSON.stringify(e)}`,{type:"success"})}return{columns:o,pagination:n,selectValue:t,tableDataEdit:r,rowStyle:l,onRowClick:u}}export{m as useColumns};

View File

@ -1,4 +1,4 @@
import{t as g}from"./data-11b60b52.js";import{I as r,d as p}from"./index-8c77f9cd.js";function V(){const l=Vue.ref([]),a=Vue.ref(!0),t=Vue.ref("nohide"),u=Vue.ref("default"),s=Vue.ref(!1),o=Vue.ref("right"),f=[{label:"日期",prop:"date",hide:()=>t.value==="hideDate"},{label:"姓名",prop:"name",hide:()=>t.value==="hideName"},{label:"地址",prop:"address",hide:()=>t.value==="hideAddress"}],n=Vue.reactive({pageSize:10,currentPage:1,pageSizes:[10,15,20],total:0,align:"right",background:!0,small:!1}),i=Vue.reactive({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:` import{t as g}from"./data-719766e9.js";import{I as r,f as p}from"./index-e857c921.js";function V(){const l=Vue.ref([]),a=Vue.ref(!0),t=Vue.ref("nohide"),u=Vue.ref("default"),s=Vue.ref(!1),o=Vue.ref("right"),f=[{label:"日期",prop:"date",hide:()=>t.value==="hideDate"},{label:"姓名",prop:"name",hide:()=>t.value==="hideName"},{label:"地址",prop:"address",hide:()=>t.value==="hideAddress"}],n=Vue.reactive({pageSize:10,currentPage:1,pageSizes:[10,15,20],total:0,align:"right",background:!0,small:!1}),i=Vue.reactive({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:`
<path class="path" d=" <path class="path" d="
M 30 15 M 30 15
L 28 17 L 28 17

View File

@ -1 +1 @@
import{m as a}from"./message-7116a117.js";import{t as u}from"./data-ec6a9b49.js";import"./index-8c77f9cd.js";function i(){const t=Vue.ref(""),o=Vue.computed(()=>u.filter(e=>!t.value||e.name.toLowerCase().includes(t.value.toLowerCase()))),r=(e,l)=>{a(`您编辑了第 ${e} 行,数据为:${JSON.stringify(l)}`,{type:"success"})},n=(e,l)=>{a(`您删除了第 ${e} 行,数据为:${JSON.stringify(l)}`)};return{columns:[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{align:"right",headerRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-input"),{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,size:"small",clearable:!0,placeholder:"Type to search"},null),cellRenderer:({index:e,row:l})=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",onClick:()=>r(e+1,l)},{default:()=>[Vue.createTextVNode("Edit")]}),Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>n(e+1,l)},{default:()=>[Vue.createTextVNode("Delete")]})])}],filterTableData:o}}export{i as useColumns}; import{m as a}from"./message-1173cef9.js";import{t as u}from"./data-151625dc.js";import"./index-e857c921.js";function i(){const t=Vue.ref(""),o=Vue.computed(()=>u.filter(e=>!t.value||e.name.toLowerCase().includes(t.value.toLowerCase()))),r=(e,l)=>{a(`您编辑了第 ${e} 行,数据为:${JSON.stringify(l)}`,{type:"success"})},n=(e,l)=>{a(`您删除了第 ${e} 行,数据为:${JSON.stringify(l)}`)};return{columns:[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{align:"right",headerRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-input"),{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,size:"small",clearable:!0,placeholder:"Type to search"},null),cellRenderer:({index:e,row:l})=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",onClick:()=>r(e+1,l)},{default:()=>[Vue.createTextVNode("Edit")]}),Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>n(e+1,l)},{default:()=>[Vue.createTextVNode("Delete")]})])}],filterTableData:o}}export{i as useColumns};

View File

@ -1 +1 @@
import{b as r}from"./data-11b60b52.js";import{d as l,I as p,l as s}from"./index-8c77f9cd.js";function i(e){const t=Vue.ref(l(r,!0)),a=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return Vue.onMounted(()=>{p().then(()=>{const{setWatermark:o}=s(e.value.getTableDoms().tableWrapper);o("编程即艺术",{font:"16px Microsoft YaHei",globalAlpha:.8,forever:!0,width:252,height:80})})}),{columns:a,dataList:t}}export{i as useColumns}; import{b as r}from"./data-719766e9.js";import{f as l,I as p,l as s}from"./index-e857c921.js";function i(e){const t=Vue.ref(l(r,!0)),a=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return Vue.onMounted(()=>{p().then(()=>{const{setWatermark:o}=s(e.value.getTableDoms().tableWrapper);o("编程即艺术",{font:"16px Microsoft YaHei",globalAlpha:.8,forever:!0,width:252,height:80})})}),{columns:a,dataList:t}}export{i as useColumns};

View File

@ -1 +1 @@
import{d as i,z as n,e as p}from"./index-8c77f9cd.js";import{a as c}from"./data-11b60b52.js";import{m as u}from"./message-7116a117.js";import{t as f}from"./index-a022c7df.js";import"./index-2b23ea72.js";function w(){const e=Vue.ref(i(c,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:r}=n(),s=Vue.computed(()=>r.value?"dark":"light");return e.value.forEach((h,a)=>{const{setOptions:o}=p(f(`PieChartRef${a}`),{theme:s});o({tooltip:{trigger:"item",confine:!0},series:[{name:"Github信息",type:"pie",data:[{value:1067,name:"watchers"},{value:4037,name:"star"},{value:859,name:"forks"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},{name:"click",callback:({data:{name:l,value:m}})=>{u(`您点击了第 ${a+1} 行,图表标题为${l},图表数据为:${m}`,{type:"success"})}})}),{columns:t,dataList:e}}export{w as useColumns}; import{f as i,z as n,e as p}from"./index-e857c921.js";import{a as c}from"./data-719766e9.js";import{m as u}from"./message-1173cef9.js";import{t as f}from"./index-a022c7df.js";import"./index-2b23ea72.js";function w(){const e=Vue.ref(i(c,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:r}=n(),s=Vue.computed(()=>r.value?"dark":"light");return e.value.forEach((h,a)=>{const{setOptions:o}=p(f(`PieChartRef${a}`),{theme:s});o({tooltip:{trigger:"item",confine:!0},series:[{name:"Github信息",type:"pie",data:[{value:1067,name:"watchers"},{value:4037,name:"star"},{value:859,name:"forks"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},{name:"click",callback:({data:{name:l,value:m}})=>{u(`您点击了第 ${a+1} 行,图表标题为${l},图表数据为:${m}`,{type:"success"})}})}),{columns:t,dataList:e}}export{w as useColumns};

View File

@ -1 +1 @@
import{b as l}from"./data-11b60b52.js";import"./index-8c77f9cd.js";function d(r,o){const n=Vue.ref([]),c=[{type:"selection",align:"left"},{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],s=Vue.reactive({pageSize:10,currentPage:1,layout:"prev, pager, next",total:l.length,background:!0,small:!0});return{columns:c,pagination:s,selectValue:n,tableDataEdit:l,onSure:()=>{r.value.blur()},onClear:()=>{const{clearSelection:e}=o.value.getTableRef();e()},removeTag:e=>{const{toggleRowSelection:a}=o.value.getTableRef();a(l.filter(t=>t.name===e)[0],!1)},handleSelectionChange:e=>{const a=[];e.forEach(t=>{a.push(t.name)}),n.value=a}}}export{d as useColumns}; import{b as l}from"./data-719766e9.js";import"./index-e857c921.js";function d(r,o){const n=Vue.ref([]),c=[{type:"selection",align:"left"},{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],s=Vue.reactive({pageSize:10,currentPage:1,layout:"prev, pager, next",total:l.length,background:!0,small:!0});return{columns:c,pagination:s,selectValue:n,tableDataEdit:l,onSure:()=>{r.value.blur()},onClear:()=>{const{clearSelection:e}=o.value.getTableRef();e()},removeTag:e=>{const{toggleRowSelection:a}=o.value.getTableRef();a(l.filter(t=>t.name===e)[0],!1)},handleSelectionChange:e=>{const a=[];e.forEach(t=>{a.push(t.name)}),n.value=a}}}export{d as useColumns};

View File

@ -1,4 +1,4 @@
import{a as F}from"./data-11b60b52.js";import{d as W}from"./index-8c77f9cd.js";import{m as $}from"./message-7116a117.js";/*! ***************************************************************************** import{a as F}from"./data-719766e9.js";import{f as W}from"./index-e857c921.js";import{m as $}from"./message-1173cef9.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation. Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any Permission to use, copy, modify, and/or distribute this software for any

View File

@ -1 +1 @@
import{m as l}from"./message-7116a117.js";import{t as r}from"./data-ec6a9b49.js";import"./index-8c77f9cd.js";function s(){const o=[{label:"日期",prop:"date",cellRenderer:({row:e})=>Vue.createVNode("div",{style:"display: flex; align-items: center"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-online"),{icon:"ep:timer"},null),Vue.createVNode("span",{style:"margin-left: 10px"},[e.date])])},{label:"姓名",prop:"name",cellRenderer:({row:e})=>Vue.createVNode(Vue.resolveComponent("el-popover"),{effect:"light",trigger:"hover",placement:"top",width:"auto"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",null,[Vue.createTextVNode("name: "),e.name]),Vue.createVNode("div",null,[Vue.createTextVNode("address: "),e.address])]),reference:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),null,{default:()=>[e.name]})})},{label:"地址",prop:"address"},{label:"操作",cellRenderer:({index:e,row:t})=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",onClick:()=>a(e+1,t)},{default:()=>[Vue.createTextVNode("Edit")]}),Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>n(e+1,t)},{default:()=>[Vue.createTextVNode("Delete")]})])}],a=(e,t)=>{l(`您编辑了第 ${e} 行,数据为:${JSON.stringify(t)}`,{type:"success"})},n=(e,t)=>{l(`您删除了第 ${e} 行,数据为:${JSON.stringify(t)}`)};return{columns:o,tableData:r}}export{s as useColumns}; import{m as l}from"./message-1173cef9.js";import{t as r}from"./data-151625dc.js";import"./index-e857c921.js";function s(){const o=[{label:"日期",prop:"date",cellRenderer:({row:e})=>Vue.createVNode("div",{style:"display: flex; align-items: center"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-online"),{icon:"ep:timer"},null),Vue.createVNode("span",{style:"margin-left: 10px"},[e.date])])},{label:"姓名",prop:"name",cellRenderer:({row:e})=>Vue.createVNode(Vue.resolveComponent("el-popover"),{effect:"light",trigger:"hover",placement:"top",width:"auto"},{default:()=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode("div",null,[Vue.createTextVNode("name: "),e.name]),Vue.createVNode("div",null,[Vue.createTextVNode("address: "),e.address])]),reference:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),null,{default:()=>[e.name]})})},{label:"地址",prop:"address"},{label:"操作",cellRenderer:({index:e,row:t})=>Vue.createVNode(Vue.Fragment,null,[Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",onClick:()=>a(e+1,t)},{default:()=>[Vue.createTextVNode("Edit")]}),Vue.createVNode(Vue.resolveComponent("el-button"),{size:"small",type:"danger",onClick:()=>n(e+1,t)},{default:()=>[Vue.createTextVNode("Delete")]})])}],a=(e,t)=>{l(`您编辑了第 ${e} 行,数据为:${JSON.stringify(t)}`,{type:"success"})},n=(e,t)=>{l(`您删除了第 ${e} 行,数据为:${JSON.stringify(t)}`)};return{columns:o,tableData:r}}export{s as useColumns};

View File

@ -1 +1 @@
import{S as c}from"./sortable.esm-679e0872.js";import{d as s}from"./index-8c77f9cd.js";import{a as u}from"./data-11b60b52.js";function b(){const e=Vue.ref(s(u,!0)),n=o=>{o.preventDefault(),Vue.nextTick(()=>{const r=document.querySelector(".el-table__body-wrapper tbody");c.create(r,{animation:300,handle:".drag-btn",onEnd:({newIndex:t,oldIndex:a})=>{const l=e.value.splice(a,1)[0];e.value.splice(t,0,l)}})})};return{columns:[{label:"ID",prop:"id",cellRenderer:({row:o})=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-online"),{icon:"icon-park-outline:drag",class:"drag-btn cursor-grab",onMouseenter:r=>n(r)},null),Vue.createVNode("p",{class:"ml-[16px]"},[o.id])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],dataList:e}}export{b as useColumns}; import{S as c}from"./sortable.esm-679e0872.js";import{f as s}from"./index-e857c921.js";import{a as u}from"./data-719766e9.js";function b(){const e=Vue.ref(s(u,!0)),n=o=>{o.preventDefault(),Vue.nextTick(()=>{const r=document.querySelector(".el-table__body-wrapper tbody");c.create(r,{animation:300,handle:".drag-btn",onEnd:({newIndex:t,oldIndex:a})=>{const l=e.value.splice(a,1)[0];e.value.splice(t,0,l)}})})};return{columns:[{label:"ID",prop:"id",cellRenderer:({row:o})=>Vue.createVNode("div",{class:"flex items-center"},[Vue.createVNode(Vue.resolveComponent("iconify-icon-online"),{icon:"icon-park-outline:drag",class:"drag-btn cursor-grab",onMouseenter:r=>n(r)},null),Vue.createVNode("p",{class:"ml-[16px]"},[o.id])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],dataList:e}}export{b as useColumns};

View File

@ -1 +1 @@
import{b as m}from"./data-11b60b52.js";import{m as d}from"./message-7116a117.js";import{d as h,I as b}from"./index-8c77f9cd.js";import{d as g}from"./edit-pen-37b5ced2.js";import{C}from"./check-f53d8364.js";function y(){const a=Vue.ref({}),t=Vue.ref({}),o=Vue.ref(-1),r=Vue.ref(h(m,!0)),s=Vue.computed(()=>u=>{var e;return(e=a.value[u])==null?void 0:e.value}),l=Vue.computed(()=>u=>{var e;return(e=t.value[u])==null?void 0:e.editing}),n=Vue.computed(()=>(u,e=!1)=>["cursor-pointer","ml-2","transition","delay-100",e?["hover:scale-110","hover:text-red-500"]:l.value(u)&&["scale-150","text-red-500"]]),c=[{label:"ID可编辑",prop:"id",cellRenderer:({row:u,index:e})=>Vue.createVNode("div",{class:"flex-bc w-full h-[32px]",onMouseenter:()=>o.value=e,onMouseleave:()=>i(e)},[Vue.withDirectives(Vue.createVNode("p",null,[u.id]),[[Vue.vShow,!l.value(e)]]),Vue.createVNode(Vue.Transition,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster"},{default:()=>[Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("el-input"),{modelValue:s.value(e),onInput:f=>V(f,e)},null),[[Vue.vShow,l.value(e)]])]}),Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:C,class:n.value(e),onClick:()=>p(e)},null),[[Vue.vShow,l.value(e)]]),Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:g,class:n.value(e,!0),onClick:()=>v(u,e)},null),[[Vue.vShow,o.value===e&&!l.value(e)]])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];function v({id:u},e){a.value[e]=Object.assign({},a.value[e],{value:u}),t.value[e]=Object.assign({},t.value[e],{editing:!0})}function i(u){var e;(e=a.value[u])!=null&&e.value?o.value=u:o.value=-1}function V(u,e){a.value[e].value=u}function p(u){r.value[u].id=a.value[u].value,d(`您编辑了第 ${u+1} 行,编辑后数据为:${JSON.stringify(r.value[u])}`,{type:"success"}),t.value[u]=Object.assign({},t.value[u],{editing:!1}),b().then(()=>a.value[u].value=null)}return{columns:c,dataList:r}}export{y as useColumns}; import{b as m}from"./data-719766e9.js";import{m as h}from"./message-1173cef9.js";import{f as d,I as b}from"./index-e857c921.js";import{d as g}from"./edit-pen-37b5ced2.js";import{C}from"./check-f53d8364.js";function y(){const a=Vue.ref({}),t=Vue.ref({}),o=Vue.ref(-1),r=Vue.ref(d(m,!0)),s=Vue.computed(()=>u=>{var e;return(e=a.value[u])==null?void 0:e.value}),l=Vue.computed(()=>u=>{var e;return(e=t.value[u])==null?void 0:e.editing}),n=Vue.computed(()=>(u,e=!1)=>["cursor-pointer","ml-2","transition","delay-100",e?["hover:scale-110","hover:text-red-500"]:l.value(u)&&["scale-150","text-red-500"]]),c=[{label:"ID可编辑",prop:"id",cellRenderer:({row:u,index:e})=>Vue.createVNode("div",{class:"flex-bc w-full h-[32px]",onMouseenter:()=>o.value=e,onMouseleave:()=>i(e)},[Vue.withDirectives(Vue.createVNode("p",null,[u.id]),[[Vue.vShow,!l.value(e)]]),Vue.createVNode(Vue.Transition,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster"},{default:()=>[Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("el-input"),{modelValue:s.value(e),onInput:p=>V(p,e)},null),[[Vue.vShow,l.value(e)]])]}),Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:C,class:n.value(e),onClick:()=>f(e)},null),[[Vue.vShow,l.value(e)]]),Vue.withDirectives(Vue.createVNode(Vue.resolveComponent("iconify-icon-offline"),{icon:g,class:n.value(e,!0),onClick:()=>v(u,e)},null),[[Vue.vShow,o.value===e&&!l.value(e)]])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];function v({id:u},e){a.value[e]=Object.assign({},a.value[e],{value:u}),t.value[e]=Object.assign({},t.value[e],{editing:!0})}function i(u){var e;(e=a.value[u])!=null&&e.value?o.value=u:o.value=-1}function V(u,e){a.value[e].value=u}function f(u){r.value[u].id=a.value[u].value,h(`您编辑了第 ${u+1} 行,编辑后数据为:${JSON.stringify(r.value[u])}`,{type:"success"}),t.value[u]=Object.assign({},t.value[u],{editing:!1}),b().then(()=>a.value[u].value=null)}return{columns:c,dataList:r}}export{y as useColumns};

View File

@ -1 +1 @@
function i(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}function s(){const{pkg:e,lastBuildTime:t}={pkg:{dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.5","@logicflow/core":"^1.1.30","@logicflow/extension":"^1.1.30","@pureadmin/descriptions":"^1.1.0","@pureadmin/table":"^2.0.0","@pureadmin/utils":"^1.8.5","@vueuse/core":"^9.12.0","@vueuse/motion":"2.0.0-beta.12","@wangeditor/editor":"^5.1.21","@wangeditor/editor-for-vue":"^5.1.12","animate.css":"^4.1.1",axios:"^1.2.2","china-area-data":"^5.0.1",cropperjs:"^1.5.12",dayjs:"^1.11.7",echarts:"^5.4.1","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.2.30","element-resize-detector":"^1.2.4","intro.js":"^6.0.0","js-cookie":"^3.0.1",jsbarcode:"^3.11.5","md-editor-v3":"^2.7.2",mitt:"^3.0.0",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.0.30",qrcode:"^1.5.1",qs:"^6.11.0","responsive-storage":"^2.1.0",sortablejs:"^1.15.0",swiper:"^9.0.3",typeit:"^8.7.1","v-contextmenu":"3.0.0",vue:"^3.2.45","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.3","vue-pdf-embed":"^1.1.5","vue-router":"^4.1.6","vue-types":"^4.2.1","vue-virtual-scroller":"2.0.0-beta.7","vue3-danmaku":"^1.2.0",vuedraggable:"^4.1.0",xgplayer:"^2.32.2",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"13.1.0","@commitlint/config-conventional":"13.1.0","@iconify-icons/ep":"^1.2.10","@iconify-icons/ri":"^1.2.4","@iconify/vue":"^4.0.2","@intlify/unplugin-vue-i18n":"^0.8.1","@pureadmin/theme":"^3.0.0","@types/element-resize-detector":"1.1.3","@types/intro.js":"^5.1.0","@types/js-cookie":"^3.0.1","@types/mockjs":"^1.0.7","@types/node":"^18.11.9","@types/nprogress":"0.2.0","@types/qrcode":"^1.4.2","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.0","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","@vitejs/plugin-vue":"^4.0.0","@vitejs/plugin-vue-jsx":"^3.0.0","@vue/eslint-config-prettier":"^7.0.0","@vue/eslint-config-typescript":"^11.0.2",autoprefixer:"^10.4.13",cloc:"^2.11.0",cssnano:"^5.1.14",eslint:"^8.8.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-vue":"^9.7.0",husky:"^7.0.4","lint-staged":"11.1.2",picocolors:"^1.0.0",postcss:"^8.4.21","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.6",prettier:"^2.5.1","pretty-quick":"3.1.1",rimraf:"3.0.2","rollup-plugin-visualizer":"^5.9.0",sass:"^1.57.1","sass-loader":"^13.2.0",stylelint:"^14.3.0","stylelint-config-html":"^1.0.0","stylelint-config-prettier":"^9.0.3","stylelint-config-recommended":"^9.0.0","stylelint-config-standard":"^29.0.0","stylelint-order":"^5.0.0",svgo:"^3.0.2",tailwindcss:"^3.2.4",terser:"^5.16.1",typescript:"^4.9.4","unplugin-vue-define-options":"^1.0.0",vite:"^4.1.1","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"^2.9.6","vite-plugin-remove-console":"^1.3.0","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.1.0","vue-tsc":"^1.0.22"},name:"vue-pure-admin",version:"3.9.7"},lastBuildTime:"2023-02-16 12:43:34"},{version:r}=e;return{columns:[{label:"版本",cellRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:"small"},i(r)?r:{default:()=>[r]})},{label:"最后编译时间",cellRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:"small"},i(t)?t:{default:()=>[t]})},{label:"文档地址",cellRenderer:()=>Vue.createVNode("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("文档地址")])])},{label:"预览地址",cellRenderer:()=>Vue.createVNode("a",{href:"https://yiming_chang.gitee.io/vue-pure-admin",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("预览地址")])])},{label:"Github",cellRenderer:()=>Vue.createVNode("a",{href:"https://github.com/pure-admin/vue-pure-admin",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("Github")])])},{label:"QQ交流群",cellRenderer:()=>Vue.createVNode("a",{href:"https://jq.qq.com/?_wv=1027&k=E9fwmFGr",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("点击链接加入群聊【Pure Admin】")])])}]}}export{s as useColumns}; function i(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Vue.isVNode(e)}function s(){const{pkg:e,lastBuildTime:t}={pkg:{dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.5","@logicflow/core":"^1.1.30","@logicflow/extension":"^1.1.30","@pureadmin/descriptions":"^1.1.0","@pureadmin/table":"^2.0.0","@pureadmin/utils":"^1.8.5","@vueuse/core":"^9.12.0","@vueuse/motion":"2.0.0-beta.12","@wangeditor/editor":"^5.1.21","@wangeditor/editor-for-vue":"^5.1.12","animate.css":"^4.1.1",axios:"^1.2.2","china-area-data":"^5.0.1",cropperjs:"^1.5.12",dayjs:"^1.11.7",echarts:"^5.4.1","el-table-infinite-scroll":"^3.0.1","element-plus":"^2.2.30","element-resize-detector":"^1.2.4","intro.js":"^6.0.0","js-cookie":"^3.0.1",jsbarcode:"^3.11.5","md-editor-v3":"^2.7.2",mitt:"^3.0.0",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.0.30",qrcode:"^1.5.1",qs:"^6.11.0","responsive-storage":"^2.1.0",sortablejs:"^1.15.0",swiper:"^9.0.3",typeit:"^8.7.1","v-contextmenu":"3.0.0",vue:"^3.2.45","vue-i18n":"^9.2.2","vue-json-pretty":"^2.2.3","vue-pdf-embed":"^1.1.5","vue-router":"^4.1.6","vue-types":"^4.2.1","vue-virtual-scroller":"2.0.0-beta.7","vue3-danmaku":"^1.2.0",vuedraggable:"^4.1.0",xgplayer:"^2.32.2",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"13.1.0","@commitlint/config-conventional":"13.1.0","@iconify-icons/ep":"^1.2.10","@iconify-icons/ri":"^1.2.4","@iconify/vue":"^4.0.2","@intlify/unplugin-vue-i18n":"^0.8.1","@pureadmin/theme":"^3.0.0","@types/element-resize-detector":"1.1.3","@types/intro.js":"^5.1.0","@types/js-cookie":"^3.0.1","@types/mockjs":"^1.0.7","@types/node":"^18.11.9","@types/nprogress":"0.2.0","@types/qrcode":"^1.4.2","@types/qs":"^6.9.7","@types/sortablejs":"^1.15.0","@typescript-eslint/eslint-plugin":"^5.43.0","@typescript-eslint/parser":"^5.43.0","@vitejs/plugin-vue":"^4.0.0","@vitejs/plugin-vue-jsx":"^3.0.0","@vue/eslint-config-prettier":"^7.0.0","@vue/eslint-config-typescript":"^11.0.2",autoprefixer:"^10.4.13",cloc:"^2.11.0",cssnano:"^5.1.14",eslint:"^8.8.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-vue":"^9.7.0",husky:"^7.0.4","lint-staged":"11.1.2",picocolors:"^1.0.0",postcss:"^8.4.21","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.6",prettier:"^2.5.1","pretty-quick":"3.1.1",rimraf:"3.0.2","rollup-plugin-visualizer":"^5.9.0",sass:"^1.57.1","sass-loader":"^13.2.0",stylelint:"^14.3.0","stylelint-config-html":"^1.0.0","stylelint-config-prettier":"^9.0.3","stylelint-config-recommended":"^9.0.0","stylelint-config-standard":"^29.0.0","stylelint-order":"^5.0.0",svgo:"^3.0.2",tailwindcss:"^3.2.4",terser:"^5.16.1",typescript:"^4.9.4","unplugin-vue-define-options":"^1.0.0",vite:"^4.1.1","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"^2.9.6","vite-plugin-remove-console":"^1.3.0","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.1.0","vue-tsc":"^1.0.22"},name:"vue-pure-admin",version:"3.9.7"},lastBuildTime:"2023-02-28 22:57:11"},{version:r}=e;return{columns:[{label:"版本",cellRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:"small"},i(r)?r:{default:()=>[r]})},{label:"最后编译时间",cellRenderer:()=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:"small"},i(t)?t:{default:()=>[t]})},{label:"文档地址",cellRenderer:()=>Vue.createVNode("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("文档地址")])])},{label:"预览地址",cellRenderer:()=>Vue.createVNode("a",{href:"https://yiming_chang.gitee.io/vue-pure-admin",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("预览地址")])])},{label:"Github",cellRenderer:()=>Vue.createVNode("a",{href:"https://github.com/pure-admin/vue-pure-admin",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("Github")])])},{label:"QQ交流群",cellRenderer:()=>Vue.createVNode("a",{href:"https://jq.qq.com/?_wv=1027&k=E9fwmFGr",target:"_blank"},[Vue.createVNode("span",{style:"color: var(--el-color-primary)"},[Vue.createTextVNode("点击链接加入群聊【Pure Admin】")])])}]}}export{s as useColumns};

View File

@ -1 +1 @@
import{S as c}from"./sortable.esm-679e0872.js";import{d as s}from"./index-8c77f9cd.js";import{a as m}from"./data-11b60b52.js";function f(){const o=Vue.ref(s(m,!0)),e=Vue.ref([{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}]),t=Vue.ref([{label:"ID",prop:r=>e.value[r].prop},{label:"日期",prop:r=>e.value[r].prop},{label:"姓名",prop:r=>e.value[r].prop}]),l=r=>{r.preventDefault(),Vue.nextTick(()=>{const p=document.querySelector(".el-table__header-wrapper tr");c.create(p,{animation:300,delay:0,onEnd:({newIndex:n,oldIndex:a})=>{const u=e.value[a];e.value.splice(a,1),e.value.splice(n,0,u)}})})};return Vue.onMounted(()=>{Vue.nextTick(()=>{l(event)})}),{columns:t,dataList:o,columnsDrag:e}}export{f as useColumns}; import{S as c}from"./sortable.esm-679e0872.js";import{f as s}from"./index-e857c921.js";import{a as m}from"./data-719766e9.js";function v(){const o=Vue.ref(s(m,!0)),e=Vue.ref([{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}]),t=Vue.ref([{label:"ID",prop:r=>e.value[r].prop},{label:"日期",prop:r=>e.value[r].prop},{label:"姓名",prop:r=>e.value[r].prop}]),l=r=>{r.preventDefault(),Vue.nextTick(()=>{const p=document.querySelector(".el-table__header-wrapper tr");c.create(p,{animation:300,delay:0,onEnd:({newIndex:n,oldIndex:a})=>{const u=e.value[a];e.value.splice(a,1),e.value.splice(n,0,u)}})})};return Vue.onMounted(()=>{Vue.nextTick(()=>{l(event)})}),{columns:t,dataList:o,columnsDrag:e}}export{v as useColumns};

View File

@ -1 +1 @@
import{P as f}from"./print-a6e42845.js";import{b}from"./data-11b60b52.js";import{d as c}from"./index-8c77f9cd.js";function m(e){const a=Vue.ref(c(b,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],o=()=>{f(e.value.getTableDoms().tableWrapper).toPrint};function n({column:{property:r},rowIndex:d}){if(r==="id")return d<3?{background:"#87baf9"}:{background:"#87e8de"}}function l({columnIndex:r}){return r===0?{background:"#f3b2d0"}:{background:"#fafafa"}}function u({rowIndex:r}){return r%2===1?{background:"#ffa39e"}:{background:"#91d5ff"}}return{columns:t,dataList:a,print:o,rowStyle:u,cellStyle:n,headerCellStyle:l}}export{m as useColumns}; import{P as d}from"./print-a6e42845.js";import{b}from"./data-719766e9.js";import{f as c}from"./index-e857c921.js";function m(e){const a=Vue.ref(c(b,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],o=()=>{d(e.value.getTableDoms().tableWrapper).toPrint};function n({column:{property:r},rowIndex:f}){if(r==="id")return f<3?{background:"#87baf9"}:{background:"#87e8de"}}function l({columnIndex:r}){return r===0?{background:"#f3b2d0"}:{background:"#fafafa"}}function u({rowIndex:r}){return r%2===1?{background:"#ffa39e"}:{background:"#91d5ff"}}return{columns:t,dataList:a,print:o,rowStyle:u,cellStyle:n,headerCellStyle:l}}export{m as useColumns};

View File

@ -1 +0,0 @@
import{_ as o}from"./customIndex.vue_vue_type_script_setup_true_lang-0e1c5acd.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -0,0 +1 @@
import{_ as o}from"./customIndex.vue_vue_type_script_setup_true_lang-a900264f.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +1 @@
import{t as o}from"./data-ec6a9b49.js";const u=Vue.defineComponent({__name:"customIndex",setup(a){const t=[{type:"index",index:e=>e*2},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(e,p)=>{const n=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(n,{data:Vue.unref(o),columns:t},null,8,["data"])}}});export{u as _}; import{t as o}from"./data-151625dc.js";const u=Vue.defineComponent({__name:"customIndex",setup(a){const t=[{type:"index",index:e=>e*2},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(e,p)=>{const n=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(n,{data:Vue.unref(o),columns:t},null,8,["data"])}}});export{u as _};

View File

@ -1,4 +1,4 @@
import{a as T}from"./index-4b83e049.js";import{e as H}from"./mitt-7f99bbc0.js";import{r as w}from"./index-8c77f9cd.js";import{a as U,o as L,c as A,r as W,q}from"./index-e2e6de45.js";import{u as J}from"./app-29e8e368.js";import{u as $}from"./epTheme-80ea1c2b.js";import{a as K,r as X}from"./multiTags-d9cd5aad.js";function Y(){const{$storage:t,$config:e}=w(),o=()=>{K().multiTagsCache&&(!t.tags||t.tags.length===0)&&(t.tags=X),t.locale||(t.locale={locale:(e==null?void 0:e.Locale)??"zh"},VueI18n.useI18n().locale.value=(e==null?void 0:e.Locale)??"zh"),t.layout||(t.layout={layout:(e==null?void 0:e.Layout)??"vertical",theme:(e==null?void 0:e.Theme)??"default",darkMode:(e==null?void 0:e.DarkMode)??!1,sidebarStatus:(e==null?void 0:e.SidebarStatus)??!0,epThemeColor:(e==null?void 0:e.EpThemeColor)??"#409EFF"}),t.configure||(t.configure={grey:(e==null?void 0:e.Grey)??!1,weak:(e==null?void 0:e.Weak)??!1,hideTabs:(e==null?void 0:e.HideTabs)??!1,showLogo:(e==null?void 0:e.ShowLogo)??!0,showModel:(e==null?void 0:e.ShowModel)??"smart",multiTagsCache:(e==null?void 0:e.MultiTagsCache)??!1})},n=Vue.computed(()=>t==null?void 0:t.layout.layout),a=Vue.computed(()=>t.layout);return{layout:n,layoutTheme:a,initStorage:o}}const S="当前路由配置不正确,请检查配置";function Z(){var x;const t=J(),e=VueRouter.useRouter().options.routes,{wholeMenus:o}=Pinia.storeToRefs(U()),n=((x=T())==null?void 0:x.TooltipEffect)??"light",a=Vue.computed(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),s=Vue.computed(()=>{var u;return(u=L())==null?void 0:u.username}),d=Vue.computed(()=>(u,c)=>({background:u===c?$().epThemeColor:"",color:u===c?"#f4f4f5":"#000"})),m=Vue.computed(()=>(u,c)=>u===c?"":"dark:hover:!text-primary"),f=Vue.computed(()=>s.value?{marginRight:"10px"}:""),b=Vue.computed(()=>!t.getSidebarStatus),v=Vue.computed(()=>t.getDevice),{$storage:l,$config:r}=w(),i=Vue.computed(()=>{var u;return(u=l==null?void 0:l.layout)==null?void 0:u.layout}),y=Vue.computed(()=>r.Title);function C(u){const c=T().Title;c?document.title=`${A(u.title)} | ${c}`:document.title=A(u.title)}function P(){L().logOut()}function R(){W.push("/welcome")}function D(){H.emit("openPanel")}function j(){t.toggleSideBar()}function O(u){u==null||u.handleResize()}function F(u){var g;if(!u.children)return console.error(S);const c=/^http(s?):\/\//,h=(g=u.children[0])==null?void 0:g.path;return c.test(h)?u.path+"/"+h:h}function G(u,c){if(o.value.length===0||Q(u))return;let h="";const g=u.lastIndexOf("/");g>0&&(h=u.slice(0,g));function M(B,V){return V?V.map(p=>{p.path===B?p.redirect?M(p.redirect,p.children):H.emit("changLayoutRoute",{indexPath:B,parentPath:h}):p.children&&M(B,p.children)}):console.error(S)}M(u,c)}function Q(u){return q.includes(u)}return{title:y,device:v,layout:i,logout:P,routers:e,$storage:l,backHome:R,onPanel:D,getDivStyle:a,changeTitle:C,toggleSideBar:j,menuSelect:G,handleResize:O,resolvePath:F,isCollapse:b,pureApp:t,username:s,avatarsStyle:f,tooltipEffect:n,getDropdownItemStyle:d,getDropdownItemClass:m}}function we(t){const{$storage:e,changeTitle:o,handleResize:n}=Z(),{locale:a,t:s}=VueI18n.useI18n(),d=VueRouter.useRoute();function m(){e.locale={locale:"zh"},a.value="zh",t&&n(t.value)}function f(){e.locale={locale:"en"},a.value="en",t&&n(t.value)}return Vue.watch(()=>a.value,()=>{o(d.meta)}),{t:s,route:d,locale:a,translationCh:m,translationEn:f}}const ee={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",class:"globalization",viewBox:"0 0 512 512"},te=Vue.createElementVNode("path",{fill:"currentColor",d:"m478.33 433.6-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362 368 281.65 401.17 362zm-66.99-19.08a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73 39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93.92 1.19 1.83 2.35 2.74 3.51-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59 22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"},null,-1),ne=[te];function oe(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",ee,ne)}const xe={render:oe},k={outputDir:"",defaultScopeName:"",includeStyleWithColors:[],extract:!0,themeLinkTagId:"theme-link-tag",themeLinkTagInjectTo:"head",removeCssScopeName:!1,customThemeCssFileName:null,arbitraryMode:!1,defaultPrimaryColor:"",customThemeOutputPath:"/Users/zhangyi/Desktop/vue-pure-admin/node_modules/.pnpm/@pureadmin+theme@3.0.0/node_modules/@pureadmin/theme/setCustomTheme.js",styleTagId:"custom-theme-tagid",InjectDefaultStyleTagToHtml:!0,hueDiffControls:{low:0,high:0},multipleScopeVars:[{scopeName:"layout-theme-default",varsContent:` import{a as T}from"./index-4b83e049.js";import{e as H}from"./mitt-7f99bbc0.js";import{r as w}from"./index-e857c921.js";import{a as U,o as L,c as A,r as W,q}from"./index-82bd9287.js";import{u as J}from"./app-84cf8abc.js";import{u as $}from"./epTheme-a578ce2a.js";import{a as K,r as X}from"./multiTags-a8003b1c.js";function Y(){const{$storage:t,$config:e}=w(),o=()=>{K().multiTagsCache&&(!t.tags||t.tags.length===0)&&(t.tags=X),t.locale||(t.locale={locale:(e==null?void 0:e.Locale)??"zh"},VueI18n.useI18n().locale.value=(e==null?void 0:e.Locale)??"zh"),t.layout||(t.layout={layout:(e==null?void 0:e.Layout)??"vertical",theme:(e==null?void 0:e.Theme)??"default",darkMode:(e==null?void 0:e.DarkMode)??!1,sidebarStatus:(e==null?void 0:e.SidebarStatus)??!0,epThemeColor:(e==null?void 0:e.EpThemeColor)??"#409EFF"}),t.configure||(t.configure={grey:(e==null?void 0:e.Grey)??!1,weak:(e==null?void 0:e.Weak)??!1,hideTabs:(e==null?void 0:e.HideTabs)??!1,showLogo:(e==null?void 0:e.ShowLogo)??!0,showModel:(e==null?void 0:e.ShowModel)??"smart",multiTagsCache:(e==null?void 0:e.MultiTagsCache)??!1})},n=Vue.computed(()=>t==null?void 0:t.layout.layout),a=Vue.computed(()=>t.layout);return{layout:n,layoutTheme:a,initStorage:o}}const S="当前路由配置不正确,请检查配置";function Z(){var x;const t=J(),e=VueRouter.useRouter().options.routes,{wholeMenus:o}=Pinia.storeToRefs(U()),n=((x=T())==null?void 0:x.TooltipEffect)??"light",a=Vue.computed(()=>({width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",overflow:"hidden"})),s=Vue.computed(()=>{var u;return(u=L())==null?void 0:u.username}),d=Vue.computed(()=>(u,c)=>({background:u===c?$().epThemeColor:"",color:u===c?"#f4f4f5":"#000"})),m=Vue.computed(()=>(u,c)=>u===c?"":"dark:hover:!text-primary"),f=Vue.computed(()=>s.value?{marginRight:"10px"}:""),b=Vue.computed(()=>!t.getSidebarStatus),v=Vue.computed(()=>t.getDevice),{$storage:l,$config:r}=w(),i=Vue.computed(()=>{var u;return(u=l==null?void 0:l.layout)==null?void 0:u.layout}),y=Vue.computed(()=>r.Title);function C(u){const c=T().Title;c?document.title=`${A(u.title)} | ${c}`:document.title=A(u.title)}function P(){L().logOut()}function R(){W.push("/welcome")}function D(){H.emit("openPanel")}function j(){t.toggleSideBar()}function O(u){u==null||u.handleResize()}function F(u){var g;if(!u.children)return console.error(S);const c=/^http(s?):\/\//,h=(g=u.children[0])==null?void 0:g.path;return c.test(h)?u.path+"/"+h:h}function G(u,c){if(o.value.length===0||Q(u))return;let h="";const g=u.lastIndexOf("/");g>0&&(h=u.slice(0,g));function M(B,V){return V?V.map(p=>{p.path===B?p.redirect?M(p.redirect,p.children):H.emit("changLayoutRoute",{indexPath:B,parentPath:h}):p.children&&M(B,p.children)}):console.error(S)}M(u,c)}function Q(u){return q.includes(u)}return{title:y,device:v,layout:i,logout:P,routers:e,$storage:l,backHome:R,onPanel:D,getDivStyle:a,changeTitle:C,toggleSideBar:j,menuSelect:G,handleResize:O,resolvePath:F,isCollapse:b,pureApp:t,username:s,avatarsStyle:f,tooltipEffect:n,getDropdownItemStyle:d,getDropdownItemClass:m}}function we(t){const{$storage:e,changeTitle:o,handleResize:n}=Z(),{locale:a,t:s}=VueI18n.useI18n(),d=VueRouter.useRoute();function m(){e.locale={locale:"zh"},a.value="zh",t&&n(t.value)}function f(){e.locale={locale:"en"},a.value="en",t&&n(t.value)}return Vue.watch(()=>a.value,()=>{o(d.meta)}),{t:s,route:d,locale:a,translationCh:m,translationEn:f}}const ee={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em","aria-hidden":"true",class:"globalization",viewBox:"0 0 512 512"},te=Vue.createElementVNode("path",{fill:"currentColor",d:"m478.33 433.6-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362 368 281.65 401.17 362zm-66.99-19.08a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73 39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93.92 1.19 1.83 2.35 2.74 3.51-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59 22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"},null,-1),ne=[te];function oe(t,e){return Vue.openBlock(),Vue.createElementBlock("svg",ee,ne)}const xe={render:oe},k={outputDir:"",defaultScopeName:"",includeStyleWithColors:[],extract:!0,themeLinkTagId:"theme-link-tag",themeLinkTagInjectTo:"head",removeCssScopeName:!1,customThemeCssFileName:null,arbitraryMode:!1,defaultPrimaryColor:"",customThemeOutputPath:"/Users/zhangyi/Desktop/vue-pure-admin/node_modules/.pnpm/@pureadmin+theme@3.0.0/node_modules/@pureadmin/theme/setCustomTheme.js",styleTagId:"custom-theme-tagid",InjectDefaultStyleTagToHtml:!0,hueDiffControls:{low:0,high:0},multipleScopeVars:[{scopeName:"layout-theme-default",varsContent:`
$subMenuActiveText: #fff !default; $subMenuActiveText: #fff !default;
$menuBg: #001529 !default; $menuBg: #001529 !default;
$menuHover: #4091f7 !default; $menuHover: #4091f7 !default;

View File

@ -1 +1 @@
import{d as t}from"./index-8c77f9cd.js";const a=dayjs(new Date).format("YYYY-MM-DD"),e=[{date:a,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mike",address:"No. 189, Grove St, Los Angeles"}],i=t(e,!0),r=i.map(s=>Object.assign(s,{state:"California",city:"Los Angeles","post-code":"CA 90036"})),o=i.map((s,n)=>Object.assign(s,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${n+1}.jpg`})),S=i.map((s,n)=>Object.assign(s,{date:`${dayjs(new Date).format("YYYY-MM")}-${n+1}`})),d=[{date:"2016-05-03",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-02",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-04",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-01",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-08",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-06",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-07",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]}];export{r as a,S as b,d as c,o as d,e as t}; import{f as t}from"./index-e857c921.js";const a=dayjs(new Date).format("YYYY-MM-DD"),e=[{date:a,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:a,name:"Mike",address:"No. 189, Grove St, Los Angeles"}],i=t(e,!0),r=i.map(s=>Object.assign(s,{state:"California",city:"Los Angeles","post-code":"CA 90036"})),o=i.map((s,n)=>Object.assign(s,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${n+1}.jpg`})),S=i.map((s,n)=>Object.assign(s,{date:`${dayjs(new Date).format("YYYY-MM")}-${n+1}`})),d=[{date:"2016-05-03",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-02",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-04",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-01",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-08",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-06",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]},{date:"2016-05-07",name:"Tom",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114",family:[{name:"Jerry",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Spike",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"},{name:"Tyke",state:"California",city:"San Francisco",address:"3650 21st St, San Francisco",zip:"CA 94114"}]}];export{r as a,S as b,d as c,o as d,e as t};

View File

@ -1 +1 @@
import{d as t}from"./index-8c77f9cd.js";const s=dayjs(new Date).format("YYYY-MM-DD"),o=[{date:s,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mike",address:"No. 189, Grove St, Los Angeles"}];t(o,!0).map(e=>Object.assign(e,{state:"California",city:"Los Angeles","post-code":"CA 90036"}));t(o,!0).map((e,a)=>Object.assign(e,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${a+1}.jpg`}));t(o,!0).map((e,a)=>{delete e.date,Object.assign(e,{date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`})});const d=t(o,!0).map((e,a)=>(delete e.address,delete e.date,Object.assign({id:a+1,date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`},e))),n=t(o,!0).map((e,a)=>(delete e.date,Object.assign({id:a+1,date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`},e)));export{d as a,n as b,o as t}; import{f as t}from"./index-e857c921.js";const s=dayjs(new Date).format("YYYY-MM-DD"),o=[{date:s,name:"Tom",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Jack",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Dick",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Harry",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Sam",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Lucy",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mary",address:"No. 189, Grove St, Los Angeles"},{date:s,name:"Mike",address:"No. 189, Grove St, Los Angeles"}];t(o,!0).map(e=>Object.assign(e,{state:"California",city:"Los Angeles","post-code":"CA 90036"}));t(o,!0).map((e,a)=>Object.assign(e,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${a+1}.jpg`}));t(o,!0).map((e,a)=>{delete e.date,Object.assign(e,{date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`})});const d=t(o,!0).map((e,a)=>(delete e.address,delete e.date,Object.assign({id:a+1,date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`},e))),n=t(o,!0).map((e,a)=>(delete e.date,Object.assign({id:a+1,date:`${dayjs(new Date).format("YYYY-MM")}-${a+1}`},e)));export{d as a,n as b,o as t};

View File

@ -1 +1 @@
import{m as l}from"./message-7116a117.js";import{f as n,O as V}from"./index-8c77f9cd.js";const a=Vue.createElementVNode("div",null,"防抖debounce",-1),s=Vue.createElementVNode("div",{class:"mb-5"}," 所谓防抖,就是指触发事件后在 n 秒内函数只能执行一次,如果在 n 秒内又触发了事件,则会重新计算函数执行时间。 ",-1),r=Vue.createElementVNode("div",null,"节流throttle",-1),i=Vue.createElementVNode("div",{class:"mb-5"}," 所谓节流,就是指连续触发事件但是在 n 秒中只执行一次函数。节流会稀释函数的执行频率。 ",-1),_=Vue.defineComponent({name:"Debounce"}),x=Vue.defineComponent({..._,setup(m){const e=()=>l("恭喜你,这是一条成功消息",{type:"success"}),c=n(e,1e3,!0),u=n(e,1e3),d=V(e);return(C,h)=>{const t=Vue.resolveComponent("el-button"),o=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(o,{class:"mb-5",shadow:"never"},{header:Vue.withCtx(()=>[a]),default:Vue.withCtx(()=>[s,Vue.createVNode(t,{onClick:Vue.unref(c)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,只会执行第一次点击事件,立即执行 ")]),_:1},8,["onClick"]),Vue.createVNode(t,{onClick:Vue.unref(u)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,只会执行最后一次点击事件,延后执行 ")]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(o,{shadow:"never"},{header:Vue.withCtx(()=>[r]),default:Vue.withCtx(()=>[i,Vue.createVNode(t,{onClick:Vue.unref(d)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,每一秒只会执行一次点击事件 ")]),_:1},8,["onClick"])]),_:1})])}}});export{x as default}; import{m as l}from"./message-1173cef9.js";import{g as n,O as V}from"./index-e857c921.js";const a=Vue.createElementVNode("div",null,"防抖debounce",-1),s=Vue.createElementVNode("div",{class:"mb-5"}," 所谓防抖,就是指触发事件后在 n 秒内函数只能执行一次,如果在 n 秒内又触发了事件,则会重新计算函数执行时间。 ",-1),r=Vue.createElementVNode("div",null,"节流throttle",-1),i=Vue.createElementVNode("div",{class:"mb-5"}," 所谓节流,就是指连续触发事件但是在 n 秒中只执行一次函数。节流会稀释函数的执行频率。 ",-1),_=Vue.defineComponent({name:"Debounce"}),x=Vue.defineComponent({..._,setup(m){const e=()=>l("恭喜你,这是一条成功消息",{type:"success"}),c=n(e,1e3,!0),u=n(e,1e3),d=V(e);return(C,h)=>{const t=Vue.resolveComponent("el-button"),o=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(o,{class:"mb-5",shadow:"never"},{header:Vue.withCtx(()=>[a]),default:Vue.withCtx(()=>[s,Vue.createVNode(t,{onClick:Vue.unref(c)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,只会执行第一次点击事件,立即执行 ")]),_:1},8,["onClick"]),Vue.createVNode(t,{onClick:Vue.unref(u)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,只会执行最后一次点击事件,延后执行 ")]),_:1},8,["onClick"])]),_:1}),Vue.createVNode(o,{shadow:"never"},{header:Vue.withCtx(()=>[r]),default:Vue.withCtx(()=>[i,Vue.createVNode(t,{onClick:Vue.unref(d)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 连续点击我,每一秒只会执行一次点击事件 ")]),_:1},8,["onClick"])]),_:1})])}}});export{x as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
import{a as s}from"./index-5e5694dd.js";import{a as r}from"./index-4b83e049.js";import{s as o}from"./index-8c77f9cd.js";const m=Pinia.defineStore({id:"pure-epTheme",state:()=>{var t,e;return{epThemeColor:((t=o().getItem("responsive-layout"))==null?void 0:t.epThemeColor)??r().EpThemeColor,epTheme:((e=o().getItem("responsive-layout"))==null?void 0:e.theme)??r().Theme}},getters:{getEpThemeColor(){return this.epThemeColor},fill(){return this.epTheme==="light"?"#409eff":this.epTheme==="yellow"?"#d25f00":"#fff"}},actions:{setEpThemeColor(t){const e=o().getItem("responsive-layout");this.epTheme=e==null?void 0:e.theme,this.epThemeColor=t,e&&(e.epThemeColor=t,o().setItem("responsive-layout",e))}}});function l(){return m(s)}export{l as u}; import{a as s}from"./index-5e5694dd.js";import{a as r}from"./index-4b83e049.js";import{s as o}from"./index-e857c921.js";const m=Pinia.defineStore({id:"pure-epTheme",state:()=>{var t,e;return{epThemeColor:((t=o().getItem("responsive-layout"))==null?void 0:t.epThemeColor)??r().EpThemeColor,epTheme:((e=o().getItem("responsive-layout"))==null?void 0:e.theme)??r().Theme}},getters:{getEpThemeColor(){return this.epThemeColor},fill(){return this.epTheme==="light"?"#409eff":this.epTheme==="yellow"?"#d25f00":"#fff"}},actions:{setEpThemeColor(t){const e=o().getItem("responsive-layout");this.epTheme=e==null?void 0:e.theme,this.epThemeColor=t,e&&(e.epThemeColor=t,o().setItem("responsive-layout",e))}}});function l(){return m(s)}export{l as u};

View File

@ -1 +1 @@
import{_ as o}from"./expand.vue_vue_type_script_setup_true_lang-294610cc.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default}; import{_ as o}from"./expand.vue_vue_type_script_setup_true_lang-4782a91b.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +1 @@
import{c as r}from"./data-ec6a9b49.js";const u={class:"m-4"},p={class:"mb-2"},c={class:"mb-2"},V={class:"mb-2"},i={class:"mb-4"},m=Vue.createElementVNode("h3",null,"Family",-1),h=Vue.defineComponent({__name:"expand",setup(_){const a=Vue.ref(!1),l=Vue.ref(!1),s=[{type:"expand",slot:"expand"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],d=[{label:"Name",prop:"name"},{label:"State",prop:"state"},{label:"City",prop:"city"},{label:"Address",prop:"address"},{label:"Zip",prop:"zip"}];return(b,t)=>{const o=Vue.resolveComponent("el-switch"),n=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createTextVNode(" switch parent border: "),Vue.createVNode(o,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e)},null,8,["modelValue"]),Vue.createTextVNode(" switch child border: "),Vue.createVNode(o,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value=e)},null,8,["modelValue"]),Vue.createVNode(n,{data:Vue.unref(r),columns:s,border:a.value},{expand:Vue.withCtx(({row:e})=>[Vue.createElementVNode("div",u,[Vue.createElementVNode("p",p,"State: "+Vue.toDisplayString(e.state),1),Vue.createElementVNode("p",c,"City: "+Vue.toDisplayString(e.city),1),Vue.createElementVNode("p",V,"Address: "+Vue.toDisplayString(e.address),1),Vue.createElementVNode("p",i,"Zip: "+Vue.toDisplayString(e.zip),1),m,Vue.createVNode(n,{data:e.family,columns:d,border:l.value},null,8,["data","border"])])]),_:1},8,["data","border"])])}}});export{h as _}; import{c as r}from"./data-151625dc.js";const u={class:"m-4"},p={class:"mb-2"},c={class:"mb-2"},V={class:"mb-2"},i={class:"mb-4"},m=Vue.createElementVNode("h3",null,"Family",-1),h=Vue.defineComponent({__name:"expand",setup(_){const a=Vue.ref(!1),l=Vue.ref(!1),s=[{type:"expand",slot:"expand"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],d=[{label:"Name",prop:"name"},{label:"State",prop:"state"},{label:"City",prop:"city"},{label:"Address",prop:"address"},{label:"Zip",prop:"zip"}];return(b,t)=>{const o=Vue.resolveComponent("el-switch"),n=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createTextVNode(" switch parent border: "),Vue.createVNode(o,{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e)},null,8,["modelValue"]),Vue.createTextVNode(" switch child border: "),Vue.createVNode(o,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value=e)},null,8,["modelValue"]),Vue.createVNode(n,{data:Vue.unref(r),columns:s,border:a.value},{expand:Vue.withCtx(({row:e})=>[Vue.createElementVNode("div",u,[Vue.createElementVNode("p",p,"State: "+Vue.toDisplayString(e.state),1),Vue.createElementVNode("p",c,"City: "+Vue.toDisplayString(e.city),1),Vue.createElementVNode("p",V,"Address: "+Vue.toDisplayString(e.address),1),Vue.createElementVNode("p",i,"Zip: "+Vue.toDisplayString(e.zip),1),m,Vue.createVNode(n,{data:e.family,columns:d,border:l.value},null,8,["data","border"])])]),_:1},8,["data","border"])])}}});export{h as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./fixColumn.vue_vue_type_script_setup_true_lang-f89a5838.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default};

1
dist/static/js/fixColumn-fa13ee4a.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./fixColumn.vue_vue_type_script_setup_true_lang-4bd13aa9.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +1 @@
import{a as e}from"./data-ec6a9b49.js";const h=Vue.defineComponent({__name:"fixColumn",props:{height:{default:null}},setup(a){const t=a,n=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}];function i(l){}return(l,u)=>{const o=Vue.resolveComponent("el-button"),r=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(r,{data:t.height?Vue.unref(e).concat(Vue.unref(e)).concat(Vue.unref(e)):Vue.unref(e),columns:n,height:t.height},{operation:Vue.withCtx(({row:p})=>[Vue.createVNode(o,{link:"",type:"primary",size:"small",onClick:c=>void 0},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Detail ")]),_:2},1032,["onClick"]),Vue.createVNode(o,{link:"",type:"primary",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("Edit")]),_:1})]),_:1},8,["data","height"])}}});export{h as _}; import{a as e}from"./data-151625dc.js";const h=Vue.defineComponent({__name:"fixColumn",props:{height:{default:null}},setup(a){const t=a,n=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}];function i(l){}return(l,u)=>{const o=Vue.resolveComponent("el-button"),r=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(r,{data:t.height?Vue.unref(e).concat(Vue.unref(e)).concat(Vue.unref(e)):Vue.unref(e),columns:n,height:t.height},{operation:Vue.withCtx(({row:p})=>[Vue.createVNode(o,{link:"",type:"primary",size:"small",onClick:c=>void 0},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Detail ")]),_:2},1032,["onClick"]),Vue.createVNode(o,{link:"",type:"primary",size:"small"},{default:Vue.withCtx(()=>[Vue.createTextVNode("Edit")]),_:1})]),_:1},8,["data","height"])}}});export{h as _};

1
dist/static/js/fixHeader-28b4fb83.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./fixHeader.vue_vue_type_script_setup_true_lang-a0f71f0c.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./fixHeader.vue_vue_type_script_setup_true_lang-47284918.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1 +1 @@
import{t as e}from"./data-ec6a9b49.js";const u=Vue.defineComponent({__name:"fixHeader",setup(n){const a=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(o,r)=>{const t=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(t,{data:Vue.unref(e).concat(Vue.unref(e)).concat(Vue.unref(e)),columns:a,height:"360"},null,8,["data"])}}});export{u as _}; import{t as e}from"./data-151625dc.js";const u=Vue.defineComponent({__name:"fixHeader",setup(n){const a=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(o,r)=>{const t=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(t,{data:Vue.unref(e).concat(Vue.unref(e)).concat(Vue.unref(e)),columns:a,height:"360"},null,8,["data"])}}});export{u as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./fluidHeight.vue_vue_type_script_setup_true_lang-1c618cc3.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -0,0 +1 @@
import{_ as o}from"./fluidHeight.vue_vue_type_script_setup_true_lang-83830b3e.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +1 @@
import{a as i}from"./data-ec6a9b49.js";const V=Vue.defineComponent({__name:"fluidHeight",setup(p){const l=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}],e=new Date,t=Vue.ref(i),n=o=>{t.value.splice(o,1)},r=()=>{e.setDate(e.getDate()+1),t.value.push({date:dayjs(e).format("YYYY-MM-DD"),name:"Tom",address:"No. 189, Grove St, Los Angeles",state:"California",city:"Los Angeles","post-code":"CA 90036"})};return(o,c)=>{const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,{data:t.value,columns:l,maxHeight:"500"},{operation:Vue.withCtx(({$index:d})=>[Vue.createVNode(a,{link:"",type:"primary",size:"small",onClick:Vue.withModifiers(u=>n(d),["prevent"])},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Remove ")]),_:2},1032,["onClick"])]),_:1},8,["data"]),Vue.createVNode(a,{class:"mt-4",style:{width:"100%"},onClick:r},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Add Item ")]),_:1})])}}});export{V as _}; import{a as i}from"./data-151625dc.js";const V=Vue.defineComponent({__name:"fluidHeight",setup(p){const l=[{label:"日期",prop:"date",width:"260",fixed:!0},{label:"姓名",prop:"name",width:"260"},{label:"地区",prop:"state",width:"260"},{label:"城市",prop:"city",width:"260"},{label:"地址",prop:"address",width:"260"},{label:"邮编",prop:"post-code",width:"260"},{label:"操作",width:"120",fixed:"right",slot:"operation"}],e=new Date,t=Vue.ref(i),n=o=>{t.value.splice(o,1)},r=()=>{e.setDate(e.getDate()+1),t.value.push({date:dayjs(e).format("YYYY-MM-DD"),name:"Tom",address:"No. 189, Grove St, Los Angeles",state:"California",city:"Los Angeles","post-code":"CA 90036"})};return(o,c)=>{const a=Vue.resolveComponent("el-button"),s=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",null,[Vue.createVNode(s,{data:t.value,columns:l,maxHeight:"500"},{operation:Vue.withCtx(({$index:d})=>[Vue.createVNode(a,{link:"",type:"primary",size:"small",onClick:Vue.withModifiers(u=>n(d),["prevent"])},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Remove ")]),_:2},1032,["onClick"])]),_:1},8,["data"]),Vue.createVNode(a,{class:"mt-4",style:{width:"100%"},onClick:r},{default:Vue.withCtx(()=>[Vue.createTextVNode(" Add Item ")]),_:1})])}}});export{V as _};

View File

@ -0,0 +1 @@
import{_ as o}from"./groupHeader.vue_vue_type_script_setup_true_lang-bc2e51f9.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./groupHeader.vue_vue_type_script_setup_true_lang-31b26982.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1 +1 @@
import{a}from"./data-ec6a9b49.js";const p=Vue.defineComponent({__name:"groupHeader",setup(r){const e=[{label:"日期",prop:"date",fixed:!0},{label:"姓名",prop:"name",children:[{label:"地区",children:[{label:"城市",prop:"city"},{label:"地址",prop:"address"}]}]},{label:"邮编",prop:"post-code"}];return(l,t)=>{const o=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(o,{data:Vue.unref(a),columns:e,alignWhole:"center"},null,8,["data"])}}});export{p as _}; import{a}from"./data-151625dc.js";const p=Vue.defineComponent({__name:"groupHeader",setup(r){const e=[{label:"日期",prop:"date",fixed:!0},{label:"姓名",prop:"name",children:[{label:"地区",children:[{label:"城市",prop:"city"},{label:"地址",prop:"address"}]}]},{label:"邮编",prop:"post-code"}];return(l,t)=>{const o=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(o,{data:Vue.unref(a),columns:e,alignWhole:"center"},null,8,["data"])}}});export{p as _};

View File

@ -1,2 +1,2 @@
import{list as u}from"./list-1515ceab.js";import{_}from"./_plugin-vue_export-helper-c27b6911.js";import"./index.vue_vue_type_script_setup_true_lang-e3c327b3.js";import"./columns-17e0e34c.js";import"./data-11b60b52.js";import"./index-8c77f9cd.js";import"./index.vue_vue_type_script_setup_true_lang-4d09d0ae.js";import"./columns-3559bb90.js";import"./sortable.esm-679e0872.js";import"./index.vue_vue_type_script_setup_true_lang-101e191f.js";import"./columns-92fee261.js";import"./index.vue_vue_type_script_setup_true_lang-f78cc7c0.js";import"./columns-b51bec79.js";import"./message-7116a117.js";import"./index.vue_vue_type_script_setup_true_lang-bd812e33.js";import"./columns-2dc2b86b.js";import"./xlsx-e927f539.js";import"./index.vue_vue_type_script_setup_true_lang-13ebdc6e.js";import"./columns-8eaeed13.js";import"./edit-pen-37b5ced2.js";import"./check-f53d8364.js";import"./index.vue_vue_type_script_setup_true_lang-ea2c7b6a.js";import"./columns-fba64780.js";import"./index.vue_vue_type_script_setup_true_lang-3abb612f.js";import"./columns-308f5242.js";import"./print-a6e42845.js";import"./index.vue_vue_type_script_setup_true_lang-9eeb18f3.js";import"./columns-3aa0af64.js";import"./index-a022c7df.js";import"./index-2b23ea72.js";import"./index.vue_vue_type_script_setup_true_lang-4da00be7.js";import"./index.vue_vue_type_script_setup_true_lang-129ace1e.js";import"./columns-09a1f4b9.js";import"./index.vue_vue_type_script_setup_true_lang-2a9ad9c6.js";import"./columns-1a4fe653.js";const s={class:"card-header"},V={class:"font-medium"},d=Vue.defineComponent({name:"PureTableHigh"}),f=Vue.defineComponent({...d,setup(h){const t=Vue.ref(0);function r({index:o}){t.value=o}return(o,C)=>{const p=Vue.resolveComponent("el-link"),l=Vue.resolveComponent("el-alert"),a=Vue.resolveComponent("el-tooltip"),c=Vue.resolveComponent("el-tab-pane"),i=Vue.resolveComponent("el-tabs"),m=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(m,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",s,[Vue.createElementVNode("span",V,[Vue.createTextVNode(" 高级用法全部采用 tsx 语法,充分发挥 "),Vue.createVNode(p,{href:"https://github.com/pure-admin/pure-admin-table",target:"_blank",style:{"font-size":"16px",margin:"0 4px 5px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" @pureadmin/table ")]),_:1}),Vue.createTextVNode(" 的灵活性,维护整体表格只需操作 columns 配置即可 ")])])]),default:Vue.withCtx(()=>[Vue.createVNode(l,{title:`高级用法中所有表格都设置了 row-key 后端需返回唯一值的字段比如id 作用1. 用来优化 Table import{list as u}from"./list-bd342b45.js";import{_}from"./_plugin-vue_export-helper-c27b6911.js";import"./index.vue_vue_type_script_setup_true_lang-6af70066.js";import"./columns-3ad9a861.js";import"./data-719766e9.js";import"./index-e857c921.js";import"./index.vue_vue_type_script_setup_true_lang-a57516c0.js";import"./columns-c46728ee.js";import"./sortable.esm-679e0872.js";import"./index.vue_vue_type_script_setup_true_lang-78e2d4c2.js";import"./columns-d8b6ec38.js";import"./index.vue_vue_type_script_setup_true_lang-bc6cd664.js";import"./columns-983d6cdb.js";import"./message-1173cef9.js";import"./index.vue_vue_type_script_setup_true_lang-37059ee6.js";import"./columns-012db49e.js";import"./xlsx-e927f539.js";import"./index.vue_vue_type_script_setup_true_lang-9aba8515.js";import"./columns-c4ebc13f.js";import"./edit-pen-37b5ced2.js";import"./check-f53d8364.js";import"./index.vue_vue_type_script_setup_true_lang-b35b1389.js";import"./columns-78af31e9.js";import"./index.vue_vue_type_script_setup_true_lang-b6ab0cbc.js";import"./columns-f4984a07.js";import"./print-a6e42845.js";import"./index.vue_vue_type_script_setup_true_lang-daa99812.js";import"./columns-7be42aed.js";import"./index-a022c7df.js";import"./index-2b23ea72.js";import"./index.vue_vue_type_script_setup_true_lang-c252535b.js";import"./index.vue_vue_type_script_setup_true_lang-addbcbf7.js";import"./columns-0b92ea15.js";import"./index.vue_vue_type_script_setup_true_lang-02667757.js";import"./columns-8fea6497.js";const s={class:"card-header"},V={class:"font-medium"},d=Vue.defineComponent({name:"PureTableHigh"}),f=Vue.defineComponent({...d,setup(h){const t=Vue.ref(0);function r({index:o}){t.value=o}return(o,C)=>{const p=Vue.resolveComponent("el-link"),l=Vue.resolveComponent("el-alert"),a=Vue.resolveComponent("el-tooltip"),c=Vue.resolveComponent("el-tab-pane"),i=Vue.resolveComponent("el-tabs"),m=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(m,{shadow:"never"},{header:Vue.withCtx(()=>[Vue.createElementVNode("div",s,[Vue.createElementVNode("span",V,[Vue.createTextVNode(" 高级用法全部采用 tsx 语法,充分发挥 "),Vue.createVNode(p,{href:"https://github.com/pure-admin/pure-admin-table",target:"_blank",style:{"font-size":"16px",margin:"0 4px 5px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" @pureadmin/table ")]),_:1}),Vue.createTextVNode(" 的灵活性,维护整体表格只需操作 columns 配置即可 ")])])]),default:Vue.withCtx(()=>[Vue.createVNode(l,{title:`高级用法中所有表格都设置了 row-key 后端需返回唯一值的字段比如id 作用1. 用来优化 Table
的渲染尤其当字段在深层结构中2. 防止拖拽后表格组件内部混乱拖拽必须设置哦坑都帮您们踩过啦 `,type:"info",closable:!1}),Vue.createVNode(i,{onTabClick:r},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(u),(e,n)=>(Vue.openBlock(),Vue.createBlock(c,{key:e.key,lazy:!0},{label:Vue.withCtx(()=>[Vue.createVNode(a,{content:` ${n+1} 个示例${e.content}`,placement:"top-end"},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.title),1)]),_:2},1032,["content"])]),default:Vue.withCtx(()=>[t.value==n?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.component),{key:0})):Vue.createCommentVNode("",!0)]),_:2},1024))),128))]),_:1})]),_:1})}}});const ee=_(f,[["__scopeId","data-v-ca25c2b7"]]);export{ee as default}; 的渲染尤其当字段在深层结构中2. 防止拖拽后表格组件内部混乱拖拽必须设置哦坑都帮您们踩过啦 `,type:"info",closable:!1}),Vue.createVNode(i,{onTabClick:r},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(Vue.unref(u),(e,n)=>(Vue.openBlock(),Vue.createBlock(c,{key:e.key,lazy:!0},{label:Vue.withCtx(()=>[Vue.createVNode(a,{content:` ${n+1} 个示例${e.content}`,placement:"top-end"},{default:Vue.withCtx(()=>[Vue.createElementVNode("span",null,Vue.toDisplayString(e.title),1)]),_:2},1032,["content"])]),default:Vue.withCtx(()=>[t.value==n?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.component),{key:0})):Vue.createCommentVNode("",!0)]),_:2},1024))),128))]),_:1})]),_:1})}}});const ee=_(f,[["__scopeId","data-v-ca25c2b7"]]);export{ee as default};

View File

@ -1 +1 @@
import{m as y}from"./message-7116a117.js";import{a as V}from"./system-1784de70.js";import"./index-8c77f9cd.js";import"./index-e2e6de45.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-d9cd5aad.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";function R(){const r=Vue.reactive({name:"",code:"",status:""}),l=Vue.ref([]),n=Vue.ref(!0),a=Vue.ref({}),i=Vue.reactive({total:0,pageSize:10,currentPage:1,background:!0}),s=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"角色编号",prop:"id",minWidth:100},{label:"角色名称",prop:"name",minWidth:120},{label:"角色标识",prop:"code",minWidth:150},{label:"角色类型",prop:"type",minWidth:150,cellRenderer:({row:e,props:t})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:t.size,type:e.type===1?"danger":"",effect:"plain"},{default:()=>[e.type===1?"内置":"自定义"]})},{label:"显示顺序",prop:"sort",minWidth:100},{label:"状态",minWidth:130,cellRenderer:e=>{var t;return Vue.createVNode(Vue.resolveComponent("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":v=>e.row.status=v,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>c(e)},null)}},{label:"创建时间",minWidth:180,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],u=Vue.computed(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function c({row:e,index:t}){ElementPlus.ElMessageBox.confirm(`确认要<strong>${e.status===0?"停用":"启用"}</strong><strong style='color:var(--el-color-primary)'>${e.name}</strong>角色吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),y("已成功修改角色状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function d(e){}function m(e){}function p(e){}function g(e){}function h(e){}async function o(){n.value=!0;const{data:e}=await V();l.value=e.list,i.total=e.total,setTimeout(()=>{n.value=!1},500)}const f=e=>{e&&(e.resetFields(),o())};return Vue.onMounted(()=>{o()}),{form:r,loading:n,columns:s,dataList:l,pagination:i,buttonClass:u,onSearch:o,resetForm:f,handleUpdate:d,handleDelete:m,handleSizeChange:p,handleCurrentChange:g,handleSelectionChange:h}}export{R as useRole}; import{m as y}from"./message-1173cef9.js";import{a as V}from"./system-a564539f.js";import"./index-e857c921.js";import"./index-82bd9287.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-a8003b1c.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";function R(){const r=Vue.reactive({name:"",code:"",status:""}),l=Vue.ref([]),n=Vue.ref(!0),a=Vue.ref({}),i=Vue.reactive({total:0,pageSize:10,currentPage:1,background:!0}),s=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"角色编号",prop:"id",minWidth:100},{label:"角色名称",prop:"name",minWidth:120},{label:"角色标识",prop:"code",minWidth:150},{label:"角色类型",prop:"type",minWidth:150,cellRenderer:({row:e,props:t})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:t.size,type:e.type===1?"danger":"",effect:"plain"},{default:()=>[e.type===1?"内置":"自定义"]})},{label:"显示顺序",prop:"sort",minWidth:100},{label:"状态",minWidth:130,cellRenderer:e=>{var t;return Vue.createVNode(Vue.resolveComponent("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":v=>e.row.status=v,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>c(e)},null)}},{label:"创建时间",minWidth:180,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],u=Vue.computed(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function c({row:e,index:t}){ElementPlus.ElMessageBox.confirm(`确认要<strong>${e.status===0?"停用":"启用"}</strong><strong style='color:var(--el-color-primary)'>${e.name}</strong>角色吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),y("已成功修改角色状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function d(e){}function m(e){}function p(e){}function g(e){}function h(e){}async function o(){n.value=!0;const{data:e}=await V();l.value=e.list,i.total=e.total,setTimeout(()=>{n.value=!1},500)}const f=e=>{e&&(e.resetFields(),o())};return Vue.onMounted(()=>{o()}),{form:r,loading:n,columns:s,dataList:l,pagination:i,buttonClass:u,onSearch:o,resetForm:f,handleUpdate:d,handleDelete:m,handleSizeChange:p,handleCurrentChange:g,handleSelectionChange:h}}export{R as useRole};

View File

@ -1 +1 @@
import{x as p}from"./index-e2e6de45.js";import{g as m}from"./system-1784de70.js";import"./index-8c77f9cd.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-d9cd5aad.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";function D(){const a=Vue.reactive({user:"",status:""}),n=Vue.ref([]),t=Vue.ref(!0),o=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",minWidth:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"部门名称",prop:"name",width:180,align:"left"},{label:"排序",prop:"sort",minWidth:70},{label:"状态",prop:"status",minWidth:100,cellRenderer:({row:e,props:d})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:d.size,type:e.status===1?"danger":"success",effect:"plain"},{default:()=>[e.status===0?"关闭":"开启"]})},{label:"创建时间",minWidth:200,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"备注",prop:"remark",minWidth:200},{label:"操作",fixed:"right",width:160,slot:"operation"}];function r(e){}function l(e){}function s(e){}function u(e){e&&(e.resetFields(),i())}async function i(){t.value=!0;const{data:e}=await m();n.value=p(e),setTimeout(()=>{t.value=!1},500)}return Vue.onMounted(()=>{i()}),{form:a,loading:t,columns:o,dataList:n,onSearch:i,resetForm:u,handleUpdate:r,handleDelete:l,handleSelectionChange:s}}export{D as useDept}; import{x as p}from"./index-82bd9287.js";import{g as m}from"./system-a564539f.js";import"./index-e857c921.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-a8003b1c.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";function D(){const a=Vue.reactive({user:"",status:""}),n=Vue.ref([]),t=Vue.ref(!0),o=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",minWidth:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"部门名称",prop:"name",width:180,align:"left"},{label:"排序",prop:"sort",minWidth:70},{label:"状态",prop:"status",minWidth:100,cellRenderer:({row:e,props:d})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:d.size,type:e.status===1?"danger":"success",effect:"plain"},{default:()=>[e.status===0?"关闭":"开启"]})},{label:"创建时间",minWidth:200,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"备注",prop:"remark",minWidth:200},{label:"操作",fixed:"right",width:160,slot:"operation"}];function r(e){}function l(e){}function s(e){}function u(e){e&&(e.resetFields(),i())}async function i(){t.value=!0;const{data:e}=await m();n.value=p(e),setTimeout(()=>{t.value=!1},500)}return Vue.onMounted(()=>{i()}),{form:a,loading:t,columns:o,dataList:n,onSearch:i,resetForm:u,handleUpdate:r,handleDelete:l,handleSelectionChange:s}}export{D as useDept};

View File

@ -1 +1 @@
import{m as b}from"./message-7116a117.js";import{b as V}from"./system-1784de70.js";import"./index-8c77f9cd.js";import"./index-e2e6de45.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-d9cd5aad.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";function k(){const o=Vue.reactive({username:"",mobile:"",status:""}),r=Vue.ref([]),n=Vue.ref(!0),a=Vue.ref({}),l=Vue.reactive({total:0,pageSize:10,currentPage:1,background:!0}),s=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"用户编号",prop:"id",minWidth:130},{label:"用户名称",prop:"username",minWidth:130},{label:"用户昵称",prop:"nickname",minWidth:130},{label:"性别",prop:"sex",minWidth:90,cellRenderer:({row:e,props:t})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:t.size,type:e.sex===1?"danger":"",effect:"plain"},{default:()=>[e.sex===1?"女":"男"]})},{label:"部门",prop:"dept",minWidth:90,formatter:({dept:e})=>e.name},{label:"手机号码",prop:"mobile",minWidth:90},{label:"状态",prop:"status",minWidth:90,cellRenderer:e=>{var t;return Vue.createVNode(Vue.resolveComponent("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":v=>e.row.status=v,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>m(e)},null)}},{label:"创建时间",minWidth:90,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],u=Vue.computed(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function m({row:e,index:t}){ElementPlus.ElMessageBox.confirm(`确认要<strong>${e.status===0?"停用":"启用"}</strong><strong style='color:var(--el-color-primary)'>${e.username}</strong>用户吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),b("已成功修改用户状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function c(e){}function d(e){}function p(e){}function g(e){}function h(e){}async function i(){n.value=!0;const{data:e}=await V();r.value=e.list,l.total=e.total,setTimeout(()=>{n.value=!1},500)}const f=e=>{e&&(e.resetFields(),i())};return Vue.onMounted(()=>{i()}),{form:o,loading:n,columns:s,dataList:r,pagination:l,buttonClass:u,onSearch:i,resetForm:f,handleUpdate:c,handleDelete:d,handleSizeChange:p,handleCurrentChange:g,handleSelectionChange:h}}export{k as useUser}; import{m as b}from"./message-1173cef9.js";import{b as V}from"./system-a564539f.js";import"./index-e857c921.js";import"./index-82bd9287.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-a8003b1c.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";function k(){const o=Vue.reactive({username:"",mobile:"",status:""}),r=Vue.ref([]),n=Vue.ref(!0),a=Vue.ref({}),l=Vue.reactive({total:0,pageSize:10,currentPage:1,background:!0}),s=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"用户编号",prop:"id",minWidth:130},{label:"用户名称",prop:"username",minWidth:130},{label:"用户昵称",prop:"nickname",minWidth:130},{label:"性别",prop:"sex",minWidth:90,cellRenderer:({row:e,props:t})=>Vue.createVNode(Vue.resolveComponent("el-tag"),{size:t.size,type:e.sex===1?"danger":"",effect:"plain"},{default:()=>[e.sex===1?"女":"男"]})},{label:"部门",prop:"dept",minWidth:90,formatter:({dept:e})=>e.name},{label:"手机号码",prop:"mobile",minWidth:90},{label:"状态",prop:"status",minWidth:90,cellRenderer:e=>{var t;return Vue.createVNode(Vue.resolveComponent("el-switch"),{size:e.props.size==="small"?"small":"default",loading:(t=a.value[e.index])==null?void 0:t.loading,modelValue:e.row.status,"onUpdate:modelValue":v=>e.row.status=v,"active-value":1,"inactive-value":0,"active-text":"已开启","inactive-text":"已关闭","inline-prompt":!0,onChange:()=>m(e)},null)}},{label:"创建时间",minWidth:90,prop:"createTime",formatter:({createTime:e})=>dayjs(e).format("YYYY-MM-DD HH:mm:ss")},{label:"操作",fixed:"right",width:180,slot:"operation"}],u=Vue.computed(()=>["!h-[20px]","reset-margin","!text-gray-500","dark:!text-white","dark:hover:!text-primary"]);function m({row:e,index:t}){ElementPlus.ElMessageBox.confirm(`确认要<strong>${e.status===0?"停用":"启用"}</strong><strong style='color:var(--el-color-primary)'>${e.username}</strong>用户吗?`,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",dangerouslyUseHTMLString:!0,draggable:!0}).then(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!0}),setTimeout(()=>{a.value[t]=Object.assign({},a.value[t],{loading:!1}),b("已成功修改用户状态",{type:"success"})},300)}).catch(()=>{e.status===0?e.status=1:e.status=0})}function c(e){}function d(e){}function p(e){}function g(e){}function h(e){}async function i(){n.value=!0;const{data:e}=await V();r.value=e.list,l.total=e.total,setTimeout(()=>{n.value=!1},500)}const f=e=>{e&&(e.resetFields(),i())};return Vue.onMounted(()=>{i()}),{form:o,loading:n,columns:s,dataList:r,pagination:l,buttonClass:u,onSearch:i,resetForm:f,handleUpdate:c,handleDelete:d,handleSizeChange:p,handleCurrentChange:g,handleSelectionChange:h}}export{k as useUser};

View File

@ -1 +1 @@
import{u as n}from"./multiTags-d9cd5aad.js";function h(){var i,o,s;const a=VueRouter.useRoute(),t=VueRouter.useRouter(),u=(i=a.query)!=null&&i.id?(o=a.query)==null?void 0:o.id:(s=a.params)==null?void 0:s.id;function r(e,m){m==="query"?(n().handleTags("push",{path:"/tabs/query-detail",name:"TabQueryDetail",query:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`},dynamicLevel:3}}),t.push({name:"TabQueryDetail",query:{id:String(e)}})):(n().handleTags("push",{path:"/tabs/params-detail/:id",name:"TabParamsDetail",params:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`}}}),t.push({name:"TabParamsDetail",params:{id:String(e)}}))}function l(e){Vue.onBeforeMount(()=>{u&&r(u,e)})}return{toDetail:r,initToDetail:l,id:u,router:t}}export{h as u}; import{u as n}from"./multiTags-a8003b1c.js";function h(){var i,o,s;const a=VueRouter.useRoute(),t=VueRouter.useRouter(),u=(i=a.query)!=null&&i.id?(o=a.query)==null?void 0:o.id:(s=a.params)==null?void 0:s.id;function r(e,m){m==="query"?(n().handleTags("push",{path:"/tabs/query-detail",name:"TabQueryDetail",query:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`},dynamicLevel:3}}),t.push({name:"TabQueryDetail",query:{id:String(e)}})):(n().handleTags("push",{path:"/tabs/params-detail/:id",name:"TabParamsDetail",params:{id:String(e)},meta:{title:{zh:`No.${e} - 详情信息`,en:`No.${e} - DetailInfo`}}}),t.push({name:"TabParamsDetail",params:{id:String(e)}}))}function l(e){Vue.onBeforeMount(()=>{u&&r(u,e)})}return{toDetail:r,initToDetail:l,id:u,router:t}}export{h as u};

File diff suppressed because one or more lines are too long

1
dist/static/js/imgPreview-291a8bb1.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./imgPreview.vue_vue_type_script_setup_true_lang-fd9f27a6.js";import"./data-151625dc.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./imgPreview.vue_vue_type_script_setup_true_lang-fd6b47ec.js";import"./data-ec6a9b49.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1 +1 @@
import{d as e}from"./data-ec6a9b49.js";const l=Vue.createElementVNode("video",{width:"180",height:"180",controls:""},[Vue.createElementVNode("source",{src:"https://yiming_chang.gitee.io/pure-admin-doc/video/url.mov",type:"video/mp4"})],-1),u=Vue.defineComponent({__name:"imgPreview",setup(p){const t=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{label:"视频",slot:"video"},{label:"图像",slot:"image"}];return(s,c)=>{const o=Vue.resolveComponent("el-image"),a=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(a,{data:Vue.unref(e),columns:t},{video:Vue.withCtx(()=>[l]),image:Vue.withCtx(({row:i,index:n})=>[Vue.createVNode(o,{"preview-teleported":"",loading:"lazy",src:i.image,"preview-src-list":Vue.unref(e).map(r=>r.image),"initial-index":n,fit:"cover",class:"w-[100px] h-[100px]"},null,8,["src","preview-src-list","initial-index"])]),_:1},8,["data"])}}});export{u as _}; import{d as e}from"./data-151625dc.js";const l=Vue.createElementVNode("video",{width:"180",height:"180",controls:""},[Vue.createElementVNode("source",{src:"https://yiming_chang.gitee.io/pure-admin-doc/video/url.mov",type:"video/mp4"})],-1),u=Vue.defineComponent({__name:"imgPreview",setup(p){const t=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{label:"视频",slot:"video"},{label:"图像",slot:"image"}];return(s,c)=>{const o=Vue.resolveComponent("el-image"),a=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createBlock(a,{data:Vue.unref(e),columns:t},{video:Vue.withCtx(()=>[l]),image:Vue.withCtx(({row:i,index:n})=>[Vue.createVNode(o,{"preview-teleported":"",loading:"lazy",src:i.image,"preview-src-list":Vue.unref(e).map(r=>r.image),"initial-index":n,fit:"cover",class:"w-[100px] h-[100px]"},null,8,["src","preview-src-list","initial-index"])]),_:1},8,["data"])}}});export{u as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-f78cc7c0.js";import"./columns-b51bec79.js";import"./data-11b60b52.js";import"./index-8c77f9cd.js";import"./message-7116a117.js";export{o as default};

View File

@ -1 +1 @@
import{a as v,y as _,d as k,c as s,A as d}from"./index-e2e6de45.js";import{u as x}from"./hooks-f76c5287.js";import{d as E}from"./index-8c77f9cd.js";import{u as i}from"./multiTags-d9cd5aad.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";const w=Vue.createElementVNode("div",null,"标签页复用,超出限制自动关闭",-1),g={class:"flex flex-wrap items-center"},T=Vue.createElementVNode("p",null,"query传参模式",-1),y={class:"flex flex-wrap items-center"},$=Vue.createElementVNode("p",null,"params传参模式",-1),B=Vue.defineComponent({name:"Tabs"}),H=Vue.defineComponent({...B,setup(b){const{toDetail:l,router:m}=x(),c=E(v().wholeMenus,!0),a=Vue.computed(()=>_(k(c),0,{disabled:!0})),r=Vue.ref([]),V=Vue.computed(()=>{var u;return(u=i())==null?void 0:u.multiTags});function p(){r.value.length!==0&&r.value.forEach(u=>{const t=d(a.value,u).redirect??d(a.value,u).path;i().handleTags("splice",t),t==="/tabs/index"&&m.push({path:V.value[V.value.length-1].path})})}return(u,t)=>{const o=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-divider"),f=Vue.resolveComponent("el-tree-select"),h=Vue.resolveComponent("el-link"),C=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(C,{shadow:"never"},{header:Vue.withCtx(()=>[w]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",g,[T,(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(6,e=>Vue.createVNode(o,{class:"m-2",key:e,onClick:N=>Vue.unref(l)(e,"query")},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 打开"+Vue.toDisplayString(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),Vue.createVNode(n),Vue.createElementVNode("div",y,[$,(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(6,e=>Vue.createVNode(o,{class:"m-2",key:e,onClick:N=>Vue.unref(l)(e,"params")},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 打开"+Vue.toDisplayString(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),Vue.createVNode(n),Vue.createVNode(f,{class:"w-[300px]","node-key":"uniqueId",placeholder:"请选择要关闭的标签",clearable:"",multiple:"",filterable:"","default-expand-all":"",props:{label:e=>Vue.unref(s)(e.meta.title),value:"uniqueId",children:"children",disabled:"disabled"},data:Vue.unref(a),modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},{default:Vue.withCtx(({data:e})=>[Vue.createElementVNode("span",null,Vue.toDisplayString(Vue.unref(s)(e.meta.title)),1)]),_:1},8,["props","data","modelValue"]),Vue.createVNode(o,{class:"m-2",onClick:p},{default:Vue.withCtx(()=>[Vue.createTextVNode("关闭标签")]),_:1}),Vue.createVNode(n),Vue.createVNode(o,{onClick:t[1]||(t[1]=e=>u.$router.push({name:"Menu1-2-2"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单传name对象优先推荐 ")]),_:1}),Vue.createVNode(o,{onClick:t[2]||(t[2]=e=>u.$router.push("/nested/menu1/menu1-2/menu1-2-2"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单(直接传要跳转的路径) ")]),_:1}),Vue.createVNode(o,{onClick:t[3]||(t[3]=e=>u.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单传path对象 ")]),_:1}),Vue.createVNode(n),Vue.createVNode(o,{onClick:t[4]||(t[4]=e=>u.$router.push({name:"Menu1-2-2",query:{text:"传name对象优先推荐"}}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 携参跳转页内菜单传name对象优先推荐 ")]),_:1}),Vue.createVNode(o,{onClick:t[5]||(t[5]=e=>u.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2",query:{text:"传path对象"}}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 携参跳转页内菜单传path对象 ")]),_:1}),Vue.createVNode(h,{class:"ml-4",href:"https://router.vuejs.org/zh/guide/essentials/navigation.html#%E5%AF%BC%E8%88%AA%E5%88%B0%E4%B8%8D%E5%90%8C%E7%9A%84%E4%BD%8D%E7%BD%AE",target:"_blank"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 点击查看更多跳转方式 ")]),_:1}),Vue.createVNode(n),Vue.createVNode(o,{onClick:t[6]||(t[6]=e=>u.$router.push({name:"Empty"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转无Layout的空白页面 ")]),_:1})]),_:1})}}});export{H as default}; import{a as v,y as _,d as k,c as s,A as d}from"./index-82bd9287.js";import{u as x}from"./hooks-ca6b6a37.js";import{f as E}from"./index-e857c921.js";import{u as i}from"./multiTags-a8003b1c.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";const w=Vue.createElementVNode("div",null,"标签页复用,超出限制自动关闭",-1),g={class:"flex flex-wrap items-center"},T=Vue.createElementVNode("p",null,"query传参模式",-1),y={class:"flex flex-wrap items-center"},$=Vue.createElementVNode("p",null,"params传参模式",-1),B=Vue.defineComponent({name:"Tabs"}),H=Vue.defineComponent({...B,setup(b){const{toDetail:l,router:m}=x(),c=E(v().wholeMenus,!0),a=Vue.computed(()=>_(k(c),0,{disabled:!0})),r=Vue.ref([]),V=Vue.computed(()=>{var u;return(u=i())==null?void 0:u.multiTags});function p(){r.value.length!==0&&r.value.forEach(u=>{const t=d(a.value,u).redirect??d(a.value,u).path;i().handleTags("splice",t),t==="/tabs/index"&&m.push({path:V.value[V.value.length-1].path})})}return(u,t)=>{const o=Vue.resolveComponent("el-button"),n=Vue.resolveComponent("el-divider"),f=Vue.resolveComponent("el-tree-select"),h=Vue.resolveComponent("el-link"),C=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(C,{shadow:"never"},{header:Vue.withCtx(()=>[w]),default:Vue.withCtx(()=>[Vue.createElementVNode("div",g,[T,(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(6,e=>Vue.createVNode(o,{class:"m-2",key:e,onClick:N=>Vue.unref(l)(e,"query")},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 打开"+Vue.toDisplayString(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),Vue.createVNode(n),Vue.createElementVNode("div",y,[$,(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(6,e=>Vue.createVNode(o,{class:"m-2",key:e,onClick:N=>Vue.unref(l)(e,"params")},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 打开"+Vue.toDisplayString(e)+"详情页 ",1)]),_:2},1032,["onClick"])),64))]),Vue.createVNode(n),Vue.createVNode(f,{class:"w-[300px]","node-key":"uniqueId",placeholder:"请选择要关闭的标签",clearable:"",multiple:"",filterable:"","default-expand-all":"",props:{label:e=>Vue.unref(s)(e.meta.title),value:"uniqueId",children:"children",disabled:"disabled"},data:Vue.unref(a),modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},{default:Vue.withCtx(({data:e})=>[Vue.createElementVNode("span",null,Vue.toDisplayString(Vue.unref(s)(e.meta.title)),1)]),_:1},8,["props","data","modelValue"]),Vue.createVNode(o,{class:"m-2",onClick:p},{default:Vue.withCtx(()=>[Vue.createTextVNode("关闭标签")]),_:1}),Vue.createVNode(n),Vue.createVNode(o,{onClick:t[1]||(t[1]=e=>u.$router.push({name:"Menu1-2-2"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单传name对象优先推荐 ")]),_:1}),Vue.createVNode(o,{onClick:t[2]||(t[2]=e=>u.$router.push("/nested/menu1/menu1-2/menu1-2-2"))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单(直接传要跳转的路径) ")]),_:1}),Vue.createVNode(o,{onClick:t[3]||(t[3]=e=>u.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转页内菜单传path对象 ")]),_:1}),Vue.createVNode(n),Vue.createVNode(o,{onClick:t[4]||(t[4]=e=>u.$router.push({name:"Menu1-2-2",query:{text:"传name对象优先推荐"}}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 携参跳转页内菜单传name对象优先推荐 ")]),_:1}),Vue.createVNode(o,{onClick:t[5]||(t[5]=e=>u.$router.push({path:"/nested/menu1/menu1-2/menu1-2-2",query:{text:"传path对象"}}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 携参跳转页内菜单传path对象 ")]),_:1}),Vue.createVNode(h,{class:"ml-4",href:"https://router.vuejs.org/zh/guide/essentials/navigation.html#%E5%AF%BC%E8%88%AA%E5%88%B0%E4%B8%8D%E5%90%8C%E7%9A%84%E4%BD%8D%E7%BD%AE",target:"_blank"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 点击查看更多跳转方式 ")]),_:1}),Vue.createVNode(n),Vue.createVNode(o,{onClick:t[6]||(t[6]=e=>u.$router.push({name:"Empty"}))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 跳转无Layout的空白页面 ")]),_:1})]),_:1})}}});export{H as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-9eeb18f3.js";import"./columns-3aa0af64.js";import"./index-8c77f9cd.js";import"./data-11b60b52.js";import"./message-7116a117.js";import"./index-a022c7df.js";import"./index-2b23ea72.js";export{o as default};

1
dist/static/js/index-110bb9f0.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-5c2cab8a.js";import"./columns-b2103169.js";import"./message-1173cef9.js";import"./index-e857c921.js";import"./data-151625dc.js";export{o as default};

File diff suppressed because one or more lines are too long

1
dist/static/js/index-1dbfebb0.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-b6ab0cbc.js";import"./columns-f4984a07.js";import"./print-a6e42845.js";import"./data-719766e9.js";import"./index-e857c921.js";export{o as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-129ace1e.js";import"./columns-09a1f4b9.js";import"./message-7116a117.js";import"./index-8c77f9cd.js";import"./data-11b60b52.js";export{o as default};

1
dist/static/js/index-21a67153.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-c252535b.js";import"./index.vue_vue_type_script_setup_true_lang-addbcbf7.js";import"./columns-0b92ea15.js";import"./message-1173cef9.js";import"./index-e857c921.js";import"./data-719766e9.js";import"./index.vue_vue_type_script_setup_true_lang-02667757.js";import"./columns-8fea6497.js";export{o as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/static/js/index-3eb2b765.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-daa99812.js";import"./columns-7be42aed.js";import"./index-e857c921.js";import"./data-719766e9.js";import"./message-1173cef9.js";import"./index-a022c7df.js";import"./index-2b23ea72.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-ba77f4aa.js";import"./columns-b7074262.js";import"./message-7116a117.js";import"./index-8c77f9cd.js";import"./data-ec6a9b49.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-e3c327b3.js";import"./columns-17e0e34c.js";import"./data-11b60b52.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1 +1 @@
import{w as r,h as a}from"./index-e2e6de45.js";import"./index-8c77f9cd.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-d9cd5aad.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";const c=Vue.createElementVNode("div",{class:"card-header"},"组件方式判断权限",-1),l=Vue.createElementVNode("div",{class:"card-header"},"函数方式判断权限",-1),i=Vue.createElementVNode("div",{class:"card-header"}," 指令方式判断权限(该方式不能动态修改权限) ",-1),_=Vue.defineComponent({name:"PermissionButton"}),v=Vue.defineComponent({..._,setup(s){const t=Vue.computed(()=>({width:"85vw",justifyContent:"start"}));return(p,h)=>{const n=Vue.resolveComponent("el-tag"),e=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("Auth"),o=Vue.resolveComponent("el-card"),V=Vue.resolveComponent("el-space"),d=Vue.resolveDirective("auth");return Vue.openBlock(),Vue.createBlock(V,{direction:"vertical",size:"large"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{style:Vue.normalizeStyle(Vue.unref(t)),size:"large",effect:"dark"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 当前拥有的code列表"+Vue.toDisplayString(Vue.unref(r)()),1)]),_:1},8,["style"]),Vue.createVNode(o,{shadow:"never",style:Vue.normalizeStyle(Vue.unref(t))},{header:Vue.withCtx(()=>[c]),default:Vue.withCtx(()=>[Vue.createVNode(u,{value:"btn_add"},{default:Vue.withCtx(()=>[Vue.createVNode(e,{type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code'btn_add' 权限可见 ")]),_:1})]),_:1}),Vue.createVNode(u,{value:["btn_edit"]},{default:Vue.withCtx(()=>[Vue.createVNode(e,{type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_edit'] 权限可见 ")]),_:1})]),_:1}),Vue.createVNode(u,{value:["btn_add","btn_edit","btn_delete"]},{default:Vue.withCtx(()=>[Vue.createVNode(e,{type:"danger"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})]),_:1})]),_:1},8,["style"]),Vue.createVNode(o,{shadow:"never",style:Vue.normalizeStyle(Vue.unref(t))},{header:Vue.withCtx(()=>[l]),default:Vue.withCtx(()=>[Vue.unref(a)("btn_add")?(Vue.openBlock(),Vue.createBlock(e,{key:0,type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code'btn_add' 权限可见 ")]),_:1})):Vue.createCommentVNode("",!0),Vue.unref(a)(["btn_edit"])?(Vue.openBlock(),Vue.createBlock(e,{key:1,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_edit'] 权限可见 ")]),_:1})):Vue.createCommentVNode("",!0),Vue.unref(a)(["btn_add","btn_edit","btn_delete"])?(Vue.openBlock(),Vue.createBlock(e,{key:2,type:"danger"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})):Vue.createCommentVNode("",!0)]),_:1},8,["style"]),Vue.createVNode(o,{shadow:"never",style:Vue.normalizeStyle(Vue.unref(t))},{header:Vue.withCtx(()=>[i]),default:Vue.withCtx(()=>[Vue.withDirectives((Vue.openBlock(),Vue.createBlock(e,{type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code'btn_add' 权限可见 ")]),_:1})),[[d,"btn_add"]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(e,{type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_edit'] 权限可见 ")]),_:1})),[[d,["btn_edit"]]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(e,{type:"danger"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})),[[d,["btn_add","btn_edit","btn_delete"]]])]),_:1},8,["style"])]),_:1})}}});export{v as default}; import{w as r,h as a}from"./index-82bd9287.js";import"./index-e857c921.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-a8003b1c.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";const c=Vue.createElementVNode("div",{class:"card-header"},"组件方式判断权限",-1),l=Vue.createElementVNode("div",{class:"card-header"},"函数方式判断权限",-1),i=Vue.createElementVNode("div",{class:"card-header"}," 指令方式判断权限(该方式不能动态修改权限) ",-1),_=Vue.defineComponent({name:"PermissionButton"}),v=Vue.defineComponent({..._,setup(s){const t=Vue.computed(()=>({width:"85vw",justifyContent:"start"}));return(p,h)=>{const n=Vue.resolveComponent("el-tag"),e=Vue.resolveComponent("el-button"),u=Vue.resolveComponent("Auth"),o=Vue.resolveComponent("el-card"),V=Vue.resolveComponent("el-space"),d=Vue.resolveDirective("auth");return Vue.openBlock(),Vue.createBlock(V,{direction:"vertical",size:"large"},{default:Vue.withCtx(()=>[Vue.createVNode(n,{style:Vue.normalizeStyle(Vue.unref(t)),size:"large",effect:"dark"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 当前拥有的code列表"+Vue.toDisplayString(Vue.unref(r)()),1)]),_:1},8,["style"]),Vue.createVNode(o,{shadow:"never",style:Vue.normalizeStyle(Vue.unref(t))},{header:Vue.withCtx(()=>[c]),default:Vue.withCtx(()=>[Vue.createVNode(u,{value:"btn_add"},{default:Vue.withCtx(()=>[Vue.createVNode(e,{type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code'btn_add' 权限可见 ")]),_:1})]),_:1}),Vue.createVNode(u,{value:["btn_edit"]},{default:Vue.withCtx(()=>[Vue.createVNode(e,{type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_edit'] 权限可见 ")]),_:1})]),_:1}),Vue.createVNode(u,{value:["btn_add","btn_edit","btn_delete"]},{default:Vue.withCtx(()=>[Vue.createVNode(e,{type:"danger"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})]),_:1})]),_:1},8,["style"]),Vue.createVNode(o,{shadow:"never",style:Vue.normalizeStyle(Vue.unref(t))},{header:Vue.withCtx(()=>[l]),default:Vue.withCtx(()=>[Vue.unref(a)("btn_add")?(Vue.openBlock(),Vue.createBlock(e,{key:0,type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code'btn_add' 权限可见 ")]),_:1})):Vue.createCommentVNode("",!0),Vue.unref(a)(["btn_edit"])?(Vue.openBlock(),Vue.createBlock(e,{key:1,type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_edit'] 权限可见 ")]),_:1})):Vue.createCommentVNode("",!0),Vue.unref(a)(["btn_add","btn_edit","btn_delete"])?(Vue.openBlock(),Vue.createBlock(e,{key:2,type:"danger"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})):Vue.createCommentVNode("",!0)]),_:1},8,["style"]),Vue.createVNode(o,{shadow:"never",style:Vue.normalizeStyle(Vue.unref(t))},{header:Vue.withCtx(()=>[i]),default:Vue.withCtx(()=>[Vue.withDirectives((Vue.openBlock(),Vue.createBlock(e,{type:"success"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code'btn_add' 权限可见 ")]),_:1})),[[d,"btn_add"]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(e,{type:"primary"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_edit'] 权限可见 ")]),_:1})),[[d,["btn_edit"]]]),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(e,{type:"danger"},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 拥有code['btn_add', 'btn_edit', 'btn_delete'] 权限可见 ")]),_:1})),[[d,["btn_add","btn_edit","btn_delete"]]])]),_:1},8,["style"])]),_:1})}}});export{v as default};

File diff suppressed because one or more lines are too long

1
dist/static/js/index-50122974.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-9aba8515.js";import"./columns-c4ebc13f.js";import"./data-719766e9.js";import"./index-e857c921.js";import"./message-1173cef9.js";import"./edit-pen-37b5ced2.js";import"./check-f53d8364.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-ea2c7b6a.js";import"./columns-fba64780.js";import"./data-11b60b52.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1,4 +1,4 @@
import z from"./Card-11f6abdc.js";import{g as N}from"./index-e2e6de45.js";import{m as b}from"./message-7116a117.js";import{_ as B}from"./DialogForm.vue_vue_type_script_setup_true_lang-2c79269f.js";import{u as D}from"./hooks-8de8f790.js";import{S as I}from"./search-4b9e88d3.js";import{A}from"./add-circle-line-5b89a592.js";import"./more-2-fill-7f8ca5b5.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-8c77f9cd.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-d9cd5aad.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";import"./index-02c38b19.js";const E=r=>N.request("post","/getCardList",{data:r}),P={class:"main"},M={class:"w-full flex justify-between mb-4"},T=Vue.defineComponent({name:"ListCard"}),te=Vue.defineComponent({...T,setup(r){const c=` import z from"./Card-11f6abdc.js";import{g as N}from"./index-82bd9287.js";import{m as b}from"./message-1173cef9.js";import{_ as B}from"./DialogForm.vue_vue_type_script_setup_true_lang-18be8c00.js";import{u as D}from"./hooks-8de8f790.js";import{S as I}from"./search-4b9e88d3.js";import{A}from"./add-circle-line-5b89a592.js";import"./more-2-fill-7f8ca5b5.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./index-e857c921.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-a8003b1c.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";import"./index-02c38b19.js";const E=r=>N.request("post","/getCardList",{data:r}),P={class:"main"},M={class:"w-full flex justify-between mb-4"},T=Vue.defineComponent({name:"ListCard"}),te=Vue.defineComponent({...T,setup(r){const c=`
<path class="path" d=" <path class="path" d="
M 30 15 M 30 15
L 28 17 L 28 17

1
dist/static/js/index-67226c14.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-6af70066.js";import"./columns-3ad9a861.js";import"./data-719766e9.js";import"./index-e857c921.js";export{o as default};

View File

@ -1 +1 @@
import{useDept as y}from"./hook-3d0ee008.js";import{R,P as T,D as S}from"./refresh-504ce504.js";import{u as r}from"./hooks-8de8f790.js";import{d as D}from"./edit-pen-37b5ced2.js";import{S as B}from"./search-4b9e88d3.js";import{A as U}from"./add-circle-line-5b89a592.js";import"./index-e2e6de45.js";import"./index-8c77f9cd.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-d9cd5aad.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";import"./system-1784de70.js";import"./epTheme-80ea1c2b.js";import"./index-02c38b19.js";const $={class:"main"},A=Vue.defineComponent({name:"Dept"}),ee=Vue.defineComponent({...A,setup(F){const l=Vue.ref(),a=Vue.ref(),{form:t,loading:V,columns:m,dataList:s,onSearch:i,resetForm:d,handleUpdate:_,handleDelete:C,handleSelectionChange:h}=y();return(L,o)=>{var p;const x=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-form-item"),c=Vue.resolveComponent("el-option"),b=Vue.resolveComponent("el-select"),n=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-form"),N=Vue.resolveComponent("el-popconfirm"),v=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",$,[Vue.createVNode(w,{ref_key:"formRef",ref:l,inline:!0,model:Vue.unref(t),class:"bg-bg_color w-[99/100] pl-8 pt-4"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:"部门名称:",prop:"user"},{default:Vue.withCtx(()=>[Vue.createVNode(x,{modelValue:Vue.unref(t).user,"onUpdate:modelValue":o[0]||(o[0]=e=>Vue.unref(t).user=e),placeholder:"请输入部门名称",clearable:"",class:"!w-[200px]"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"状态:",prop:"status"},{default:Vue.withCtx(()=>[Vue.createVNode(b,{modelValue:Vue.unref(t).status,"onUpdate:modelValue":o[1]||(o[1]=e=>Vue.unref(t).status=e),placeholder:"请选择状态",clearable:"",class:"!w-[180px]"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"开启",value:"1"}),Vue.createVNode(c,{label:"关闭",value:"0"})]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(n,{type:"primary",icon:Vue.unref(r)(Vue.unref(B)),loading:Vue.unref(V),onClick:Vue.unref(i)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),Vue.createVNode(n,{icon:Vue.unref(r)(Vue.unref(R)),onClick:o[2]||(o[2]=e=>Vue.unref(d)(l.value))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),Vue.createVNode(Vue.unref(T),{title:"部门列表",tableRef:(p=a.value)==null?void 0:p.getTableRef(),onRefresh:Vue.unref(i)},{buttons:Vue.withCtx(()=>[Vue.createVNode(n,{type:"primary",icon:Vue.unref(r)(Vue.unref(U))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 新增部门 ")]),_:1},8,["icon"])]),default:Vue.withCtx(({size:e,checkList:g})=>[Vue.createVNode(v,{ref_key:"tableRef",ref:a,border:"","align-whole":"center","row-key":"id",showOverflowTooltip:"","table-layout":"auto","default-expand-all":"",loading:Vue.unref(V),size:e,data:Vue.unref(s),columns:Vue.unref(m),checkList:g,"header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSelectionChange:Vue.unref(h)},{operation:Vue.withCtx(({row:f})=>[Vue.createVNode(n,{class:"reset-margin",link:"",type:"primary",size:e,onClick:k=>Vue.unref(_)(f),icon:Vue.unref(r)(Vue.unref(D))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 修改 ")]),_:2},1032,["size","onClick","icon"]),Vue.createVNode(N,{title:"是否确认删除?"},{reference:Vue.withCtx(()=>[Vue.createVNode(n,{class:"reset-margin",link:"",type:"primary",size:e,icon:Vue.unref(r)(Vue.unref(S)),onClick:k=>Vue.unref(C)(f)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 删除 ")]),_:2},1032,["size","icon","onClick"])]),_:2},1024)]),_:2},1032,["loading","size","data","columns","checkList","header-cell-style","onSelectionChange"])]),_:1},8,["tableRef","onRefresh"])])}}});export{ee as default}; import{useDept as y}from"./hook-d00eef29.js";import{R,P as T,D as S}from"./refresh-0e921a9e.js";import{u as r}from"./hooks-8de8f790.js";import{d as D}from"./edit-pen-37b5ced2.js";import{S as B}from"./search-4b9e88d3.js";import{A as U}from"./add-circle-line-5b89a592.js";import"./index-82bd9287.js";import"./index-e857c921.js";import"./_commonjsHelpers-042e6b4d.js";import"./hot-cf4dcfeb.js";import"./index-5e5694dd.js";import"./multiTags-a8003b1c.js";import"./index-4b83e049.js";import"./index-2b23ea72.js";import"./system-a564539f.js";import"./epTheme-a578ce2a.js";import"./index-02c38b19.js";const $={class:"main"},A=Vue.defineComponent({name:"Dept"}),ee=Vue.defineComponent({...A,setup(F){const l=Vue.ref(),a=Vue.ref(),{form:t,loading:V,columns:m,dataList:s,onSearch:i,resetForm:d,handleUpdate:_,handleDelete:C,handleSelectionChange:h}=y();return(L,o)=>{var p;const x=Vue.resolveComponent("el-input"),u=Vue.resolveComponent("el-form-item"),c=Vue.resolveComponent("el-option"),b=Vue.resolveComponent("el-select"),n=Vue.resolveComponent("el-button"),w=Vue.resolveComponent("el-form"),N=Vue.resolveComponent("el-popconfirm"),v=Vue.resolveComponent("pure-table");return Vue.openBlock(),Vue.createElementBlock("div",$,[Vue.createVNode(w,{ref_key:"formRef",ref:l,inline:!0,model:Vue.unref(t),class:"bg-bg_color w-[99/100] pl-8 pt-4"},{default:Vue.withCtx(()=>[Vue.createVNode(u,{label:"部门名称:",prop:"user"},{default:Vue.withCtx(()=>[Vue.createVNode(x,{modelValue:Vue.unref(t).user,"onUpdate:modelValue":o[0]||(o[0]=e=>Vue.unref(t).user=e),placeholder:"请输入部门名称",clearable:"",class:"!w-[200px]"},null,8,["modelValue"])]),_:1}),Vue.createVNode(u,{label:"状态:",prop:"status"},{default:Vue.withCtx(()=>[Vue.createVNode(b,{modelValue:Vue.unref(t).status,"onUpdate:modelValue":o[1]||(o[1]=e=>Vue.unref(t).status=e),placeholder:"请选择状态",clearable:"",class:"!w-[180px]"},{default:Vue.withCtx(()=>[Vue.createVNode(c,{label:"开启",value:"1"}),Vue.createVNode(c,{label:"关闭",value:"0"})]),_:1},8,["modelValue"])]),_:1}),Vue.createVNode(u,null,{default:Vue.withCtx(()=>[Vue.createVNode(n,{type:"primary",icon:Vue.unref(r)(Vue.unref(B)),loading:Vue.unref(V),onClick:Vue.unref(i)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 搜索 ")]),_:1},8,["icon","loading","onClick"]),Vue.createVNode(n,{icon:Vue.unref(r)(Vue.unref(R)),onClick:o[2]||(o[2]=e=>Vue.unref(d)(l.value))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 重置 ")]),_:1},8,["icon"])]),_:1})]),_:1},8,["model"]),Vue.createVNode(Vue.unref(T),{title:"部门列表",tableRef:(p=a.value)==null?void 0:p.getTableRef(),onRefresh:Vue.unref(i)},{buttons:Vue.withCtx(()=>[Vue.createVNode(n,{type:"primary",icon:Vue.unref(r)(Vue.unref(U))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 新增部门 ")]),_:1},8,["icon"])]),default:Vue.withCtx(({size:e,checkList:g})=>[Vue.createVNode(v,{ref_key:"tableRef",ref:a,border:"","align-whole":"center","row-key":"id",showOverflowTooltip:"","table-layout":"auto","default-expand-all":"",loading:Vue.unref(V),size:e,data:Vue.unref(s),columns:Vue.unref(m),checkList:g,"header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSelectionChange:Vue.unref(h)},{operation:Vue.withCtx(({row:f})=>[Vue.createVNode(n,{class:"reset-margin",link:"",type:"primary",size:e,onClick:k=>Vue.unref(_)(f),icon:Vue.unref(r)(Vue.unref(D))},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 修改 ")]),_:2},1032,["size","onClick","icon"]),Vue.createVNode(N,{title:"是否确认删除?"},{reference:Vue.withCtx(()=>[Vue.createVNode(n,{class:"reset-margin",link:"",type:"primary",size:e,icon:Vue.unref(r)(Vue.unref(S)),onClick:k=>Vue.unref(C)(f)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 删除 ")]),_:2},1032,["size","icon","onClick"])]),_:2},1024)]),_:2},1032,["loading","size","data","columns","checkList","header-cell-style","onSelectionChange"])]),_:1},8,["tableRef","onRefresh"])])}}});export{ee as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-101e191f.js";import"./columns-92fee261.js";import"./sortable.esm-679e0872.js";import"./index-8c77f9cd.js";import"./data-11b60b52.js";export{o as default};

1
dist/static/js/index-72147d3e.js vendored Normal file
View File

@ -0,0 +1 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-7efd650d.js";import"./columns-699e4ada.js";import"./message-1173cef9.js";import"./index-e857c921.js";import"./data-151625dc.js";export{o as default};

View File

@ -1,4 +1,4 @@
import{k as ge,g as me}from"./index-8c77f9cd.js";import{_ as ve}from"./_plugin-vue_export-helper-c27b6911.js";/*! import{k as ge,h as me}from"./index-e857c921.js";import{_ as ve}from"./_plugin-vue_export-helper-c27b6911.js";/*!
* Cropper.js v1.5.13 * Cropper.js v1.5.13
* https://fengyuanchen.github.io/cropperjs * https://fengyuanchen.github.io/cropperjs
* *

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-41614002.js";import"./columns-fe3b1ee4.js";import"./message-7116a117.js";import"./index-8c77f9cd.js";import"./data-ec6a9b49.js";export{o as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-3abb612f.js";import"./columns-308f5242.js";import"./print-a6e42845.js";import"./data-11b60b52.js";import"./index-8c77f9cd.js";export{o as default};

View File

@ -1 +0,0 @@
import{_ as o}from"./index.vue_vue_type_script_setup_true_lang-13ebdc6e.js";import"./columns-8eaeed13.js";import"./data-11b60b52.js";import"./index-8c77f9cd.js";import"./message-7116a117.js";import"./edit-pen-37b5ced2.js";import"./check-f53d8364.js";export{o as default};

View File

@ -1,4 +1,4 @@
import{S as dt,a as Ut}from"./sortable.esm-679e0872.js";import{u as ft}from"./app-29e8e368.js";import{u as qt}from"./hooks-8de8f790.js";import{_ as Kt}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-8c77f9cd.js";import"./index-02c38b19.js";/**! import{S as dt,a as Ut}from"./sortable.esm-679e0872.js";import{u as ft}from"./app-84cf8abc.js";import{u as qt}from"./hooks-8de8f790.js";import{_ as Kt}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-5e5694dd.js";import"./index-4b83e049.js";import"./index-e857c921.js";import"./index-02c38b19.js";/**!
* Sortable 1.14.0 * Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org> * @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com> * @author owenm <owen23355@gmail.com>

Some files were not shown because too many files have changed in this diff Show More