text: var g=(n,s,r)=>new Promise((u,o)=>{var c=e=>{try{i(r.next(e))}catch(a){o(a)}},t=e=>{try{i(r.throw(e))}catch(a){o(a)}},i=e=>e.done?u(e.value):Promise.resolve(e.value).then(c,t);i((r=r.apply(n,s)).next())});import{ai as w,aH as f,aF as m}from"./index.960d5979.js";import{r as R,ai as b,u as d,S as D,t as l}from"./vendor.ff87b2f6.js";function y(n){const s=R(null),r=R(!1),u=R(null);let o;function c(e,a){b(()=>{s.value=null,r.value=null}),!(d(r)&&w()&&e===d(s))&&(s.value=e,u.value=a,n&&e.setProps(f(n)),r.value=!0,o==null||o(),o=D(()=>n,()=>{n&&e.setProps(f(n))},{immediate:!0,deep:!0}))}function t(){const e=d(s);return e||m("The table instance has not been obtained yet, please make sure the table is presented when performing the table operation!"),e}return[c,{reload:e=>g(this,null,function*(){return yield t().reload(e)}),setProps:e=>{t().setProps(e)},redoHeight:()=>{t().redoHeight()},setLoading:e=>{t().setLoading(e)},getDataSource:()=>t().getDataSource(),getRawDataSource:()=>t().getRawDataSource(),getColumns:({ignoreIndex:e=!1}={})=>{const a=t().getColumns({ignoreIndex:e})||[];return l(a)},setColumns:e=>{t().setColumns(e)},setTableData:e=>t().setTableData(e),setPagination:e=>t().setPagination(e),deleteSelectRowByKey:e=>{t().deleteSelectRowByKey(e)},getSelectRowKeys:()=>l(t().getSelectRowKeys()),getSelectRows:()=>l(t().getSelectRows()),clearSelectedRowKeys:()=>{t().clearSelectedRowKeys()},setSelectedRowKeys:e=>{t().setSelectedRowKeys(e)},getPaginationRef:()=>t().getPaginationRef(),getSize:()=>l(t().getSize()),updateTableData:(e,a,S)=>t().updateTableData(e,a,S),deleteTableDataRecord:e=>t().deleteTableDataRecord(e),insertTableDataRecord:(e,a)=>t().insertTableDataRecord(e,a),updateTableDataRecord:(e,a)=>t().updateTableDataRecord(e,a),findTableDataRecord:e=>t().findTableDataRecord(e),getRowSelection:()=>l(t().getRowSelection()),getCacheColumns:()=>l(t().getCacheColumns()),getForm:()=>d(u),setShowPagination:e=>g(this,null,function*(){t().setShowPagination(e)}),getShowPagination:()=>l(t().getShowPagination()),expandAll:()=>{t().expandAll()},collapseAll:()=>{t().collapseAll()}}]}export{y as u};
  