import{d as w,f as F,u as T,U as f,a2 as E,a3 as S,a4 as c,k as e,af as n,G as u}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import{getBasicColumns as C,getBasicShortColumns as L}from"./tableData-B4J3mkj4.js";import{u as y,_ as K}from"./index-CLZzJyTP.js";import{d as A}from"./table-CVQJbEH2.js";import P from"./BasicTable-DUJWN3yz.js";import"./componentMap-DpsJvoqz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./injectionKey-DPVn4AgL.js";const v=w({components:{BasicTable:P},setup(){const t=F(null),{createMessage:o}=y();function l(){const p=T(t);if(!p)throw new Error("tableAction is null");return p}function r(){l().setLoading(!0),setTimeout(()=>{l().setLoading(!1)},1e3)}function a(){l().setColumns(L())}function m(){l().setColumns(C()),l().reload({page:1})}function i(){o.info("请在控制台查看！")}function s(){o.info("请在控制台查看！")}function d(){o.info("请在控制台查看！")}function g(){o.info("请在控制台查看！")}function k(){l().setPagination({current:2}),l().reload()}function b(){o.info("请在控制台查看！")}function B(){o.info("请在控制台查看！")}function D(){l().setSelectedRowKeys(["0","1","2"])}function R(){l().clearSelectedRowKeys()}return{tableRef:t,api:A,columns:C(),changeLoading:r,changeColumns:a,reloadTable:m,getColumn:i,getTableData:s,getTableRawData:d,getPagination:g,setPaginationInfo:k,getSelectRowList:b,getSelectRowKeyList:B,setSelectedRowKeyList:D,clearSelect:R}}}),$={class:"p-4"},M={class:"mb-4"},N={class:"mb-4"};function V(t,o,l,r,a,m){const i=f("a-button"),s=f("BasicTable");return E(),S("div",$,[c("div",M,[e(i,{class:"mr-2",onClick:t.reloadTable},{default:n(()=>o[0]||(o[0]=[u(" 还原 ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.changeLoading},{default:n(()=>o[1]||(o[1]=[u(" 开启loading ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.changeColumns},{default:n(()=>o[2]||(o[2]=[u(" 更改Columns ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.getColumn},{default:n(()=>o[3]||(o[3]=[u(" 获取Columns ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.getTableData},{default:n(()=>o[4]||(o[4]=[u(" 获取表格数据 ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.getTableRawData},{default:n(()=>o[5]||(o[5]=[u(" 获取接口原始数据 ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.setPaginationInfo},{default:n(()=>o[6]||(o[6]=[u(" 跳转到第2页 ")])),_:1},8,["onClick"])]),c("div",N,[e(i,{class:"mr-2",onClick:t.getSelectRowList},{default:n(()=>o[7]||(o[7]=[u(" 获取选中行 ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.getSelectRowKeyList},{default:n(()=>o[8]||(o[8]=[u(" 获取选中行Key ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.setSelectedRowKeyList},{default:n(()=>o[9]||(o[9]=[u(" 设置选中行 ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.clearSelect},{default:n(()=>o[10]||(o[10]=[u(" 清空选中行 ")])),_:1},8,["onClick"]),e(i,{class:"mr-2",onClick:t.getPagination},{default:n(()=>o[11]||(o[11]=[u(" 获取分页信息 ")])),_:1},8,["onClick"])]),e(s,{canResize:!1,title:"RefTable示例",titleHelpMessage:"使用Ref调用表格内方法",ref:"tableRef",api:t.api,columns:t.columns,rowKey:"id",rowSelection:{type:"checkbox"}},null,8,["api","columns"])])}const Ho=K(v,[["render",V]]);export{Ho as default};
