RefTable-15a74b8a.js 7.3 KB

1
  1. var C=(t,u,s)=>new Promise((f,m)=>{var a=e=>{try{r(s.next(e))}catch(i){m(i)}},n=e=>{try{r(s.throw(e))}catch(i){m(i)}},r=e=>e.done?f(e.value):Promise.resolve(e.value).then(a,n);r((s=s.apply(t,u)).next())});import{a as B,__tla as D}from"./index-016fd85f.js";import{getBasicColumns as d,getBasicShortColumns as v}from"./tableData-7e06aa3e.js";import{d as E,r as M,E as x,u as A,_ as I,y as g,o as z,l as F,a as k,e as l,w as o,b as c,__tla as H}from"./index-b5895273.js";import{d as $,__tla as j}from"./table-b0c5430b.js";import{__tla as q}from"./index-2a8c0b19.js";import{__tla as G}from"./index-f35bbafa.js";import{__tla as J}from"./index-7fb58e79.js";import{__tla as N}from"./index-7914b44e.js";import{__tla as O}from"./index-bbe22d68.js";import{__tla as Q}from"./min-03eb9ce8.js";import{__tla as U}from"./sum-f551e4a9.js";import{__tla as V}from"./index-5eb30ce0.js";import{__tla as W}from"./useWindowSizeFn-a59bee15.js";import{__tla as X}from"./FullscreenOutlined-012b5e27.js";import{__tla as Y}from"./useScript-ab5d4580.js";import{__tla as Z}from"./index-83eefeb2.js";import{__tla as tt}from"./download-801edd56.js";import"./base64Conver-39fc0d26.js";import{__tla as at}from"./index-339f95d8.js";import{__tla as rt}from"./useCountdown-fd9786ef.js";import{__tla as _t}from"./index-67f9e311.js";import{__tla as lt}from"./Tree-6c35f2c0.js";import{__tla as ot}from"./useContextMenu-c4ffe073.js";import{__tla as ct}from"./difference-9954c5db.js";import{__tla as et}from"./Index-281ee613.js";import{__tla as nt}from"./UserCard-5a5e66ad.js";import{__tla as st}from"./index-3862eebd.js";import{__tla as it}from"./Upload-bceb0d3c.js";import{__tla as mt}from"./index-c53afdf5.js";import{__tla as ut}from"./upload-887cb82a.js";import"./base64-912b9db4.js";import{__tla as ft}from"./formPermission-5236f629.js";import"./workflowEnum-a2efed5c.js";import{__tla as pt}from"./designHelper-fedad396.js";import{__tla as yt}from"./index-1c9ab88b.js";import{__tla as ht}from"./design-f3e25317.js";import{__tla as Ct}from"./set-b89b8dc5.js";import{__tla as dt}from"./_isIterateeCall-61185d8a.js";import{__tla as gt}from"./uniqBy-b68717e0.js";import{__tla as kt}from"./index-2c5e4dd6.js";import{__tla as bt}from"./index-9f9c48fd.js";import{__tla as wt}from"./index-dc94981a.js";import{__tla as Rt}from"./onMountedOrActivated-6125a24a.js";import{__tla as St}from"./index-3705f1a8.js";import{__tla as Lt}from"./useContentViewHeight-cd147d02.js";import"./sortable.esm-de7debe0.js";import{__tla as Tt}from"./RedoOutlined-105a0bcb.js";import{__tla as Kt}from"./index-9d2b78f3.js";import{__tla as Pt}from"./index-49a1c061.js";import{__tla as Bt}from"./index-76a8e61b.js";import{__tla as Dt}from"./index-8ae648d6.js";import{__tla as vt}from"./index-bd1f1fae.js";let b,Et=Promise.all([(()=>{try{return D}catch(t){}})(),(()=>{try{return H}catch(t){}})(),(()=>{try{return j}catch(t){}})(),(()=>{try{return q}catch(t){}})(),(()=>{try{return G}catch(t){}})(),(()=>{try{return J}catch(t){}})(),(()=>{try{return N}catch(t){}})(),(()=>{try{return O}catch(t){}})(),(()=>{try{return Q}catch(t){}})(),(()=>{try{return U}catch(t){}})(),(()=>{try{return V}catch(t){}})(),(()=>{try{return W}catch(t){}})(),(()=>{try{return X}catch(t){}})(),(()=>{try{return Y}catch(t){}})(),(()=>{try{return Z}catch(t){}})(),(()=>{try{return tt}catch(t){}})(),(()=>{try{return at}catch(t){}})(),(()=>{try{return rt}catch(t){}})(),(()=>{try{return _t}catch(t){}})(),(()=>{try{return lt}catch(t){}})(),(()=>{try{return ot}catch(t){}})(),(()=>{try{return ct}catch(t){}})(),(()=>{try{return et}catch(t){}})(),(()=>{try{return nt}catch(t){}})(),(()=>{try{return st}catch(t){}})(),(()=>{try{return it}catch(t){}})(),(()=>{try{return mt}catch(t){}})(),(()=>{try{return ut}catch(t){}})(),(()=>{try{return ft}catch(t){}})(),(()=>{try{return pt}catch(t){}})(),(()=>{try{return yt}catch(t){}})(),(()=>{try{return ht}catch(t){}})(),(()=>{try{return Ct}catch(t){}})(),(()=>{try{return dt}catch(t){}})(),(()=>{try{return gt}catch(t){}})(),(()=>{try{return kt}catch(t){}})(),(()=>{try{return bt}catch(t){}})(),(()=>{try{return wt}catch(t){}})(),(()=>{try{return Rt}catch(t){}})(),(()=>{try{return St}catch(t){}})(),(()=>{try{return Lt}catch(t){}})(),(()=>{try{return Tt}catch(t){}})(),(()=>{try{return Kt}catch(t){}})(),(()=>{try{return Pt}catch(t){}})(),(()=>{try{return Bt}catch(t){}})(),(()=>{try{return Dt}catch(t){}})(),(()=>{try{return vt}catch(t){}})()]).then(()=>C(void 0,null,function*(){const t=E({components:{BasicTable:B},setup(){const a=M(null),{createMessage:n}=x();function r(){const h=A(a);if(!h)throw new Error("tableAction is null");return h}function e(){r().setLoading(!0),setTimeout(()=>{r().setLoading(!1)},1e3)}function i(){r().setColumns(v())}function y(){r().setColumns(d()),r().reload({page:1})}function _(){n.info("\u8BF7\u5728\u63A7\u5236\u53F0\u67E5\u770B\uFF01")}function p(){n.info("\u8BF7\u5728\u63A7\u5236\u53F0\u67E5\u770B\uFF01")}function w(){n.info("\u8BF7\u5728\u63A7\u5236\u53F0\u67E5\u770B\uFF01")}function R(){n.info("\u8BF7\u5728\u63A7\u5236\u53F0\u67E5\u770B\uFF01")}function S(){r().setPagination({current:2}),r().reload()}function L(){n.info("\u8BF7\u5728\u63A7\u5236\u53F0\u67E5\u770B\uFF01")}function T(){n.info("\u8BF7\u5728\u63A7\u5236\u53F0\u67E5\u770B\uFF01")}function K(){r().setSelectedRowKeys(["0","1","2"])}function P(){r().clearSelectedRowKeys()}return{tableRef:a,api:$,columns:d(),changeLoading:e,changeColumns:i,reloadTable:y,getColumn:_,getTableData:p,getTableRawData:w,getPagination:R,setPaginationInfo:S,getSelectRowList:L,getSelectRowKeyList:T,setSelectedRowKeyList:K,clearSelect:P}}}),u={class:"p-4"},s={class:"mb-4"},f={class:"mb-4"};function m(a,n,r,e,i,y){const _=g("a-button"),p=g("BasicTable");return z(),F("div",u,[k("div",s,[l(_,{class:"mr-2",onClick:a.reloadTable},{default:o(()=>[c(" \u8FD8\u539F ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.changeLoading},{default:o(()=>[c(" \u5F00\u542Floading ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.changeColumns},{default:o(()=>[c(" \u66F4\u6539Columns ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.getColumn},{default:o(()=>[c(" \u83B7\u53D6Columns ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.getTableData},{default:o(()=>[c(" \u83B7\u53D6\u8868\u683C\u6570\u636E ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.getTableRawData},{default:o(()=>[c(" \u83B7\u53D6\u63A5\u53E3\u539F\u59CB\u6570\u636E ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.setPaginationInfo},{default:o(()=>[c(" \u8DF3\u8F6C\u5230\u7B2C2\u9875 ")]),_:1},8,["onClick"])]),k("div",f,[l(_,{class:"mr-2",onClick:a.getSelectRowList},{default:o(()=>[c(" \u83B7\u53D6\u9009\u4E2D\u884C ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.getSelectRowKeyList},{default:o(()=>[c(" \u83B7\u53D6\u9009\u4E2D\u884CKey ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.setSelectedRowKeyList},{default:o(()=>[c(" \u8BBE\u7F6E\u9009\u4E2D\u884C ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.clearSelect},{default:o(()=>[c(" \u6E05\u7A7A\u9009\u4E2D\u884C ")]),_:1},8,["onClick"]),l(_,{class:"mr-2",onClick:a.getPagination},{default:o(()=>[c(" \u83B7\u53D6\u5206\u9875\u4FE1\u606F ")]),_:1},8,["onClick"])]),l(p,{canResize:!1,title:"RefTable\u793A\u4F8B",titleHelpMessage:"\u4F7F\u7528Ref\u8C03\u7528\u8868\u683C\u5185\u65B9\u6CD5",ref:"tableRef",api:a.api,columns:a.columns,rowKey:"id",rowSelection:{type:"checkbox"}},null,8,["api","columns"])])}b=I(t,[["render",m]])}));export{Et as __tla,b as default};