Deploying to gh-pages from @ pure-admin/vue-pure-admin@8167597475 🚀

This commit is contained in:
xiaoxian521
2026-01-22 05:03:22 +00:00
parent a48cfd3e94
commit 4b2e1adfc4
500 changed files with 428 additions and 432 deletions

View File

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