import"./utils/legacyUtil.mjs";import{createVNode as e}from"vue";function t({colWidths:t,columns:n,columCount:r}){let i=[],a=r||n.length,o=!1;for(let r=a-1;r>=0;--r){let a=t[r],s=n&&n[r],c=s&&s.RC_TABLE_INTERNAL_COL_DEFINE;if(a||c||o){let{columnType:t,...n}=c||{};i.unshift(e(`col`,{key:r,style:{width:typeof a==`number`?`${a}px`:a},...n},null)),o=!0}}return e(`colgroup`,null,[i])}export{t as default};