1 |
- import{B as d}from"./TableImg.8fe3d61a.js";import"./index.a7ed205f.js";import{u as h}from"./useTable.37d2a279.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.723c022d.js";import{A}from"./index.94ab951f.js";import{d as S}from"./table.2699e423.js";import"./index.672cb799.js";import"./Checkbox.c04f7b55.js";import"./index.fbbd1f1f.js";import"./index.11082491.js";import"./eagerComputed.c778769d.js";import"./FileOutlined.de22406c.js";import"./BasicForm.e6661e7b.js";/* empty css *//* empty css */import"./index.9a19a3f7.js";import"./index.8f225c1e.js";import"./index.8663089e.js";import"./index.3fb6ac38.js";import"./get.86e6b49d.js";import"./DeleteOutlined.6291cf54.js";import"./transButton.10f02921.js";import"./index.ed278b64.js";import"./index.c12b00dd.js";import"./Col.58b8a958.js";import"./useFlexGapSupport.4d92c09c.js";import"./index.e3c0dcb4.js";import"./Form.9dcaf6f8.js";import"./_baseIteratee.826d6655.js";import"./useSize.a1b385c4.js";import"./uniqBy.4b69f709.js";import"./index.1ca4cef4.js";import"./useWindowSizeFn.79f59aef.js";import"./FullscreenOutlined.3316925c.js";import"./useForm.07244cd7.js";import"./index.6bc64354.js";import"./index.d5e83f0f.js";import"./index.55dec4bb.js";import"./useContentViewHeight.eea93209.js";import"./ArrowLeftOutlined.09823751.js";import"./index.bab0934d.js";import"./FormOutlined.3bac65b1.js";import"./index.9141ffb0.js";import"./index.09b55302.js";import"./useRefs.c430f5ca.js";import"./sortable.esm.a0907b1f.js";import"./RedoOutlined.2d33fcab.js";import"./index.f60fc8fa.js";import"./fromPairs.84aabb58.js";import"./scrollTo.6ea53bed.js";import"./index.9e723d47.js";import"./Group.436b142a.js";import"./index.274a2934.js";import"./download.6473a23c.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};
|