text: import{_ as e}from"./TableImg.96b6e2f6.js";import"./BasicForm.99631a91.js";import{getBasicColumns as o,getBasicShortColumns as t}from"./tableData.83d6955e.js";import{h as i}from"./index.ffeb6485.js";import{d as n}from"./table.8c22cc61.js";import{j as s,r as a,u as c,K as l,o as r,m as d,n as f,Q as m,Y as u}from"./vendor.686fd1d4.js";/* empty css              *//* empty css              */import"./useForm.29bf2c0c.js";/* empty css              *//* empty css              *//* empty css              */import"./uuid.2b29000c.js";import"./useWindowSizeFn.d82e06bf.js";import"./index.08cdb95c.js";import"./onMountedOrActivated.172ad1ec.js";/* empty css              */import"./useSortable.e687761f.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              */import"./index.f6d89420.js";/* empty css              *//* empty css              *//* empty css              */import"./download.a58b74c3.js";import"./base64Conver.bb012c73.js";import"./index.dc4f899a.js";var p=s({components:{BasicTable:e},setup(){const e=a(null),{createMessage:s}=i();function l(){const o=c(e);if(!o)throw new Error("tableAction is null");return o}return{tableRef:e,api:n,columns:o(),changeLoading:function(){l().setLoading(!0),setTimeout((()=>{l().setLoading(!1)}),1e3)},changeColumns:function(){l().setColumns(t())},reloadTable:function(){l().setColumns(o()),l().reload({page:1})},getColumn:function(){s.info("请在控制台查看！")},getTableData:function(){s.info("请在控制台查看！")},getPagination:function(){s.info("请在控制台查看！")},setPaginationInfo:function(){l().setPagination({current:2}),l().reload()},getSelectRowList:function(){s.info("请在控制台查看！")},getSelectRowKeyList:function(){s.info("请在控制台查看！")},setSelectedRowKeyList:function(){l().setSelectedRowKeys(["0","1","2"])},clearSelect:function(){l().clearSelectedRowKeys()}}}});const b={class:"p-4"},C={class:"mb-4"},j=u(" 还原 "),g=u(" 开启loading "),k=u(" 更改Columns "),x=u(" 获取Columns "),w=u(" 获取表格数据 "),R=u(" 跳转到第2页 "),S={class:"mb-4"},_=u(" 获取选中行 "),L=u(" 获取选中行Key "),y=u(" 设置选中行 "),K=u(" 清空选中行 "),T=u(" 获取分页信息 ");p.render=function(e,o,t,i,n,s){const a=l("a-button"),c=l("BasicTable");return r(),d("div",b,[f("div",C,[f(a,{class:"mr-2",onClick:e.reloadTable},{default:m((()=>[j])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.changeLoading},{default:m((()=>[g])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.changeColumns},{default:m((()=>[k])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.getColumn},{default:m((()=>[x])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.getTableData},{default:m((()=>[w])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.setPaginationInfo},{default:m((()=>[R])),_:1},8,["onClick"])]),f("div",S,[f(a,{class:"mr-2",onClick:e.getSelectRowList},{default:m((()=>[_])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.getSelectRowKeyList},{default:m((()=>[L])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.setSelectedRowKeyList},{default:m((()=>[y])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.clearSelect},{default:m((()=>[K])),_:1},8,["onClick"]),f(a,{class:"mr-2",onClick:e.getPagination},{default:m((()=>[T])),_:1},8,["onClick"])]),f(c,{canResize:!1,title:"RefTable示例",titleHelpMessage:"使用Ref调用表格内方法",ref:"tableRef",api:e.api,columns:e.columns,rowKey:"id",rowSelection:{type:"checkbox"}},null,8,["api","columns"])])};export default p;
  