import{d as i,h as e,o as t,i as s,F as l,a9 as u,aG as y,A as p,p as f,Z as c,v as m}from"./index-9PRMimni.js";const _={title:{type:String,default:""},data:{type:null,default:()=>[]},columns:{type:null,default:()=>[]},idea:{type:String,default:""}},k={key:1},h=i({__name:"ExportTable",props:{..._},setup(x){function d(n){return typeof n=="function"?c(n):n}return(n,b)=>(t(),e("div",null,[s("table",null,[s("thead",null,[s("tr",null,[(t(!0),e(l,null,u(n.columns,a=>(t(),e("th",{key:a.key,style:y({width:a.width?a.width+"px":"auto",padding:"8px 10px 2px 10px"}),class:"text-start"},p(a.title),5))),128))])]),s("tbody",null,[(t(!0),e(l,null,u(n.data,(a,o)=>(t(),e("tr",{key:o},[(t(!0),e(l,null,u(n.columns,r=>(t(),e("td",{key:r.key},[r.render&&typeof r.render=="function"?(t(),e(l,{key:0},[f(p(d(r.render(a))),1)],64)):(t(),e("span",k,p(a[r.key]),1))]))),128))]))),128))])])]))}}),S=m(h,[["__scopeId","data-v-555a4b0f"]]);export{S as default};
