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

This commit is contained in:
xiaoxian521
2026-01-30 02:42:29 +00:00
parent f1ee1f4e8a
commit d40a6d7adc
453 changed files with 416 additions and 416 deletions

View File

@@ -0,0 +1 @@
import{u as t,w as u}from"./xlsx-CX_Vxrsw.js";import{a as i}from"./data-B7TqVcoE.js";import{l as m,a8 as b,H as f}from"./index-ChQ6eMdI.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};