import{d as P,U as p,a2 as v,a3 as A,a4 as c,k as i,af as n,G as s}from"./vue-vendor-CxLCUzY4.js";import{u as $}from"./index-KOQNKxnC.js";import{getBasicColumns as f,getBasicShortColumns as M}from"./tableData-B4J3mkj4.js";import{u as N,_ as V}from"./index-CLZzJyTP.js";import{d as I}from"./table-CVQJbEH2.js";import U 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 z=P({components:{BasicTable:U},setup(){const{createMessage:t}=N();function o(){}const[l,{setLoading:r,setColumns:u,getColumns:C,getDataSource:e,getRawDataSource:a,reload:m,getPaginationRef:J,setPagination:d,getSelectRows:O,getSelectRowKeys:Q,setSelectedRowKeys:g,clearSelectedRowKeys:k}]=$({canResize:!0,title:"useTable示例",titleHelpMessage:"使用useTable调用表格内方法",api:I,columns:f(),defSort:{field:"name",order:"ascend"},rowKey:"id",showTableSetting:!0,onChange:o,rowSelection:{type:"checkbox"},onColumnsChange:W=>{}});function b(){r(!0),setTimeout(()=>{r(!1)},1e3)}function B(){u(M())}function D(){u(f()),m({page:1})}function S(){t.info("请在控制台查看！")}function T(){t.info("请在控制台查看！")}function w(){t.info("请在控制台查看！")}function R(){t.info("请在控制台查看！")}function E(){d({current:2}),m()}function F(){t.info("请在控制台查看！")}function y(){t.info("请在控制台查看！")}function K(){g(["0","1","2"])}function L(){k()}return{registerTable:l,changeLoading:b,changeColumns:B,reloadTable:D,getColumn:S,getTableData:T,getTableRawData:w,getPagination:R,setPaginationInfo:E,getSelectRowList:F,getSelectRowKeyList:y,setSelectedRowKeyList:K,clearSelect:L,onChange:o}}}),G={class:"p-4"},H={class:"mb-4"},j={class:"mb-4"};function q(t,o,l,r,u,C){const e=p("a-button"),a=p("BasicTable");return v(),A("div",G,[c("div",H,[i(e,{class:"mr-2",onClick:t.reloadTable},{default:n(()=>o[0]||(o[0]=[s(" 还原 ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.changeLoading},{default:n(()=>o[1]||(o[1]=[s(" 开启loading ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.changeColumns},{default:n(()=>o[2]||(o[2]=[s(" 更改Columns ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.getColumn},{default:n(()=>o[3]||(o[3]=[s(" 获取Columns ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.getTableData},{default:n(()=>o[4]||(o[4]=[s(" 获取表格数据 ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.getTableRawData},{default:n(()=>o[5]||(o[5]=[s(" 获取接口原始数据 ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.setPaginationInfo},{default:n(()=>o[6]||(o[6]=[s(" 跳转到第2页 ")])),_:1},8,["onClick"])]),c("div",j,[i(e,{class:"mr-2",onClick:t.getSelectRowList},{default:n(()=>o[7]||(o[7]=[s(" 获取选中行 ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.getSelectRowKeyList},{default:n(()=>o[8]||(o[8]=[s(" 获取选中行Key ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.setSelectedRowKeyList},{default:n(()=>o[9]||(o[9]=[s(" 设置选中行 ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.clearSelect},{default:n(()=>o[10]||(o[10]=[s(" 清空选中行 ")])),_:1},8,["onClick"]),i(e,{class:"mr-2",onClick:t.getPagination},{default:n(()=>o[11]||(o[11]=[s(" 获取分页信息 ")])),_:1},8,["onClick"])]),i(a,{onRegister:t.registerTable},null,8,["onRegister"])])}const _o=V(z,[["render",q]]);export{_o as default};
