chore: update

This commit is contained in:
xiaoxian521
2024-01-02 19:54:47 +08:00
parent 4fb186424c
commit 951496c72b
585 changed files with 1866 additions and 1927 deletions

1
dist/static/js/403-SMhZJFda.js vendored Normal file

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/404-NupYU3c9.js vendored Normal file

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/500-vWS7UmCp.js vendored Normal file

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/Bar-OU6OIo_h.js vendored Normal file
View File

@@ -0,0 +1 @@
import{_ as o}from"./Bar.vue_vue_type_script_setup_true_lang-UY7F8JiH.js";import"./app-8rXhOD_s.js";import"./index-3m0KmRGm.js";export{o as default};

View File

@@ -1 +0,0 @@
import{_ as o}from"./Bar.vue_vue_type_script_setup_true_lang.js";import"./app.js";import"./index.js";export{o as default};

View File

@@ -0,0 +1 @@
import{u as c}from"./app-8rXhOD_s.js";import{d as n,at as l,E as f,r as p,au as d,dy as e,Y as h,f as m,m as u,aw as g}from"./index-3m0KmRGm.js";const _=n({__name:"Bar",setup(b){const{isDark:a}=l(),r=f(()=>a.value?"dark":"light"),t=p(null),{setOptions:o,resize:s}=d(t,{theme:r});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:i=>{}}),h(()=>c().getSidebarStatus,()=>{g(600).then(()=>s())}),(i,y)=>(m(),u("div",{ref_key:"barChartRef",ref:t,style:{width:"100%",height:"35vh"}},null,512))}});export{_};

View File

@@ -1 +0,0 @@
import{u as n}from"./app.js";import{d as c,ab as l,G as f,r as p,aB as d,dx as e,X as h,g as m,n as u,aD as g}from"./index.js";const _=c({__name:"Bar",setup(b){const{isDark:a}=l(),r=f(()=>a.value?"dark":"light"),t=p(null),{setOptions:o,resize:s}=d(t,{theme:r});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:i=>{}}),h(()=>n().getSidebarStatus,()=>{g(600).then(()=>s())}),(i,y)=>(m(),u("div",{ref_key:"barChartRef",ref:t,style:{width:"100%",height:"35vh"}},null,512))}});export{_};

1
dist/static/js/Card-8PBLYTjV.js vendored Normal file
View File

@@ -0,0 +1 @@
import{f as t,m as d,g as o,d as I,E as g,b as s,i as c,w as n,as as w,c as l,u as i,j as r,h as _,t as m,_ as B}from"./index-3m0KmRGm.js";import{d as S}from"./more-2-fill-476mFkdN.js";const A={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-shop",viewBox:"0 0 16 16"},N=o("path",{fill:"currentColor",d:"M8 1a2.5 2.5 0 0 0-2.5 2.5V5h-2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h9a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-2V3.5A2.5 2.5 0 0 0 8 1m1.5 5v2h1V6H12v8H4V6h1.5v2h1V6zm0-1h-3V3.5a1.5 1.5 0 1 1 3 0z"},null,-1),j=[N];function O(e,a){return t(),d("svg",A,[...j])}const D={render:O},E={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-laptop",viewBox:"0 0 16 16"},L=o("path",{fill:"currentColor",d:"M2.5 12a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1zm0-1h11V4h-11zM15 13H1v1h14z"},null,-1),R=[L];function T(e,a){return t(),d("svg",E,[...R])}const q={render:T},F={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-service",viewBox:"0 0 16 16"},G=o("path",{fill:"currentColor",d:"M2.52 6.37a5.5 5.5 0 0 1 10.98.13v4c0 .05 0 .1-.02.15A4.5 4.5 0 0 1 9 14.7H8v-1h1a3.5 3.5 0 0 0 3.4-2.7h-1.9a.5.5 0 0 1-.5-.5v-4c0-.28.22-.5.5-.5h1.93a4.5 4.5 0 0 0-8.86 0H5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-4c0-.04 0-.09.02-.13M12.5 7H11v3h1.5zm-9 0v3H5V7z"},null,-1),J=[G];function K(e,a){return t(),d("svg",F,[...J])}const P={render:K},Q={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-calendar",viewBox:"0 0 16 16"},U=o("path",{fill:"currentColor",d:"M10 3H6V1.5H5V3H3a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-2V1.5h-1zM5 5h1V4h4v1h1V4h2v2H3V4h2zM3 7h10v6H3z"},null,-1),W=[U];function X(e,a){return t(),d("svg",Q,[...W])}const Y={render:X},Z={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-user-avatar",viewBox:"0 0 16 16"},ee=o("path",{fill:"currentColor",d:"M8 10.5c1.24 0 2.42.31 3.5.88v1.12h1v-1.14a.94.94 0 0 0-.49-.84 8.48 8.48 0 0 0-8.02 0 .94.94 0 0 0-.49.84v1.14h1v-1.12A7.5 7.5 0 0 1 8 10.5M10.5 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0m-1 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"},null,-1),te=o("path",{fill:"currentColor",d:"M2.5 1.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1zm11 1v11h-11v-11z"},null,-1),oe=[ee,te];function ce(e,a){return t(),d("svg",Z,[...oe])}const ne={render:ce},ae={class:"list-card-item_detail bg-bg_color"},se={class:"list-card-item_detail--operation"},ie={class:"list-card-item_detail--name text-text_color_primary"},de={class:"list-card-item_detail--desc text-text_color_regular"},le=I({name:"ReCard",__name:"Card",props:{product:{type:Object}},emits:["manage-product","delete-item"],setup(e,{emit:a}){const p=e,v=a,x=h=>{v("manage-product",h)},$=h=>{v("delete-item",h)},C=g(()=>["list-card-item",{"list-card-item__disabled":!p.product.isSetup}]),V=g(()=>["list-card-item_detail--logo",{"list-card-item_detail--logo__disabled":!p.product.isSetup}]);return(h,u)=>{const y=s("el-tag"),k=s("IconifyIconOffline"),f=s("el-dropdown-item"),z=s("el-dropdown-menu"),H=s("el-dropdown"),M=s("el-row");return t(),d("div",{class:w(C.value)},[o("div",ae,[c(M,{justify:"space-between"},{default:n(()=>[o("div",{class:w(V.value)},[e.product.type===1?(t(),l(i(D),{key:0})):r("",!0),e.product.type===2?(t(),l(i(Y),{key:1})):r("",!0),e.product.type===3?(t(),l(i(P),{key:2})):r("",!0),e.product.type===4?(t(),l(i(ne),{key:3})):r("",!0),e.product.type===5?(t(),l(i(q),{key:4})):r("",!0)],2),o("div",se,[c(y,{color:e.product.isSetup?"#00a870":"#eee",effect:"dark",class:"mx-1 list-card-item_detail--operation--tag"},{default:n(()=>[_(m(e.product.isSetup?"已启用":"已停用"),1)]),_:1},8,["color"]),c(H,{trigger:"click",disabled:!e.product.isSetup},{dropdown:n(()=>[c(z,{disabled:!e.product.isSetup},{default:n(()=>[c(f,{onClick:u[0]||(u[0]=b=>x(e.product))},{default:n(()=>[_(" 管理 ")]),_:1}),c(f,{onClick:u[1]||(u[1]=b=>$(e.product))},{default:n(()=>[_(" 删除 ")]),_:1})]),_:1},8,["disabled"])]),default:n(()=>[c(k,{icon:i(S),class:"text-[24px]"},null,8,["icon"])]),_:1},8,["disabled"])])]),_:1}),o("p",ie,m(e.product.name),1),o("p",de,m(e.product.description),1)])],2)}}}),ue=B(le,[["__scopeId","data-v-aa9a6877"]]);export{ue as default};

View File

@@ -1 +0,0 @@
import{g as t,n as i,h as o,d as b,G as f,c as s,j as n,w as a,av as g,f as l,u as d,k as r,i as u,t as m,_ as I}from"./index.js";import{d as B}from"./more-2-fill.js";const S={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-shop",viewBox:"0 0 16 16"},A=o("path",{fill:"currentColor",d:"M8 1a2.5 2.5 0 0 0-2.5 2.5V5h-2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h9a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-2V3.5A2.5 2.5 0 0 0 8 1zm1.5 5v2h1V6H12v8H4V6h1.5v2h1V6h3zm0-1h-3V3.5a1.5 1.5 0 1 1 3 0V5z"},null,-1),N=[A];function j(e,c){return t(),i("svg",S,N)}const O={render:j},D={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-laptop",viewBox:"0 0 16 16"},E=o("path",{fill:"currentColor",d:"M2.5 12a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-11zm0-1h11V4h-11v7zM15 13H1v1h14v-1z"},null,-1),G=[E];function L(e,c){return t(),i("svg",D,G)}const R={render:L},T={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-service",viewBox:"0 0 16 16"},q=o("path",{fill:"currentColor",d:"M2.52 6.37a5.5 5.5 0 0 1 10.98.13v4c0 .05 0 .1-.02.15A4.5 4.5 0 0 1 9 14.7H8v-1h1a3.5 3.5 0 0 0 3.4-2.7h-1.9a.5.5 0 0 1-.5-.5v-4c0-.28.22-.5.5-.5h1.93a4.5 4.5 0 0 0-8.86 0H5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5v-4c0-.04 0-.09.02-.13zM12.5 7H11v3h1.5V7zm-9 0v3H5V7H3.5z"},null,-1),F=[q];function J(e,c){return t(),i("svg",T,F)}const K={render:J},P={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-calendar",viewBox:"0 0 16 16"},Q=o("path",{fill:"currentColor",d:"M10 3H6V1.5H5V3H3a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-2V1.5h-1V3zM5 5h1V4h4v1h1V4h2v2H3V4h2v1zM3 7h10v6H3V7z"},null,-1),U=[Q];function W(e,c){return t(),i("svg",P,U)}const X={render:W},Y={width:"1em",height:"1em",fill:"none",class:"t-icon t-icon-user-avatar",viewBox:"0 0 16 16"},Z=o("path",{fill:"currentColor",d:"M8 10.5c1.24 0 2.42.31 3.5.88v1.12h1v-1.14a.94.94 0 0 0-.49-.84 8.48 8.48 0 0 0-8.02 0 .94.94 0 0 0-.49.84v1.14h1v-1.12A7.47 7.47 0 0 1 8 10.5zM10.5 6a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm-1 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0z"},null,-1),ee=o("path",{fill:"currentColor",d:"M2.5 1.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11zm11 1v11h-11v-11h11z"},null,-1),te=[Z,ee];function oe(e,c){return t(),i("svg",Y,te)}const ce={render:oe},ne={class:"list-card-item_detail bg-bg_color"},ae={class:"list-card-item_detail--operation"},se={class:"list-card-item_detail--name text-text_color_primary"},de={class:"list-card-item_detail--desc text-text_color_regular"},ie=b({name:"ReCard",__name:"Card",props:{product:{type:Object}},emits:["manage-product","delete-item"],setup(e,{emit:c}){const v=e,V=h=>{c("manage-product",h)},x=h=>{c("delete-item",h)},w=f(()=>["list-card-item",{"list-card-item__disabled":!v.product.isSetup}]),$=f(()=>["list-card-item_detail--logo",{"list-card-item_detail--logo__disabled":!v.product.isSetup}]);return(h,_)=>{const C=s("el-tag"),y=s("IconifyIconOffline"),p=s("el-dropdown-item"),z=s("el-dropdown-menu"),k=s("el-dropdown"),H=s("el-row");return t(),i("div",{class:g(w.value)},[o("div",ne,[n(H,{justify:"space-between"},{default:a(()=>[o("div",{class:g($.value)},[e.product.type===1?(t(),l(d(O),{key:0})):r("",!0),e.product.type===2?(t(),l(d(X),{key:1})):r("",!0),e.product.type===3?(t(),l(d(K),{key:2})):r("",!0),e.product.type===4?(t(),l(d(ce),{key:3})):r("",!0),e.product.type===5?(t(),l(d(R),{key:4})):r("",!0)],2),o("div",ae,[n(C,{color:e.product.isSetup?"#00a870":"#eee",effect:"dark",class:"mx-1 list-card-item_detail--operation--tag"},{default:a(()=>[u(m(e.product.isSetup?"已启用":"已停用"),1)]),_:1},8,["color"]),n(k,{trigger:"click",disabled:!e.product.isSetup},{dropdown:a(()=>[n(z,{disabled:!e.product.isSetup},{default:a(()=>[n(p,{onClick:_[0]||(_[0]=M=>V(e.product))},{default:a(()=>[u(" 管理 ")]),_:1}),n(p,{onClick:_[1]||(_[1]=M=>x(e.product))},{default:a(()=>[u(" 删除 ")]),_:1})]),_:1},8,["disabled"])]),default:a(()=>[n(y,{icon:d(B),class:"text-[24px]"},null,8,["icon"])]),_:1},8,["disabled"])])]),_:1}),o("p",se,m(e.product.name),1),o("p",de,m(e.product.description),1)])],2)}}});const he=I(ie,[["__scopeId","data-v-aa9a6877"]]);export{he as default};

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

@@ -0,0 +1 @@
import{_ as m}from"./DialogForm.vue_vue_type_script_setup_true_lang-taY_LElq.js";import"./index-3m0KmRGm.js";export{m as default};

View File

@@ -1 +0,0 @@
import{_ as m}from"./DialogForm.vue_vue_type_script_setup_true_lang.js";import"./index.js";export{m as default};

View File

@@ -0,0 +1 @@
var F=(b,V,d)=>new Promise((_,p)=>{var r=n=>{try{i(d.next(n))}catch(m){p(m)}},u=n=>{try{i(d.throw(n))}catch(m){p(m)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(r,u);i((d=d.apply(b,V)).next())});import{d as L,r as c,Y as g,c as R,w as t,b as s,f as C,i as a,h as v,m as j,x as I,t as M,F as P,q as Y}from"./index-3m0KmRGm.js";const A=L({__name:"DialogForm",props:{visible:{type:Boolean,default:!1},data:{type:Object,default:()=>({})}},emits:["update:visible"],setup(b,{emit:V}){const d=[{label:"网关",value:1},{label:"人工智能",value:2},{label:"CVM",value:3},{label:"防火墙",value:4},{label:"未知",value:5}],_=b,p=c(),r=c(!1),u=c(_.data),i=c(""),n=o=>F(this,null,function*(){o&&(yield o.validate(e=>{e&&(Y("提交成功",{type:"success"}),r.value=!1,m(o))}))}),m=o=>{o&&o.resetFields()},x=()=>{r.value=!1,m(p.value)},U=V;g(()=>r.value,o=>{U("update:visible",o)}),g(()=>_.visible,o=>{r.value=o}),g(()=>_.data,o=>{u.value=o});const B={name:[{required:!0,message:"请输入产品名称",trigger:"blur"}]};return(o,e)=>{const y=s("el-input"),f=s("el-form-item"),w=s("el-radio"),D=s("el-radio-group"),N=s("el-option"),O=s("el-select"),S=s("el-form"),k=s("el-button"),T=s("el-dialog");return C(),R(T,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=l=>r.value=l),title:"新建产品",width:680,draggable:"","before-close":x},{footer:t(()=>[a(k,{onClick:x},{default:t(()=>[v("取消")]),_:1}),a(k,{type:"primary",onClick:e[5]||(e[5]=l=>n(p.value))},{default:t(()=>[v(" 确定 ")]),_:1})]),default:t(()=>[a(S,{ref_key:"ruleFormRef",ref:p,model:u.value,rules:B,"label-width":"100px"},{default:t(()=>[a(f,{label:"产品名称",prop:"name"},{default:t(()=>[a(y,{modelValue:u.value.name,"onUpdate:modelValue":e[0]||(e[0]=l=>u.value.name=l),style:{width:"480px"},placeholder:"请输入产品名称"},null,8,["modelValue"])]),_:1}),a(f,{label:"产品状态",prop:"status"},{default:t(()=>[a(D,{modelValue:u.value.status,"onUpdate:modelValue":e[1]||(e[1]=l=>u.value.status=l)},{default:t(()=>[a(w,{label:"0"},{default:t(()=>[v("已停用")]),_:1}),a(w,{label:"1"},{default:t(()=>[v("已启用")]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(f,{label:"产品描述",prop:"description"},{default:t(()=>[a(y,{modelValue:u.value.description,"onUpdate:modelValue":e[2]||(e[2]=l=>u.value.description=l),style:{width:"480px"},placeholder:"请输入产品描述"},null,8,["modelValue"])]),_:1}),a(f,{label:"产品类型",prop:"type"},{default:t(()=>[a(O,{modelValue:u.value.type,"onUpdate:modelValue":e[3]||(e[3]=l=>u.value.type=l),clearable:"",style:{width:"480px"}},{default:t(()=>[(C(),j(P,null,I(d,(l,q)=>a(N,{key:q,value:l.value,label:l.label},{default:t(()=>[v(M(l.label),1)]),_:2},1032,["value","label"])),64))]),_:1},8,["modelValue"])]),_:1}),a(f,{label:"备注",prop:"mark"},{default:t(()=>[a(y,{modelValue:i.value,"onUpdate:modelValue":e[4]||(e[4]=l=>i.value=l),type:"textarea",style:{width:"480px"},placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{A as _};

View File

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

1
dist/static/js/Github-aawBjzaJ.js vendored Normal file
View File

@@ -0,0 +1 @@
import{_ as o}from"./Github.vue_vue_type_script_setup_true_lang-UkbRsV78.js";import"./columns-l_bivDMC.js";import"./index-ZjcyqjHS.js";import"./index-3m0KmRGm.js";import"./office-building-OE6SrNBX.js";import"./iphone-hX6N5AWM.js";import"./user-3-fill-Tv9bvDaP.js";export{o as default};

View File

@@ -1 +0,0 @@
import{_ as o}from"./Github.vue_vue_type_script_setup_true_lang.js";import"./columns17.js";import"./index65.js";import"./index.js";import"./office-building.js";import"./iphone.js";import"./user-3-fill.js";export{o as default};

View File

@@ -0,0 +1 @@
import{useColumns as r}from"./columns-l_bivDMC.js";import{d as u,b as t,f as a,m as i,x as p,i as _,F as d}from"./index-3m0KmRGm.js";const B=u({__name:"Github",setup(f){const{columnsA:o,columnsB:e,columnsC:s}=r(),c=[{columns:o,column:3},{columns:e,column:2},{columns:s,column:1}];return(C,b)=>{const m=t("PureDescriptions");return a(),i(d,null,p(c,(n,l)=>_(m,{key:l,columns:n.columns,column:n.column,direction:"vertical",border:""},null,8,["columns","column"])),64)}}});export{B as _};

View File

@@ -1 +0,0 @@
import{useColumns as r}from"./columns17.js";import{d as u,c as t,g as a,n as i,y as p,j as _,F as d}from"./index.js";const g=u({__name:"Github",setup(f){const{columnsA:o,columnsB:c,columnsC:e}=r(),s=[{columns:o,column:3},{columns:c,column:2},{columns:e,column:1}];return(C,k)=>{const l=t("PureDescriptions");return a(),i(d,null,p(s,(n,m)=>_(l,{key:m,columns:n.columns,column:n.column,direction:"vertical",border:""},null,8,["columns","column"])),64)}}});export{g as _};

1
dist/static/js/Line-zRHMf-wq.js vendored Normal file
View File

@@ -0,0 +1 @@
import{_ as o}from"./Line.vue_vue_type_script_setup_true_lang-z7ywH9Y9.js";import"./app-8rXhOD_s.js";import"./index-3m0KmRGm.js";export{o as default};

View File

@@ -1 +0,0 @@
import{_ as o}from"./Line.vue_vue_type_script_setup_true_lang.js";import"./app.js";import"./index.js";export{o as default};

View File

@@ -0,0 +1 @@
import{u as m}from"./app-8rXhOD_s.js";import{d as p,at as u,E as f,r as d,au as h,av as y,Y as k,f as g,m as x,aw as b}from"./index-3m0KmRGm.js";const S=p({__name:"Line",setup(_){const{isDark:o}=u(),l=f(()=>o.value?"dark":"default"),r=d(null),{setOptions:n,getInstance:i,resize:c}=h(r,{theme:l}),s=(()=>{const e=[];for(let t=1;t<31;t++)e.push(`${t}`);return e})();n({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:s}],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 a=1;return y(()=>{a==s.length-24&&(a=0),i().dispatchAction({type:"dataZoom",startValue:a,endValue:a+24}),a++},2e3),k(()=>m().getSidebarStatus,()=>{b(600).then(()=>c())}),(e,t)=>(g(),x("div",{ref_key:"lineChartRef",ref:r,style:{width:"100%",height:"35vh"}},null,512))}});export{S as _};

View File

@@ -1 +0,0 @@
import{u as m}from"./app.js";import{d as p,ab as u,G as d,r as f,aB as h,aC as y,X as g,g as k,n as x,aD as b}from"./index.js";const S=p({__name:"Line",setup(_){const{isDark:o}=u(),l=d(()=>o.value?"dark":"default"),r=f(null),{setOptions:n,getInstance:i,resize:c}=h(r,{theme:l}),s=(()=>{const e=[];for(let t=1;t<31;t++)e.push(`${t}`);return e})();n({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:s}],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 a=1;return y(()=>{a==s.length-24&&(a=0),i().dispatchAction({type:"dataZoom",startValue:a,endValue:a+24}),a++},2e3),g(()=>m().getSidebarStatus,()=>{b(600).then(()=>c())}),(e,t)=>(k(),x("div",{ref_key:"lineChartRef",ref:r,style:{width:"100%",height:"35vh"}},null,512))}});export{S as _};

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

@@ -0,0 +1 @@
import{_ as o}from"./Pie.vue_vue_type_script_setup_true_lang-cCBLKVsQ.js";import"./app-8rXhOD_s.js";import"./index-3m0KmRGm.js";export{o as default};

View File

@@ -1 +0,0 @@
import{_ as o}from"./Pie.vue_vue_type_script_setup_true_lang.js";import"./app.js";import"./index.js";export{o as default};

View File

@@ -0,0 +1 @@
import{u as o}from"./app-8rXhOD_s.js";import{d as n,at as i,E as l,r as p,au as m,Y as u,f,m as h,aw as d}from"./index-3m0KmRGm.js";const w=n({__name:"Pie",setup(k){const{isDark:t}=i(),r=l(()=>t.value?"dark":"light"),e=p(null),{setOptions:s,resize:c}=m(e,{theme:r});return s({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:a=>{}},{type:"zrender",name:"click",callback:a=>{}}),u(()=>o().getSidebarStatus,()=>{d(600).then(()=>c())}),(a,_)=>(f(),h("div",{ref_key:"pieChartRef",ref:e,style:{width:"100%",height:"35vh"}},null,512))}});export{w as _};

View File

@@ -1 +0,0 @@
import{u as n}from"./app.js";import{d as o,ab as i,G as l,r as p,aB as m,X as u,g as h,n as f,aD as d}from"./index.js";const b=o({__name:"Pie",setup(k){const{isDark:t}=i(),r=l(()=>t.value?"dark":"light"),e=p(null),{setOptions:s,resize:c}=m(e,{theme:r});return s({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:a=>{}},{type:"zrender",name:"click",callback:a=>{}}),u(()=>n().getSidebarStatus,()=>{d(600).then(()=>c())}),(a,_)=>(h(),f("div",{ref_key:"pieChartRef",ref:e,style:{width:"100%",height:"35vh"}},null,512))}});export{b as _};

1
dist/static/js/app-8rXhOD_s.js vendored Normal file
View File

@@ -0,0 +1 @@
var l=(e,a,t)=>new Promise((i,n)=>{var b=s=>{try{u(t.next(s))}catch(d){n(d)}},S=s=>{try{u(t.throw(s))}catch(d){n(d)}},u=s=>s.done?i(s.value):Promise.resolve(s.value).then(b,S);u((t=t.apply(e,a)).next())});import{ax as h,ay as o,az as r,aA as p,an as c,aB as f}from"./index-3m0KmRGm.js";const g=h({id:"pure-app",state:()=>{var e,a,t,i;return{sidebar:{opened:(a=(e=o().getItem(`${r()}layout`))==null?void 0:e.sidebarStatus)!=null?a:p().SidebarStatus,withoutAnimation:!1,isClickCollapse:!1},layout:(i=(t=o().getItem(`${r()}layout`))==null?void 0:t.layout)!=null?i:p().Layout,device:c()?"mobile":"desktop",sortSwap:!1}},getters:{getSidebarStatus(e){return e.sidebar.opened},getDevice(e){return e.device}},actions:{TOGGLE_SIDEBAR(e,a){const t=o().getItem(`${r()}layout`);e&&a?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!0,t.sidebarStatus=!0):!e&&a?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!1,t.sidebarStatus=!1):!e&&!a&&(this.sidebar.withoutAnimation=!1,this.sidebar.opened=!this.sidebar.opened,this.sidebar.isClickCollapse=!this.sidebar.opened,t.sidebarStatus=this.sidebar.opened),o().setItem(`${r()}layout`,t)},toggleSideBar(e,a){return l(this,null,function*(){yield this.TOGGLE_SIDEBAR(e,a)})},toggleDevice(e){this.device=e},setLayout(e){this.layout=e},setSortSwap(e){this.sortSwap=e}}});function A(){return g(f)}export{A as u};

View File

@@ -1 +0,0 @@
import{aE as r,aF as s,aG as i,aH as o,ar as u,aI as d}from"./index.js";const n=r({id:"pure-app",state:()=>{var e,t;return{sidebar:{opened:((e=s().getItem(`${i()}layout`))==null?void 0:e.sidebarStatus)??o().SidebarStatus,withoutAnimation:!1,isClickCollapse:!1},layout:((t=s().getItem(`${i()}layout`))==null?void 0:t.layout)??o().Layout,device:u()?"mobile":"desktop",sortSwap:!1}},getters:{getSidebarStatus(e){return e.sidebar.opened},getDevice(e){return e.device}},actions:{TOGGLE_SIDEBAR(e,t){const a=s().getItem(`${i()}layout`);e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!0,a.sidebarStatus=!0):!e&&t?(this.sidebar.withoutAnimation=!0,this.sidebar.opened=!1,a.sidebarStatus=!1):!e&&!t&&(this.sidebar.withoutAnimation=!1,this.sidebar.opened=!this.sidebar.opened,this.sidebar.isClickCollapse=!this.sidebar.opened,a.sidebarStatus=this.sidebar.opened),s().setItem(`${i()}layout`,a)},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 p(){return n(d)}export{p as u};

1
dist/static/js/back_top-fO1lEnSD.js vendored Normal file
View File

@@ -0,0 +1 @@
import{f as e,m as o,g as t}from"./index-3m0KmRGm.js";const a={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},n=t("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),s=t("path",{d:"M2.88 18.054a35.9 35.9 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0q.25.27.413.455a35.9 35.9 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44 44 0 0 1-6.584-.874m6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42 42 0 0 0 4.227-.454A33.9 33.9 0 0 0 12 4.09a33.9 33.9 0 0 0-6.649 12.387q2.093.334 4.227.454M12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6m0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1),c=[n,s];function l(h,r){return e(),o("svg",a,[...c])}const _={render:l};export{_ as b};

View File

@@ -1 +0,0 @@
import{g as e,n as o,h as t}from"./index.js";const a={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},n=t("path",{fill:"none",d:"M0 0h24v24H0z"},null,-1),c=t("path",{d:"M2.88 18.054a35.897 35.897 0 0 1 8.531-16.32.8.8 0 0 1 1.178 0c.166.18.304.332.413.455a35.897 35.897 0 0 1 8.118 15.865c-2.141.451-4.34.747-6.584.874l-2.089 4.178a.5.5 0 0 1-.894 0l-2.089-4.178a44.019 44.019 0 0 1-6.584-.874zm6.698-1.123 1.157.066L12 19.527l1.265-2.53 1.157-.066a42.137 42.137 0 0 0 4.227-.454A33.913 33.913 0 0 0 12 4.09a33.913 33.913 0 0 0-6.649 12.387c1.395.222 2.805.374 4.227.454zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"},null,-1),s=[n,c];function h(l,r){return e(),o("svg",a,s)}const _={render:h};export{_ as b};

1
dist/static/js/barcode-PqWpn5Uw.js vendored Normal file

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/base-X7VF9YRI.js vendored Normal file
View File

@@ -0,0 +1 @@
import{_ as o}from"./base.vue_vue_type_script_setup_true_lang-oYkViuFc.js";import"./index.esm-dunGVE1D.js";import"./index-3m0KmRGm.js";export{o as default};

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

@@ -0,0 +1 @@
import{_ as o}from"./base.vue_vue_type_script_setup_true_lang-HNbNgBIi.js";import"./data-sfII4Kni.js";import"./index-3m0KmRGm.js";export{o as default};

View File

@@ -1 +0,0 @@
import{_ as o}from"./base.vue_vue_type_script_setup_true_lang.js";import"./index.esm2.js";import"./index.js";export{o as default};

View File

@@ -0,0 +1 @@
import{t as o}from"./data-sfII4Kni.js";import{d as t,b as n,f as r,c as p,u as s}from"./index-3m0KmRGm.js";const b=t({__name:"base",setup(l){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(c,_)=>{const a=n("pure-table");return r(),p(a,{data:s(o),columns:e},null,8,["data"])}}});export{b as _};

View File

@@ -0,0 +1 @@
import{T as c,E as f}from"./index.esm-dunGVE1D.js";import{d as m,b6 as p,r as v,o as _,a as C,f as b,m as g,i as l,u as n}from"./index-3m0KmRGm.js";const h={class:"wangeditor"},r="default",E=m({name:"BaseEditor",__name:"base",setup(x){const o=p(),t=v("<p>你好</p>");_(()=>{setTimeout(()=>{t.value="<p>我是模拟的异步数据</p>"},1500)});const s={excludeKeys:"fullScreen"},d={placeholder:"请输入内容..."},u=e=>{o.value=e};return C(()=>{const e=o.value;e!=null&&e.destroy()}),(e,a)=>(b(),g("div",h,[l(n(c),{editor:o.value,defaultConfig:s,mode:r,style:{"border-bottom":"1px solid #ccc"}},null,8,["editor"]),l(n(f),{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),defaultConfig:d,mode:r,style:{height:"500px","overflow-y":"hidden"},onOnCreated:u},null,8,["modelValue"])]))}});export{E as _};

View File

@@ -1 +0,0 @@
import{T as c,E as f}from"./index.esm2.js";import{d as m,aw as p,r as v,a as _,b as g,g as C,n as b,j as l,u as n}from"./index.js";const h={class:"wangeditor"},r="default",B=m({name:"BaseEditor",__name:"base",setup(x){const o=p(),t=v("<p>你好</p>");_(()=>{setTimeout(()=>{t.value="<p>我是模拟的异步数据</p>"},1500)});const s={excludeKeys:"fullScreen"},d={placeholder:"请输入内容..."},u=e=>{o.value=e};return g(()=>{const e=o.value;e!=null&&e.destroy()}),(e,a)=>(C(),b("div",h,[l(n(c),{editor:o.value,defaultConfig:s,mode:r,style:{"border-bottom":"1px solid #ccc"}},null,8,["editor"]),l(n(f),{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),defaultConfig:d,mode:r,style:{height:"500px","overflow-y":"hidden"},onOnCreated:u},null,8,["modelValue"])]))}});export{B as _};

View File

@@ -1 +0,0 @@
import{t as o}from"./data.js";import{d as t,c as n,g as r,f as p,u as s}from"./index.js";const b=t({__name:"base",setup(l){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(c,_)=>{const a=n("pure-table");return r(),p(a,{data:s(o),columns:e},null,8,["data"])}}});export{b as _};

View File

@@ -1 +0,0 @@
import{_ as o}from"./base.vue_vue_type_script_setup_true_lang2.js";import"./data.js";import"./index.js";export{o as default};

1
dist/static/js/basic-H3kcSWcc.js vendored Normal file
View File

@@ -0,0 +1 @@
import{C as _,a as m,b as d,c as l,d as i,e as D}from"./index.esm-xBasQcFm.js";import{d as h,_ as b,b as a,e as F,f as r,m as p,k as B,i as e,w as t,h as u,p as w,l as E,g as C}from"./index-3m0KmRGm.js";const I=h({name:"ExampleSimple",components:{[_.name]:_,[m.name]:m,[d.name]:d,[l.name]:l,[i.name]:i},directives:{contextmenu:D}}),x=o=>(w("data-v-17318510"),o=o(),E(),o),S=x(()=>C("h1",null,"基本使用",-1)),A={class:"wrapper"},$=x(()=>C("code",null,"右键点击此区域",-1)),k=[$];function G(o,N,V,g,H,L){const n=a("v-contextmenu-item"),c=a("v-contextmenu-divider"),s=a("v-contextmenu-submenu"),v=a("v-contextmenu"),f=F("contextmenu");return r(),p("div",null,[S,B((r(),p("div",A,k)),[[f,void 0,"contextmenu"]]),e(v,{ref:"contextmenu"},{default:t(()=>[e(n,null,{default:t(()=>[u("GitHub")]),_:1}),e(n,null,{default:t(()=>[u("GitLab")]),_:1}),e(c),e(s,{title:"蔬菜菜"},{default:t(()=>[e(n,null,{default:t(()=>[u("土豆")]),_:1}),e(s,{title:"青菜"},{default:t(()=>[e(n,null,{default:t(()=>[u("小油菜")]),_:1}),e(n,null,{default:t(()=>[u("空心菜")]),_:1})]),_:1}),e(n,null,{default:t(()=>[u("黄瓜")]),_:1})]),_:1}),e(n,{disabled:""},{default:t(()=>[u("菠萝蜜")]),_:1}),e(c),e(n,null,{default:t(()=>[u("哈密瓜")]),_:1})]),_:1},512)])}const q=b(I,[["render",G],["__scopeId","data-v-17318510"]]);export{q as default};

View File

@@ -1 +0,0 @@
import{C as _,a as m,b as d,c as l,d as i,e as D}from"./index.esm.js";import{d as h,_ as b,c,e as F,g as p,n as r,l as B,j as e,w as t,i as u,p as w,m as E,h as x}from"./index.js";const I=h({name:"ExampleSimple",components:{[_.name]:_,[m.name]:m,[d.name]:d,[l.name]:l,[i.name]:i},directives:{contextmenu:D}});const C=o=>(w("data-v-17318510"),o=o(),E(),o),S=C(()=>x("h1",null,"基本使用",-1)),A={class:"wrapper"},$=C(()=>x("code",null,"右键点击此区域",-1)),G=[$];function N(o,V,g,k,y,j){const n=c("v-contextmenu-item"),a=c("v-contextmenu-divider"),s=c("v-contextmenu-submenu"),v=c("v-contextmenu"),f=F("contextmenu");return p(),r("div",null,[S,B((p(),r("div",A,G)),[[f,void 0,"contextmenu"]]),e(v,{ref:"contextmenu"},{default:t(()=>[e(n,null,{default:t(()=>[u("GitHub")]),_:1}),e(n,null,{default:t(()=>[u("GitLab")]),_:1}),e(a),e(s,{title:"蔬菜菜"},{default:t(()=>[e(n,null,{default:t(()=>[u("土豆")]),_:1}),e(s,{title:"青菜"},{default:t(()=>[e(n,null,{default:t(()=>[u("小油菜")]),_:1}),e(n,null,{default:t(()=>[u("空心菜")]),_:1})]),_:1}),e(n,null,{default:t(()=>[u("黄瓜")]),_:1})]),_:1}),e(n,{disabled:""},{default:t(()=>[u("菠萝蜜")]),_:1}),e(a),e(n,null,{default:t(()=>[u("哈密瓜")]),_:1})]),_:1},512)])}const T=b(I,[["render",N],["__scopeId","data-v-17318510"]]);export{T as default};

1
dist/static/js/border-ae7NE21E.js vendored Normal file
View File

@@ -0,0 +1 @@
import{_ as o}from"./border.vue_vue_type_script_setup_true_lang-cRXoblD_.js";import"./data-sfII4Kni.js";import"./index-3m0KmRGm.js";export{o as default};

View File

@@ -1 +0,0 @@
import{_ as o}from"./border.vue_vue_type_script_setup_true_lang.js";import"./data.js";import"./index.js";export{o as default};

View File

@@ -0,0 +1 @@
import{t as o}from"./data-sfII4Kni.js";import{d as r,b as t,f as n,c as p,u as s}from"./index-3m0KmRGm.js";const d=r({__name:"border",setup(l){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(c,_)=>{const a=t("pure-table");return n(),p(a,{data:s(o),columns:e,border:""},null,8,["data"])}}});export{d as _};

View File

@@ -1 +0,0 @@
import{t as o}from"./data.js";import{d as r,c as t,g as n,f as p,u as s}from"./index.js";const u=r({__name:"border",setup(l){const e=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(c,_)=>{const a=t("pure-table");return n(),p(a,{data:s(o),columns:e,border:""},null,8,["data"])}}});export{u as _};

1
dist/static/js/cascader-ME4IyK-q.js vendored Normal file

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/columns--j9b67GA.js vendored Normal file
View File

@@ -0,0 +1 @@
import{i as e,b as s,h as i,aL as o}from"./index-3m0KmRGm.js";var a={pkg:{dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"2.0.9","@logicflow/core":"^1.2.18","@logicflow/extension":"^1.2.19","@pureadmin/descriptions":"^1.2.0","@pureadmin/table":"^3.0.0","@pureadmin/utils":"^2.1.1","@vueuse/core":"^10.7.1","@vueuse/motion":"^2.0.0","@wangeditor/editor":"^5.1.23","@wangeditor/editor-for-vue":"^5.1.12","@zxcvbn-ts/core":"^3.0.4","animate.css":"^4.1.1",axios:"^1.6.3","china-area-data":"^5.0.1",cropperjs:"^1.6.1",dayjs:"^1.11.10",echarts:"^5.4.3","el-table-infinite-scroll":"^3.0.3","element-plus":"^2.4.4","intro.js":"^7.2.0","js-cookie":"^3.0.5",jsbarcode:"^3.11.6",localforage:"^1.10.0","md-editor-v3":"2.7.2","mint-filter":"^4.0.3",mitt:"^3.0.1",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.1.7","pinyin-pro":"^3.18.6",qrcode:"^1.5.3",qs:"^6.11.2","responsive-storage":"^2.2.0",sortablejs:"^1.15.1",swiper:"^11.0.5",typeit:"^8.8.0","v-contextmenu":"3.0.0","v3-infinite-loading":"^1.3.1","version-rocket":"^1.7.1",vue:"^3.4.3","vue-i18n":"^9.8.0","vue-json-pretty":"^2.3.0","vue-pdf-embed":"^1.2.1","vue-router":"^4.2.5","vue-tippy":"^6.4.1","vue-types":"^5.1.1","vue-virtual-scroller":"2.0.0-beta.8","vue-waterfall-plugin-next":"^2.3.1","vue3-danmaku":"^1.6.0",vuedraggable:"^4.1.0","wavesurfer.js":"^7.6.0",xgplayer:"^3.0.11",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^18.4.3","@commitlint/config-conventional":"^18.4.3","@commitlint/types":"^18.4.3","@eslint/js":"^8.56.0","@faker-js/faker":"^8.3.1","@iconify-icons/ep":"^1.2.12","@iconify-icons/ri":"^1.2.10","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^2.0.0","@pureadmin/theme":"^3.2.0","@types/intro.js":"^5.1.5","@types/js-cookie":"^3.0.6","@types/node":"^20.10.6","@types/nprogress":"^0.2.3","@types/qrcode":"^1.5.5","@types/qs":"^6.9.11","@types/sortablejs":"^1.15.7","@typescript-eslint/eslint-plugin":"^6.17.0","@typescript-eslint/parser":"^6.17.0","@vitejs/plugin-vue":"^5.0.2","@vitejs/plugin-vue-jsx":"^3.1.0",autoprefixer:"^10.4.16",cloc:"^2.11.0",cssnano:"^6.0.2",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-define-config":"^2.1.0","eslint-plugin-prettier":"^5.1.2","eslint-plugin-vue":"^9.19.2",husky:"^8.0.3","lint-staged":"^15.2.0",picocolors:"^1.0.0",postcss:"^8.4.32","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.9",prettier:"^3.1.1",rimraf:"^5.0.5","rollup-plugin-visualizer":"^5.12.0",sass:"^1.69.6",stylelint:"^16.1.0","stylelint-config-recess-order":"^4.4.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard-scss":"^12.0.0","stylelint-prettier":"^5.0.0",svgo:"^3.2.0",tailwindcss:"^3.4.0",typescript:"^5.3.3",vite:"^5.0.10","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-fake-server":"^2.0.1","vite-plugin-remove-console":"^2.2.0","vite-plugin-router-warn":"^1.0.0","vite-svg-loader":"^5.1.0","vue-eslint-parser":"^9.3.2","vue-tsc":"^1.8.27"},name:"vue-pure-admin",version:"4.5.0"},lastBuildTime:"2024-01-02 19:53:48"};function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o(t)}function u(){const{pkg:t,lastBuildTime:r}=a,{version:n}=t;return{columns:[{label:"版本",cellRenderer:()=>e(s("el-tag"),{size:"small"},l(n)?n:{default:()=>[n]})},{label:"最后编译时间",cellRenderer:()=>e(s("el-tag"),{size:"small"},l(r)?r:{default:()=>[r]})},{label:"文档地址",cellRenderer:()=>e("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("文档地址")])])},{label:"预览地址",cellRenderer:()=>e("a",{href:"https://yiming_chang.gitee.io/vue-pure-admin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("预览地址")])])},{label:"Github",cellRenderer:()=>e("a",{href:"https://github.com/pure-admin/vue-pure-admin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("Github")])])},{label:"精简版",cellRenderer:()=>e("a",{href:"https://github.com/pure-admin/pure-admin-thin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("精简版")])])}]}}export{u as useColumns};

1
dist/static/js/columns-46GM2zYs.js vendored Normal file
View File

@@ -0,0 +1 @@
import{r as d,E as i,i as t,b as s,h as o,F as m,q as r}from"./index-3m0KmRGm.js";import{t as p}from"./data-sfII4Kni.js";function g(){const a=d(""),n=i(()=>p.filter(e=>!a.value||e.name.toLowerCase().includes(a.value.toLowerCase()))),u=(e,l)=>{r(`您编辑了第 ${e} 行,数据为:${JSON.stringify(l)}`,{type:"success"})},c=(e,l)=>{r(`您删除了第 ${e} 行,数据为:${JSON.stringify(l)}`)};return{columns:[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{align:"right",headerRenderer:()=>t(s("el-input"),{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,size:"small",clearable:!0,placeholder:"Type to search"},null),cellRenderer:({index:e,row:l})=>t(m,null,[t(s("el-button"),{size:"small",onClick:()=>u(e+1,l)},{default:()=>[o("Edit")]}),t(s("el-button"),{size:"small",type:"danger",onClick:()=>c(e+1,l)},{default:()=>[o("Delete")]})])}],filterTableData:n}}export{g as useColumns};

1
dist/static/js/columns-E1a6zQaF.js vendored Normal file
View File

@@ -0,0 +1 @@
import{P as d}from"./print-v8kborK1.js";import{b}from"./data-Oq3SvOU0.js";import{r as c,C as i}from"./index-3m0KmRGm.js";function g(a){const e=c(i(b,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],o=()=>{d(a.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:e,print:o,rowStyle:u,cellStyle:n,headerCellStyle:l}}export{g as useColumns};

1
dist/static/js/columns-FA4t1zwj.js vendored Normal file
View File

@@ -0,0 +1 @@
import{u as t,w as u}from"./xlsx-mTyBxUMi.js";import{a as i}from"./data-Oq3SvOU0.js";import{r as m,C as f,q as b}from"./index-3m0KmRGm.js";function w(){const s=m(f(i,!0)),e=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}];return{columns:e,dataList:s,exportExcel:()=>{const a=s.value.map(o=>{const p=[];return e.forEach(c=>{p.push(o[c.prop])}),p}),r=[];e.forEach(o=>{r.push(o.label)}),a.unshift(r);const l=t.aoa_to_sheet(a),n=t.book_new();t.book_append_sheet(n,l,"数据报表"),u(n,"pure-admin-table.xlsx"),b("导出成功",{type:"success"})}}}export{w as useColumns};

File diff suppressed because one or more lines are too long

1
dist/static/js/columns-U92ZJTuA.js vendored Normal file
View File

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

1
dist/static/js/columns-ZSsk75o1.js vendored Normal file
View File

@@ -0,0 +1 @@
import{r as c,C as i,at as m,E as p,au as u,a$ as f,q as h}from"./index-3m0KmRGm.js";import{a as d}from"./data-Oq3SvOU0.js";function v(){const a=c(i(d,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:s}=m(),r=p(()=>s.value?"dark":"light");return a.value.forEach((b,e)=>{const{setOptions:o}=u(f(`PieChartRef${e}`),{theme:r});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:n}})=>{h(`您点击了第 ${e+1} 行,图表标题为${l},图表数据为:${n}`,{type:"success"})}})}),{columns:t,dataList:a}}export{v as useColumns};

1
dist/static/js/columns-dMSK1r6p.js vendored Normal file
View File

@@ -0,0 +1 @@
import{b as r}from"./data-Oq3SvOU0.js";import{r as s,C as l,o as p,aw as n,H as i}from"./index-3m0KmRGm.js";function u(a){const e=s(l(r,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return p(()=>{n().then(()=>{const{setWatermark:o}=i(a.value.getTableDoms().tableWrapper);o("编程即艺术",{font:"16px Microsoft YaHei",globalAlpha:.8,forever:!0,width:252,height:80})})}),{columns:t,dataList:e}}export{u as useColumns};

1
dist/static/js/columns-eIiIHdmj.js vendored Normal file
View File

@@ -0,0 +1 @@
import{r as u,aj as p,q as c}from"./index-3m0KmRGm.js";import{b as r}from"./data-Oq3SvOU0.js";function m(t){const a=u(""),o=[{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],n=p({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===a.value?"#f5f7fa":""}}function s(e){a.value=e.name,t.value.blur(),c(`当前选中行的数据为:${JSON.stringify(e)}`,{type:"success"})}return{columns:o,pagination:n,selectValue:a,tableDataEdit:r,rowStyle:l,onRowClick:s}}export{m as useColumns};

10
dist/static/js/columns-gkr5wytq.js vendored Normal file
View File

@@ -0,0 +1,10 @@
var v=Object.defineProperty;var l=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var r=(e,t,a)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,i=(e,t)=>{for(var a in t||(t={}))C.call(t,a)&&r(e,a,t[a]);if(l)for(var a of l(t))b.call(t,a)&&r(e,a,t[a]);return e};import{t as x}from"./data-Oq3SvOU0.js";import{r as u,aj as f,o as w,aw as p,C as L}from"./index-3m0KmRGm.js";function M(){const e=u([]),t=u(!0),a=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],o=f({pageSize:20,currentPage:1,pageSizes:[20,40,60],total:0,align:"right",background:!0,small:!1}),s=f({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:`
<path class="path" d="
M 30 15
L 28 17
M 25.61 25.61
A 15 15, 0, 0, 1, 15 30
A 15 15, 0, 1, 1, 27.99 7.5
L 15 15
" style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
`}),c={offsetBottom:110};function g(n){}function h(n){s.text=`正在加载第${n}页...`,t.value=!0,p(600).then(()=>{t.value=!1})}return w(()=>{p(600).then(()=>{const n=[];Array.from({length:6}).forEach(()=>{n.push(L(x,!0))}),n.flat(1/0).forEach((d,m)=>{e.value.push(i({id:m},d))}),o.total=e.value.length,t.value=!1})}),{loading:t,columns:a,dataList:e,pagination:o,loadingConfig:s,adaptiveConfig:c,onSizeChange:g,onCurrentChange:h}}export{M as useColumns};

1
dist/static/js/columns-hXwdJva0.js vendored Normal file
View File

@@ -0,0 +1 @@
import{i as l,b as n,F as s,h as a,q as r}from"./index-3m0KmRGm.js";import{t as c}from"./data-sfII4Kni.js";function u(){const i=[{label:"日期",prop:"date",cellRenderer:({row:e})=>l("div",{style:"display: flex; align-items: center"},[l(n("iconify-icon-online"),{icon:"ep:timer"},null),l("span",{style:"margin-left: 10px"},[e.date])])},{label:"姓名",prop:"name",cellRenderer:({row:e})=>l(n("el-popover"),{effect:"light",trigger:"hover",placement:"top",width:"auto"},{default:()=>l(s,null,[l("div",null,[a("name: "),e.name]),l("div",null,[a("address: "),e.address])]),reference:()=>l(n("el-tag"),null,{default:()=>[e.name]})})},{label:"地址",prop:"address"},{label:"操作",cellRenderer:({index:e,row:t})=>l(s,null,[l(n("el-button"),{size:"small",onClick:()=>o(e+1,t)},{default:()=>[a("Edit")]}),l(n("el-button"),{size:"small",type:"danger",onClick:()=>d(e+1,t)},{default:()=>[a("Delete")]})])}],o=(e,t)=>{r(`您编辑了第 ${e} 行,数据为:${JSON.stringify(t)}`,{type:"success"})},d=(e,t)=>{r(`您删除了第 ${e} 行,数据为:${JSON.stringify(t)}`)};return{columns:i,tableData:c}}export{u as useColumns};

1
dist/static/js/columns-irABSQ3Z.js vendored Normal file
View File

@@ -0,0 +1 @@
import{r as n,C as y,E as i,i as t,k as r,v as c,dg as I,b as f,q as M,aw as O}from"./index-3m0KmRGm.js";import{b as S}from"./data-Oq3SvOU0.js";import{d as V}from"./edit-pen-A29bH4uw.js";import{d as j}from"./check-f0nOH8pf.js";function $(){const l=n({}),u=n({}),o=n(-1),v=n(y(S,!0)),m=i(()=>e=>{var a;return(a=l.value[e])==null?void 0:a.value}),s=i(()=>e=>{var a;return(a=u.value[e])==null?void 0:a.editing}),p=i(()=>(e,a=!1)=>["cursor-pointer","ml-2","transition","delay-100",a?["hover:scale-110","hover:text-red-500"]:s.value(e)&&["scale-150","text-red-500"]]),b=[{label:"ID可编辑",prop:"id",cellRenderer:({row:e,index:a})=>t("div",{class:"flex-bc w-full h-[32px]",onMouseenter:()=>o.value=a,onMouseleave:()=>d(a)},[r(t("p",null,[e.id]),[[c,!s.value(a)]]),t(I,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster"},{default:()=>[r(t(f("el-input"),{modelValue:m.value(a),onInput:_=>h(_,a)},null),[[c,s.value(a)]])]}),r(t(f("iconify-icon-offline"),{icon:j,class:p.value(a),onClick:()=>C(a)},null),[[c,s.value(a)]]),r(t(f("iconify-icon-offline"),{icon:V,class:p.value(a,!0),onClick:()=>g(e,a)},null),[[c,o.value===a&&!s.value(a)]])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];function g({id:e},a){l.value[a]=Object.assign({},l.value[a],{value:e}),u.value[a]=Object.assign({},u.value[a],{editing:!0})}function d(e){var a;(a=l.value[e])!=null&&a.value?o.value=e:o.value=-1}function h(e,a){l.value[a].value=e}function C(e){v.value[e].id=l.value[e].value,M(`您编辑了第 ${e+1} 行,编辑后数据为:${JSON.stringify(v.value[e])}`,{type:"success"}),u.value[e]=Object.assign({},u.value[e],{editing:!1}),O().then(()=>l.value[e].value=null)}return{columns:b,dataList:v}}export{$ as useColumns};

1
dist/static/js/columns-jiIuRgt8.js vendored Normal file
View File

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

1
dist/static/js/columns-l_bivDMC.js vendored Normal file
View File

@@ -0,0 +1 @@
import{T as o}from"./index-ZjcyqjHS.js";import{d as i}from"./office-building-OE6SrNBX.js";import{d as c}from"./iphone-hX6N5AWM.js";import{d as u}from"./user-3-fill-Tv9bvDaP.js";import{i as e,b as l,h as n}from"./index-3m0KmRGm.js";const r={width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"/>'},s={width:1024,height:1024,body:'<path fill="currentColor" d="M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"/><path fill="currentColor" d="M512 512a96 96 0 1 0 0-192a96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320a160 160 0 0 1 0 320z"/>'},d={width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"/><path fill="currentColor" d="M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"/>'};function C(){const a=[{type:"",label:"善良"},{type:"success",label:"好学"},{type:"info",label:"幽默"},{type:"danger",label:"旅游"},{type:"warning",label:"追剧"}];return{columnsA:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:u},null)]}),n("用户名")]),value:"乐于分享的程序员小铭"},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:c},null)]}),n("手机号")]),value:"123456789"},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:s},null)]}),n("居住地")]),value:"中国"}],columnsB:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:r},null)]}),n("标签")]),cellRenderer:()=>a.map(t=>e(l("el-tag"),{class:"mr-[10px]",type:t.type,size:"small",effect:"dark"},{default:()=>[t.label]}))},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:i},null)]}),n("联系地址")]),value:"中华人民共和国"}],columnsC:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:d},null)]}),n("个性签名")]),cellRenderer:()=>e(o,{className:"github",values:["办法总比困难多"],cursor:!1,speed:100},null)}]}}export{C as useColumns};

1
dist/static/js/columns-qP0hoHRK.js vendored Normal file
View File

@@ -0,0 +1 @@
import{S as m}from"./sortable.esm-budB5lo5.js";import{r as o,C as i,o as b,s as l}from"./index-3m0KmRGm.js";import{a as v}from"./data-Oq3SvOU0.js";function S(){const t=o(i(v,!0)),e=o([{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}]),p=o([{label:"ID",prop:a=>e.value[a].prop},{label:"日期",prop:a=>e.value[a].prop},{label:"姓名",prop:a=>e.value[a].prop}]),n=a=>{a.preventDefault(),l(()=>{const s=document.querySelector(".el-table__header-wrapper tr");m.create(s,{animation:300,delay:0,onEnd:({newIndex:u,oldIndex:r})=>{const c=e.value[r];e.value.splice(r,1),e.value.splice(u,0,c)}})})};return b(()=>{l(()=>{n(event)})}),{columns:p,dataList:t,columnsDrag:e}}export{S as useColumns};

1
dist/static/js/columns-rAvkRdN2.js vendored Normal file
View File

@@ -0,0 +1 @@
import{d as r}from"./arrow-right-s-line-xoI-mVSn.js";import{i as l,b as e,h as o}from"./index-3m0KmRGm.js";const i={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm0-9.414l2.828-2.829l1.415 1.415L13.414 12l2.829 2.828l-1.415 1.415L12 13.414l-2.828 2.829l-1.415-1.415L10.586 12L7.757 9.172l1.415-1.415L12 10.586Z"/>'};function u(){return{columns:[{cellRenderer:()=>l("span",{class:"flex items-center -mt-6"},[l(e("iconify-icon-offline"),{icon:i,color:"#F56C6C",width:"18px",height:"18px"},null),l("span",{class:"ml-1 mr-4"},[o("您的账户已被冻结")]),l("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[o("立即解冻"),l(e("iconify-icon-offline"),{icon:r,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])},{cellRenderer:()=>l("span",{class:"flex items-center -mt-8"},[l(e("iconify-icon-offline"),{icon:i,color:"#F56C6C",width:"18px",height:"18px"},null),l("span",{class:"ml-1 mr-4"},[o("您的账户还不具备申请资格")]),l("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[o("立即升级"),l(e("iconify-icon-offline"),{icon:r,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])}]}}export{u as useColumns};

10
dist/static/js/columns-uy0XpUzs.js vendored Normal file
View File

@@ -0,0 +1,10 @@
var x=Object.defineProperty;var u=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var c=(t,e,a)=>e in t?x(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,f=(t,e)=>{for(var a in e||(e={}))A.call(e,a)&&c(t,a,e[a]);if(u)for(var a of u(e))y.call(e,a)&&c(t,a,e[a]);return t};import{t as z}from"./data-Oq3SvOU0.js";import{r as l,aj as h,b7 as L,o as E,aw as d,C as M}from"./index-3m0KmRGm.js";function B(){const t=l([]),e=l(!0),a=l("no"),o=l("nohide"),g=l("default"),p=l(!1),i=l("right"),v=[{type:"selection",align:"left",reserveSelection:!0,hide:()=>a.value==="no"},{label:"日期",prop:"date",hide:()=>o.value==="hideDate"},{label:"姓名",prop:"name",hide:()=>o.value==="hideName"},{label:"地址",prop:"address",hide:()=>o.value==="hideAddress"}],s=h({pageSize:10,currentPage:1,pageSizes:[10,15,20],total:0,align:"right",background:!0,small:!1}),r=h({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:`
<path class="path" d="
M 30 15
L 28 17
M 25.61 25.61
A 15 15, 0, 0, 1, 15 30
A 15 15, 0, 1, 1, 27.99 7.5
L 15 15
" style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
`});function m(n){s.small=n}function b(n){}function C(n){r.text=`正在加载第${n}页...`,e.value=!0,d(600).then(()=>{e.value=!1})}return L(()=>{s.align=i.value}),E(()=>{d(600).then(()=>{const n=[];Array.from({length:6}).forEach(()=>{n.push(M(z,!0))}),n.flat(1/0).forEach((S,w)=>{t.value.push(f({id:w},S))}),s.total=t.value.length,e.value=!1})}),{loading:e,columns:v,dataList:t,select:a,hideVal:o,tableSize:g,pagination:s,loadingConfig:r,paginationAlign:i,paginationSmall:p,onChange:m,onSizeChange:b,onCurrentChange:C}}export{B as useColumns};

View File

@@ -1 +0,0 @@
import{j as e,c as n,i,az as o}from"./index.js";function l(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!o(t)}function p(){const{pkg:t,lastBuildTime:s}={pkg:{dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"2.0.9","@logicflow/core":"^1.2.17","@logicflow/extension":"^1.2.18","@pureadmin/descriptions":"^1.2.0","@pureadmin/table":"^2.3.4","@pureadmin/utils":"^1.9.10","@vueuse/core":"^10.5.0","@vueuse/motion":"^2.0.0","@wangeditor/editor":"^5.1.23","@wangeditor/editor-for-vue":"^5.1.12","@zxcvbn-ts/core":"^3.0.4","animate.css":"^4.1.1",axios:"^1.6.0","china-area-data":"^5.0.1",cropperjs:"^1.6.1",dayjs:"^1.11.10",echarts:"^5.4.3","el-table-infinite-scroll":"^3.0.3","element-plus":"^2.4.1","intro.js":"^7.2.0","js-cookie":"^3.0.5",jsbarcode:"^3.11.5",localforage:"^1.10.0","md-editor-v3":"2.7.2","mint-filter":"^4.0.3",mitt:"^3.0.1",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.1.7","pinyin-pro":"^3.17.0",qrcode:"^1.5.3",qs:"^6.11.2","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^11.0.3",typeit:"^8.7.1","v-contextmenu":"3.0.0","v3-infinite-loading":"^1.3.1","version-rocket":"^1.7.0",vue:"^3.3.7","vue-i18n":"^9.6.2","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.2.1","vue-router":"^4.2.5","vue-tippy":"^6.3.1","vue-types":"^5.1.1","vue-virtual-scroller":"2.0.0-beta.8","vue-waterfall-plugin-next":"^2.2.4","vue3-danmaku":"^1.6.0",vuedraggable:"^4.1.0","wavesurfer.js":"^7.4.2",xgplayer:"^3.0.9",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.7.2","@commitlint/config-conventional":"^17.7.0","@iconify-icons/ep":"^1.2.12","@iconify-icons/ri":"^1.2.10","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^1.4.0","@pureadmin/theme":"^3.2.0","@types/intro.js":"^5.1.2","@types/js-cookie":"^3.0.4","@types/mockjs":"^1.0.8","@types/node":"^20.8.2","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.2","@types/qs":"^6.9.8","@types/sortablejs":"^1.15.3","@typescript-eslint/eslint-plugin":"^6.7.4","@typescript-eslint/parser":"^6.7.4","@vitejs/plugin-vue":"^4.4.0","@vitejs/plugin-vue-jsx":"^3.0.2","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.16",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.50.0","eslint-plugin-prettier":"^5.0.0","eslint-plugin-vue":"^9.18.1",husky:"^8.0.3","lint-staged":"^14.0.1",picocolors:"^1.0.0",postcss:"^8.4.31","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.9",prettier:"^3.0.3",rimraf:"^5.0.5","rollup-plugin-visualizer":"^5.9.2",sass:"^1.69.0","sass-loader":"^13.3.2",stylelint:"^15.10.3","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.3.0","stylelint-config-recommended":"^13.0.0","stylelint-config-recommended-scss":"^13.0.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard":"^34.0.0","stylelint-config-standard-scss":"^11.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^4.0.2","stylelint-scss":"^5.2.1",svgo:"^3.0.2",tailwindcss:"^3.3.5",terser:"^5.24.0",typescript:"^5.2.2",vite:"^4.5.0","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.3.2","vue-tsc":"^1.8.22"},name:"vue-pure-admin",version:"4.5.0"},lastBuildTime:"2023-11-02 10:06:30"},{version:r}=t;return{columns:[{label:"版本",cellRenderer:()=>e(n("el-tag"),{size:"small"},l(r)?r:{default:()=>[r]})},{label:"最后编译时间",cellRenderer:()=>e(n("el-tag"),{size:"small"},l(s)?s:{default:()=>[s]})},{label:"文档地址",cellRenderer:()=>e("a",{href:"https://yiming_chang.gitee.io/pure-admin-doc",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("文档地址")])])},{label:"预览地址",cellRenderer:()=>e("a",{href:"https://yiming_chang.gitee.io/vue-pure-admin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("预览地址")])])},{label:"Github",cellRenderer:()=>e("a",{href:"https://github.com/pure-admin/vue-pure-admin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("Github")])])},{label:"精简版",cellRenderer:()=>e("a",{href:"https://github.com/pure-admin/pure-admin-thin",target:"_blank"},[e("span",{style:"color: var(--el-color-primary)"},[i("精简版")])])}]}}export{p as useColumns};

View File

@@ -1 +0,0 @@
import{u as t,w as u}from"./xlsx.js";import{a as i}from"./data2.js";import{r as m,D as b,q as f}from"./index.js";function w(){const s=m(b(i,!0)),e=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}];return{columns:e,dataList:s,exportExcel:()=>{const a=s.value.map(o=>{const p=[];return e.forEach(c=>{p.push(o[c.prop])}),p}),r=[];e.forEach(o=>{r.push(o.label)}),a.unshift(r);const l=t.aoa_to_sheet(a),n=t.book_new();t.book_append_sheet(n,l,"数据报表"),u(n,"pure-admin-table.xlsx"),f("导出成功",{type:"success"})}}}export{w as useColumns};

View File

@@ -1,10 +0,0 @@
import{t as C}from"./data2.js";import{r as a,an as u,b6 as S,a as x,aD as c,D as A}from"./index.js";function z(){const o=a([]),t=a(!0),s=a("no"),n=a("nohide"),f=a("default"),h=a(!1),i=a("right"),d=[{type:"selection",align:"left",reserveSelection:!0,hide:()=>s.value==="no"},{label:"日期",prop:"date",hide:()=>n.value==="hideDate"},{label:"姓名",prop:"name",hide:()=>n.value==="hideName"},{label:"地址",prop:"address",hide:()=>n.value==="hideAddress"}],l=u({pageSize:10,currentPage:1,pageSizes:[10,15,20],total:0,align:"right",background:!0,small:!1}),r=u({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:`
<path class="path" d="
M 30 15
L 28 17
M 25.61 25.61
A 15 15, 0, 0, 1, 15 30
A 15 15, 0, 1, 1, 27.99 7.5
L 15 15
" style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
`});function g(e){l.small=e}function p(e){}function v(e){r.text=`正在加载第${e}页...`,t.value=!0,c(600).then(()=>{t.value=!1})}return S(()=>{l.align=i.value}),x(()=>{c(600).then(()=>{const e=[];Array.from({length:6}).forEach(()=>{e.push(A(C,!0))}),e.flat(1/0).forEach((m,b)=>{o.value.push({id:b,...m})}),l.total=o.value.length,t.value=!1})}),{loading:t,columns:d,dataList:o,select:s,hideVal:n,tableSize:f,pagination:l,loadingConfig:r,paginationAlign:i,paginationSmall:h,onChange:g,onSizeChange:p,onCurrentChange:v}}export{z as useColumns};

View File

@@ -1 +0,0 @@
import{P as d}from"./print2.js";import{b}from"./data2.js";import{r as c,D as i}from"./index.js";function g(a){const e=c(i(b,!0)),t=[{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],o=()=>{d(a.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:e,print:o,rowStyle:u,cellStyle:n,headerCellStyle:l}}export{g as useColumns};

View File

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

View File

@@ -1 +0,0 @@
import{r as u,an as p,q as c}from"./index.js";import{b as r}from"./data2.js";function m(t){const a=u(""),o=[{label:"ID",prop:"id",width:80},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],n=p({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===a.value?"#f5f7fa":""}}function s(e){a.value=e.name,t.value.blur(),c(`当前选中行的数据为:${JSON.stringify(e)}`,{type:"success"})}return{columns:o,pagination:n,selectValue:a,tableDataEdit:r,rowStyle:l,onRowClick:s}}export{m as useColumns};

View File

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

View File

@@ -1 +0,0 @@
import{d as r}from"./arrow-right-s-line.js";import{j as l,c as e,i as o}from"./index.js";const i={width:24,height:24,body:'<path fill="currentColor" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10Zm0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm0-9.414l2.828-2.829l1.415 1.415L13.414 12l2.829 2.828l-1.415 1.415L12 13.414l-2.828 2.829l-1.415-1.415L10.586 12L7.757 9.172l1.415-1.415L12 10.586Z"/>'};function u(){return{columns:[{cellRenderer:()=>l("span",{class:"flex items-center -mt-6"},[l(e("iconify-icon-offline"),{icon:i,color:"#F56C6C",width:"18px",height:"18px"},null),l("span",{class:"ml-1 mr-4"},[o("您的账户已被冻结")]),l("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[o("立即解冻"),l(e("iconify-icon-offline"),{icon:r,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])},{cellRenderer:()=>l("span",{class:"flex items-center -mt-8"},[l(e("iconify-icon-offline"),{icon:i,color:"#F56C6C",width:"18px",height:"18px"},null),l("span",{class:"ml-1 mr-4"},[o("您的账户还不具备申请资格")]),l("a",{href:"javascript:void(0);",class:"flex items-center",style:"color: var(--el-color-primary)"},[o("立即升级"),l(e("iconify-icon-offline"),{icon:r,color:"var(--el-color-primary)",width:"18px",height:"18px"},null)])])}]}}export{u as useColumns};

View File

@@ -1 +0,0 @@
import{T as o}from"./index65.js";import{d as i}from"./office-building.js";import{d as c}from"./iphone.js";import{d as u}from"./user-3-fill.js";import{j as e,c as l,i as n}from"./index.js";const r={width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h192v64H320v-64zm0 384h384v64H320v-64z"/>'},s={width:1024,height:1024,body:'<path fill="currentColor" d="M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"/><path fill="currentColor" d="M512 512a96 96 0 1 0 0-192a96 96 0 0 0 0 192zm0 64a160 160 0 1 1 0-320a160 160 0 0 1 0 320z"/>'},d={width:1024,height:1024,body:'<path fill="currentColor" d="M192 128v768h640V128H192zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32z"/><path fill="currentColor" d="M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32zm0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32z"/>'};function C(){const a=[{type:"",label:"善良"},{type:"success",label:"好学"},{type:"info",label:"幽默"},{type:"danger",label:"旅游"},{type:"warning",label:"追剧"}];return{columnsA:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:u},null)]}),n("用户名")]),value:"乐于分享的程序员小铭"},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:c},null)]}),n("手机号")]),value:"123456789"},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:s},null)]}),n("居住地")]),value:"中国"}],columnsB:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:r},null)]}),n("标签")]),cellRenderer:()=>a.map(t=>e(l("el-tag"),{class:"mr-[10px]",type:t.type,size:"small",effect:"dark"},{default:()=>[t.label]}))},{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:i},null)]}),n("联系地址")]),value:"中华人民共和国"}],columnsC:[{labelRenderer:()=>e("div",{class:"flex items-center"},[e(l("el-icon"),null,{default:()=>[e(l("iconify-icon-offline"),{icon:d},null)]}),n("个性签名")]),cellRenderer:()=>e(o,{className:"github",values:["办法总比困难多"],cursor:!1,speed:100},null)}]}}export{C as useColumns};

View File

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

View File

@@ -1 +0,0 @@
import{r as d,G as i,j as t,c as s,i as o,F as m,q as r}from"./index.js";import{t as p}from"./data.js";function h(){const a=d(""),n=i(()=>p.filter(e=>!a.value||e.name.toLowerCase().includes(a.value.toLowerCase()))),u=(e,l)=>{r(`您编辑了第 ${e} 行,数据为:${JSON.stringify(l)}`,{type:"success"})},c=(e,l)=>{r(`您删除了第 ${e} 行,数据为:${JSON.stringify(l)}`)};return{columns:[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"},{align:"right",headerRenderer:()=>t(s("el-input"),{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,size:"small",clearable:!0,placeholder:"Type to search"},null),cellRenderer:({index:e,row:l})=>t(m,null,[t(s("el-button"),{size:"small",onClick:()=>u(e+1,l)},{default:()=>[o("Edit")]}),t(s("el-button"),{size:"small",type:"danger",onClick:()=>c(e+1,l)},{default:()=>[o("Delete")]})])}],filterTableData:n}}export{h as useColumns};

View File

@@ -1,10 +0,0 @@
import{t as h}from"./data2.js";import{r as s,an as l,a as d,aD as r,D as m}from"./index.js";function C(){const e=s([]),t=s(!0),i=[{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}],n=l({pageSize:20,currentPage:1,pageSizes:[20,40,60],total:0,align:"right",background:!0,small:!1}),o=l({text:"正在加载第一页...",viewBox:"-10, -10, 50, 50",spinner:`
<path class="path" d="
M 30 15
L 28 17
M 25.61 25.61
A 15 15, 0, 0, 1, 15 30
A 15 15, 0, 1, 1, 27.99 7.5
L 15 15
" style="stroke-width: 4px; fill: rgba(0, 0, 0, 0)"/>
`}),u={offsetBottom:110};function f(a){}function p(a){o.text=`正在加载第${a}页...`,t.value=!0,r(600).then(()=>{t.value=!1})}return d(()=>{r(600).then(()=>{const a=[];Array.from({length:6}).forEach(()=>{a.push(m(h,!0))}),a.flat(1/0).forEach((c,g)=>{e.value.push({id:g,...c})}),n.total=e.value.length,t.value=!1})}),{loading:t,columns:i,dataList:e,pagination:n,loadingConfig:o,adaptiveConfig:u,onSizeChange:f,onCurrentChange:p}}export{C as useColumns};

View File

@@ -1 +0,0 @@
import{S as m}from"./sortable.esm.js";import{r as o,D as i,a as b,x as l}from"./index.js";import{a as v}from"./data2.js";function S(){const t=o(i(v,!0)),e=o([{label:"ID",prop:"id"},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}]),p=o([{label:"ID",prop:a=>e.value[a].prop},{label:"日期",prop:a=>e.value[a].prop},{label:"姓名",prop:a=>e.value[a].prop}]),n=a=>{a.preventDefault(),l(()=>{const s=document.querySelector(".el-table__header-wrapper tr");m.create(s,{animation:300,delay:0,onEnd:({newIndex:u,oldIndex:r})=>{const c=e.value[r];e.value.splice(r,1),e.value.splice(u,0,c)}})})};return b(()=>{l(()=>{n(event)})}),{columns:p,dataList:t,columnsDrag:e}}export{S as useColumns};

View File

@@ -1 +0,0 @@
import{S as c}from"./sortable.esm.js";import{r as p,D as i,j as a,c as u,x as d}from"./index.js";import{a as m}from"./data2.js";function v(){const e=p(i(m,!0)),n=o=>{o.preventDefault(),d(()=>{const r=document.querySelector(".el-table__body-wrapper tbody");c.create(r,{animation:300,handle:".drag-btn",onEnd:({newIndex:t,oldIndex:l})=>{const s=e.value.splice(l,1)[0];e.value.splice(t,0,s)}})})};return{columns:[{label:"ID",prop:"id",cellRenderer:({row:o})=>a("div",{class:"flex items-center"},[a(u("iconify-icon-online"),{icon:"icon-park-outline:drag",class:"drag-btn cursor-grab",onMouseenter:r=>n(r)},null),a("p",{class:"ml-[16px]"},[o.id])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"}],dataList:e}}export{v as useColumns};

View File

@@ -1 +0,0 @@
import{r as c,D as i,ab as m,G as p,aB as u,b0 as h,q as f}from"./index.js";import{a as b}from"./data2.js";function v(){const a=c(i(b,!0).splice(0,4)),t=[{label:"ID",prop:"id"},{label:"姓名",prop:"name"},{label:"日期",prop:"date"},{label:"echarts图表",slot:"echart"}],{isDark:s}=m(),r=p(()=>s.value?"dark":"light");return a.value.forEach((d,e)=>{const{setOptions:o}=u(h(`PieChartRef${e}`),{theme:r});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:n}})=>{f(`您点击了第 ${e+1} 行,图表标题为${l},图表数据为:${n}`,{type:"success"})}})}),{columns:t,dataList:a}}export{v as useColumns};

View File

@@ -1 +0,0 @@
import{r as n,D as y,G as i,j as t,l as r,v as c,df as D,c as f,q as j,aD as I}from"./index.js";import{b as M}from"./data2.js";import{d as O}from"./edit-pen.js";import{d as S}from"./check.js";function E(){const l=n({}),u=n({}),o=n(-1),v=n(y(M,!0)),m=i(()=>e=>{var a;return(a=l.value[e])==null?void 0:a.value}),s=i(()=>e=>{var a;return(a=u.value[e])==null?void 0:a.editing}),p=i(()=>(e,a=!1)=>["cursor-pointer","ml-2","transition","delay-100",a?["hover:scale-110","hover:text-red-500"]:s.value(e)&&["scale-150","text-red-500"]]),b=[{label:"ID可编辑",prop:"id",cellRenderer:({row:e,index:a})=>t("div",{class:"flex-bc w-full h-[32px]",onMouseenter:()=>o.value=a,onMouseleave:()=>d(a)},[r(t("p",null,[e.id]),[[c,!s.value(a)]]),t(D,{"enter-active-class":"animate__animated animate__fadeInUp animate__faster"},{default:()=>[r(t(f("el-input"),{modelValue:m.value(a),onInput:_=>h(_,a)},null),[[c,s.value(a)]])]}),r(t(f("iconify-icon-offline"),{icon:S,class:p.value(a),onClick:()=>C(a)},null),[[c,s.value(a)]]),r(t(f("iconify-icon-offline"),{icon:O,class:p.value(a,!0),onClick:()=>g(e,a)},null),[[c,o.value===a&&!s.value(a)]])])},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];function g({id:e},a){l.value[a]=Object.assign({},l.value[a],{value:e}),u.value[a]=Object.assign({},u.value[a],{editing:!0})}function d(e){var a;(a=l.value[e])!=null&&a.value?o.value=e:o.value=-1}function h(e,a){l.value[a].value=e}function C(e){v.value[e].id=l.value[e].value,j(`您编辑了第 ${e+1} 行,编辑后数据为:${JSON.stringify(v.value[e])}`,{type:"success"}),u.value[e]=Object.assign({},u.value[e],{editing:!1}),I().then(()=>l.value[e].value=null)}return{columns:b,dataList:v}}export{E as useColumns};

View File

@@ -0,0 +1 @@
import{_ as o}from"./customIndex.vue_vue_type_script_setup_true_lang-yGsLn0g-.js";import"./data-sfII4Kni.js";import"./index-3m0KmRGm.js";export{o as default};

View File

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

View File

@@ -0,0 +1 @@
import{t as a}from"./data-sfII4Kni.js";import{d as n,b as r,f as p,c as s,u as c}from"./index-3m0KmRGm.js";const i=n({__name:"customIndex",setup(l){const t=[{type:"index",index:e=>e*2},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(e,m)=>{const o=r("pure-table");return p(),s(o,{data:c(a),columns:t},null,8,["data"])}}});export{i as _};

View File

@@ -1 +0,0 @@
import{t as a}from"./data.js";import{d as n,c as r,g as p,f as s,u as c}from"./index.js";const i=n({__name:"customIndex",setup(l){const t=[{type:"index",index:e=>e*2},{label:"日期",prop:"date"},{label:"姓名",prop:"name"},{label:"地址",prop:"address"}];return(e,m)=>{const o=r("pure-table");return p(),s(o,{data:c(a),columns:t},null,8,["data"])}}});export{i as _};

81
dist/static/js/dark-rF11Onnn.js vendored Normal file

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/data-Oq3SvOU0.js vendored Normal file
View File

@@ -0,0 +1 @@
import{dw as r,C as t}from"./index-3m0KmRGm.js";const s=r(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:`${r(new Date).format("YYYY-MM")}-${a+1}`})});const n=t(o,!0).map((e,a)=>(delete e.address,delete e.date,Object.assign({id:a+1,date:`${r(new Date).format("YYYY-MM")}-${a+1}`},e))),m=t(o,!0).map((e,a)=>(delete e.date,Object.assign({id:a+1,date:`${r(new Date).format("YYYY-MM")}-${a+1}`},e)));export{n as a,m as b,o as t};

1
dist/static/js/data-sfII4Kni.js vendored Normal file
View File

@@ -0,0 +1 @@
import{dw as t,C as e}from"./index-3m0KmRGm.js";const a=t(new Date).format("YYYY-MM-DD"),c=[{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=e(c,!0),o=i.map(s=>Object.assign(s,{state:"California",city:"Los Angeles","post-code":"CA 90036"})),S=i.map((s,n)=>Object.assign(s,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${n+1}.jpg`})),d=i.map((s,n)=>Object.assign(s,{date:`${t(new Date).format("YYYY-MM")}-${n+1}`})),m=[{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{o as a,d as b,m as c,S as d,c as t};

View File

@@ -1 +0,0 @@
import{dv as t,D as e}from"./index.js";const a=t(new Date).format("YYYY-MM-DD"),c=[{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=e(c,!0),o=i.map(s=>Object.assign(s,{state:"California",city:"Los Angeles","post-code":"CA 90036"})),S=i.map((s,n)=>Object.assign(s,{image:`https://pure-admin.github.io/pure-admin-table/imgs/${n+1}.jpg`})),d=i.map((s,n)=>Object.assign(s,{date:`${t(new Date).format("YYYY-MM")}-${n+1}`})),m=[{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{o as a,d as b,m as c,S as d,c as t};

View File

@@ -1 +0,0 @@
import{dv as r,D as t}from"./index.js";const s=r(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:`${r(new Date).format("YYYY-MM")}-${a+1}`})});const n=t(o,!0).map((e,a)=>(delete e.address,delete e.date,Object.assign({id:a+1,date:`${r(new Date).format("YYYY-MM")}-${a+1}`},e))),m=t(o,!0).map((e,a)=>(delete e.date,Object.assign({id:a+1,date:`${r(new Date).format("YYYY-MM")}-${a+1}`},e)));export{n as a,m as b,o as t};

1
dist/static/js/debounce-PT0oKU7J.js vendored Normal file
View File

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

View File

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

1
dist/static/js/directives-IaykGdnV.js vendored Normal file
View File

@@ -0,0 +1 @@
import{d as H,r as n,c as v,w as s,b as d,e as T,f as r,g as u,h as l,k as o,i as t,m as J,t as U,j as K,q as p}from"./index-3m0KmRGm.js";const M=u("div",{class:"card-header"},[u("span",{class:"font-medium"},"自定义防抖、截流、文本复制、长按指令")],-1),O={class:"mb-2"},P={class:"mb-2"},Q={class:"mb-2"},W={class:"mb-2"},X={class:"text-sky-500"},ee=H({name:"Directives",__name:"directives",setup(Y){const x=n(""),b=n(""),g=n(""),w=n(""),h=n(""),y=n("copy"),I=n("可复制的文本"),c=n(!1),_=n(""),k=n(0);function z(){p(x.value)}function F(){p(b.value)}function N({name:f,sex:e}){p(`${f}${e}${g.value}`)}function L(){p(w.value)}function S({name:f,sex:e}){p(`${f}${e}${h.value}`)}function j(){c.value=!0}function q(){c.value=!0}function E(){k.value+=1,c.value=!0,_.value=`持续回调${k.value}`}function R(){c.value=!1,_.value="",k.value=0}return(f,e)=>{const i=d("el-input"),C=d("el-divider"),V=d("el-button"),B=d("el-tag"),A=d("el-space"),G=d("el-card"),m=T("optimize"),D=T("copy"),$=T("longpress");return r(),v(G,{shadow:"never"},{header:s(()=>[M]),default:s(()=>[u("div",O,[l(" 防抖指令(连续输入,只会执行第一次点击事件,立即执行) "),o(t(i,{modelValue:x.value,"onUpdate:modelValue":e[0]||(e[0]=a=>x.value=a),class:"!w-[200px]",clearable:"",onClear:z},null,8,["modelValue"]),[[m,{event:"input",fn:z,immediate:!0,timeout:1e3}]])]),u("div",P,[l(" 防抖指令(连续输入,只会执行最后一次事件,延后执行) "),o(t(i,{modelValue:b.value,"onUpdate:modelValue":e[1]||(e[1]=a=>b.value=a),class:"!w-[200px]",clearable:""},null,8,["modelValue"]),[[m,{event:"input",fn:F,timeout:400}]])]),u("div",null,[l(" 防抖指令(连续输入,只会执行最后一次事件,延后执行,传参用法) "),o(t(i,{modelValue:g.value,"onUpdate:modelValue":e[2]||(e[2]=a=>g.value=a),class:"!w-[200px]",clearable:""},null,8,["modelValue"]),[[m,{event:"input",fn:N,timeout:400,params:{name:"小明",sex:"男"}}]])]),t(C),u("div",Q,[l(" 节流指令(连续输入,每一秒只会执行一次事件) "),o(t(i,{modelValue:w.value,"onUpdate:modelValue":e[3]||(e[3]=a=>w.value=a),class:"!w-[200px]",clearable:""},null,8,["modelValue"]),[[m,{event:"input",fn:L,timeout:1e3},"throttle"]])]),u("div",null,[l(" 节流指令(连续输入,每一秒只会执行一次事件,传参用法) "),o(t(i,{modelValue:h.value,"onUpdate:modelValue":e[4]||(e[4]=a=>h.value=a),class:"!w-[200px]",clearable:""},null,8,["modelValue"]),[[m,{event:"input",fn:S,params:{name:"小明",sex:"男"}},"throttle"]])]),t(C),u("div",W,[l(" 文本复制指令(双击输入框内容即可复制) "),o(t(i,{modelValue:y.value,"onUpdate:modelValue":e[5]||(e[5]=a=>y.value=a),class:"!w-[200px]"},null,8,["modelValue"]),[[D,y.value]])]),u("div",null,[l(" 文本复制指令(自定义触发事件,单击复制) "),o((r(),J("span",X,[l(U(I.value),1)])),[[D,I.value,"click"]])]),t(C),t(A,{wrap:""},{default:s(()=>[l(" 长按指令 "),o((r(),v(V,null,{default:s(()=>[l("长按默认500ms")]),_:1})),[[$,j]]),o((r(),v(V,null,{default:s(()=>[l(" 自定义长按时长1000ms ")]),_:1})),[[$,q,"1000"]]),o((r(),v(V,null,{default:s(()=>[l(" 2秒后每200ms持续回调 ")]),_:1})),[[$,E,"2000:200"]]),t(V,{onClick:R},{default:s(()=>[l(" 重置状态 ")]),_:1}),t(B,{type:c.value?"success":"info",class:"ml-2",size:"large"},{default:s(()=>[l(U(c.value?"当前为长按状态":"当前非长按状态"),1)]),_:1},8,["type"]),_.value?(r(),v(B,{key:0,type:"danger",class:"ml-2",size:"large"},{default:s(()=>[l(U(_.value),1)]),_:1})):K("",!0)]),_:1})]),_:1})}}});export{ee as default};

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