import{d as m,V as _,h as t,o as n,j as f,i as a,S as h,w as x,p as i,A as r,F as o,a9 as u,aG as k,l as b,Z as g}from"./index-9PRMimni.js";const S={title:{type:String,default:""},data:{type:null,default:()=>[]},columns:{type:Array,default:()=>[]},idea:{type:String,default:""}},V={style:{"margin-bottom":"-16px"}},w={key:1},B={class:"w-[120px]"},F=m({__name:"ExportTable",props:{...S},setup(C){const{t:p}=_();function y(e){return typeof e=="function"?g(e):e}return(e,A)=>{const c=h;return n(),t("div",null,[f(c,{class:"text-[16px] font-bold mb-[-25px]"},{default:x(()=>[i(r(e.title),1)]),_:1}),a("table",V,[a("thead",null,[a("tr",null,[(n(!0),t(o,null,u(e.columns,s=>(n(),t("th",{key:s.key,style:k({width:s.width?s.width+"px":"auto",padding:"8px 10px 2px 10px"})},r(s.title),5))),128))])]),a("tbody",null,[(n(!0),t(o,null,u(e.data,(s,d)=>(n(),t("tr",{key:d},[(n(!0),t(o,null,u(e.columns,l=>(n(),t("td",{key:l.key},[l.render&&typeof l.render=="function"?(n(),t(o,{key:0},[i(r(y(l.render({record:s,index:d}))),1)],64)):(n(),t("span",w,r(s[l.key]),1))]))),128))]))),128))])]),a("table",null,[a("tbody",null,[a("tr",null,[a("td",B,r(b(p)("hsqe.auditInspection.vesselInspection.generalComment")),1),a("td",null,r(e.idea),1)])])])])}}});export{F as _};
