import{B as d}from"./TableImg.4c25b2e4.js";import"./index.2ceeb335.js";import{u as h}from"./useTable.6d62fd16.js";import{getBasicColumns as F,getFormConfig as k}from"./tableData.38d0f3c2.js";import{av as y,a as C,s as _,a_ as i,o as m,j as b,y as t,z as p,n as s,h as c,F as B,m as E,t as T}from"./index.97c70775.js";import{A}from"./index.e2c53397.js";import{d as S}from"./table.f4a7cd46.js";import"./index.27bfa3fd.js";import"./Checkbox.7642e90f.js";import"./index.221d6122.js";import"./index.eb99b34d.js";import"./eagerComputed.a9afdf3f.js";import"./FileOutlined.06e352b5.js";import"./BasicForm.98ee0a61.js";/* empty css *//* empty css */import"./index.376f7d77.js";import"./index.74899dcd.js";import"./index.ee15e24a.js";import"./index.cef0d45a.js";import"./get.42ae1097.js";import"./DeleteOutlined.59fb3f3a.js";import"./transButton.231a8ef9.js";import"./index.f22ca87e.js";import"./index.0e29685c.js";import"./Col.2079ddbc.js";import"./useFlexGapSupport.07d6e900.js";import"./index.cae94db2.js";import"./Form.9361f89f.js";import"./_baseIteratee.3a1e7c2b.js";import"./useSize.888c6d90.js";import"./uniqBy.244093b2.js";import"./index.25a01433.js";import"./useWindowSizeFn.bb740ef7.js";import"./FullscreenOutlined.8e7a919a.js";import"./useForm.48550b19.js";import"./index.5d68b2d4.js";import"./index.ec8df927.js";import"./index.e017a62f.js";import"./useContentViewHeight.4e0b2e8d.js";import"./ArrowLeftOutlined.5b8718d6.js";import"./index.1292065e.js";import"./FormOutlined.bae14c68.js";import"./index.a7d63c49.js";import"./index.85f4f083.js";import"./useRefs.dcf26156.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.560bd00b.js";import"./index.16ef16a0.js";import"./fromPairs.84aabb58.js";import"./scrollTo.c927ac62.js";import"./index.cea071a6.js";import"./Group.19df0dc0.js";import"./index.cb32f675.js";import"./download.b0e6596f.js";import"./base64Conver.08b9f4ec.js";const D=C({components:{BasicTable:d,AAlert:A},setup(){const o=_([]),[e,{getForm:n}]=h({title:"\u5F00\u542F\u641C\u7D22\u533A\u57DF",api:S,columns:F(),useSearchForm:!0,formConfig:k(),showTableSetting:!0,tableSetting:{fullScreen:!0},showIndexColumn:!1,rowKey:"id"});function a(){n().getFieldsValue()}function u(r){o.value=r}return{registerTable:e,getFormValues:a,checkedKeys:o,onSelectChange:u}}}),w={key:1};function K(o,e,n,a,u,r){const l=i("a-button"),f=i("a-alert"),g=i("BasicTable");return m(),b(g,{onRegister:o.registerTable,rowSelection:{type:"checkbox",selectedRowKeys:o.checkedKeys,onChange:o.onSelectChange}},{"form-custom":t(()=>[p(" custom-slot ")]),headerTop:t(()=>[s(f,{type:"info","show-icon":""},{message:t(()=>[o.checkedKeys.length>0?(m(),c(B,{key:0},[E("span",null,"\u5DF2\u9009\u4E2D"+T(o.checkedKeys.length)+"\u6761\u8BB0\u5F55(\u53EF\u8DE8\u9875)",1),s(l,{type:"link",onClick:e[0]||(e[0]=V=>o.checkedKeys=[]),size:"small"},{default:t(()=>[p("\u6E05\u7A7A")]),_:1})],64)):(m(),c("span",w,"\u672A\u9009\u4E2D\u4EFB\u4F55\u9879\u76EE"))]),_:1})]),toolbar:t(()=>[s(l,{type:"primary",onClick:o.getFormValues},{default:t(()=>[p("\u83B7\u53D6\u8868\u5355\u6570\u636E")]),_:1},8,["onClick"])]),_:1},8,["onRegister","rowSelection"])}var zo=y(D,[["render",K]]);export{zo as default};