text: import{_ as e}from"./TableImg.c292f6c6.js";import"./BasicForm.8dd34761.js";import"./index.5ab9b854.js";import{c as i,d as a,j as t}from"./data.a3012868.js";import{P as o}from"./index.19a7a7bf.js";import{y as s,Z as d,B as r,F as n,a2 as m,v as c,a9 as p}from"./vendor.880b4c6c.js";/* empty css              *//* empty css              */import"./useForm.ba0f60da.js";import"./index.63ccfb82.js";/* empty css              *//* empty css              *//* empty css              */import"./uuid.2b29000c.js";import"./useWindowSizeFn.564cf32e.js";import"./index.0433a71f.js";import"./onMountedOrActivated.8f899bfb.js";/* empty css              */import"./useSortable.7fdc4a8b.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              */import"./index.b3d678de.js";/* empty css              *//* empty css              *//* empty css              */import"./download.41df5c96.js";import"./base64Conver.bb012c73.js";import"./index.c6f733ce.js";/* empty css              *//* empty css              */import"./useContentViewHeight.0b72030b.js";var f=s({components:{BasicTable:e,PageWrapper:o},setup:()=>({defaultHeader:function(){t({data:a,filename:"使用key作为默认头部.xlsx"})},customHeader:function(){t({data:a,header:{id:"ID",name:"姓名",age:"年龄",no:"编号",address:"地址",beginTime:"开始时间",endTime:"结束时间"},filename:"自定义头部.xlsx",json2sheetOpts:{header:["name","id"]}})},columns:i,data:a})});const j=p(" 导出：默认头部 "),b=p(" 导出：自定义头部 ");f.render=function(e,i,a,t,o,s){const p=d("a-button"),f=d("BasicTable"),u=d("PageWrapper");return r(),n(u,{title:"导出示例",content:"根据JSON格式的数据进行导出"},{default:m((()=>[c(f,{title:"基础表格",columns:e.columns,dataSource:e.data},{toolbar:m((()=>[c(p,{onClick:e.defaultHeader},{default:m((()=>[j])),_:1},8,["onClick"]),c(p,{onClick:e.customHeader},{default:m((()=>[b])),_:1},8,["onClick"])])),_:1},8,["columns","dataSource"])])),_:1})};export default f;
  