"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),I=s=>{const u=t.useSlots(),d=t.ref([]),c=t.computed(()=>{if(s.columns){const r=s.columns.filter(e=>!e.hideInTable),n=[];return r.forEach(e=>{const l=Array.isArray(e.dataIndex)?e.dataIndex.join(""):e.dataIndex;if(d.value.includes(l)){const a={...e};a.isRender&&(a.isRender=!1,a.render=({row:i,$index:f})=>{const o=Array.isArray(e.dataIndex)?e.dataIndex.join():e.dataIndex;return u[o]&&u[o]({row:i,$index:f})}),n.push(a)}}),n}else return[]});return t.watch(()=>s.columns,r=>{r&&(d.value=r.map(n=>Array.isArray(n.dataIndex)?n.dataIndex.join(""):n.dataIndex))},{immediate:!0,deep:!0}),{columnsControl:d,columns:c}};exports.default=I;
