import{d as s,U as p,a2 as d,a3 as c,k as a,af as f}from"./vue-vendor-CxLCUzY4.js";import"./index-gyz1IdHU.js";import{d as h}from"./table-BDpZPeJG.js";import{useListPage as b}from"./useListPage-TMORxSEa.js";import{Q as F}from"./componentMap-0iK4HQBq.js";import w from"./BasicTable-CgafrQwz.js";import{_ as C}from"./index-Cy4uayzW.js";import"./antd-vue-vendor-CahNzUUa.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./index-Bdn0r8CG.js";import"./index-zKZnG1QC.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./injectionKey-DPVn4AgL.js";const _=[{title:"编号",dataIndex:"no",width:100},{title:"姓名",dataIndex:"name",auth:"demo:field:show"},{title:"状态",dataIndex:"status"},{title:"地址",dataIndex:"address",auth:"super",ifShow:t=>!0},{title:"开始时间",dataIndex:"beginTime"},{title:"结束时间",dataIndex:"endTime",width:200}],A=s({components:{BasicTable:w,TableAction:F},setup(){const{tableContext:t}=b({tableProps:{title:"权限列",api:h,columns:_,bordered:!0,useSearchForm:!1,actionColumn:{width:250,title:"Action",dataIndex:"action",slots:{customRender:"action"}}}}),[e]=t;function n(i){}function r(i){}function m(i){}return{registerTable:e,handleEdit:n,handleDelete:r,handleOpen:m}}}),T={class:"p-4"};function I(t,e,n,r,m,i){const l=p("TableAction"),u=p("BasicTable");return d(),c("div",T,[a(u,{onRegister:t.registerTable},{action:f(({record:o})=>[a(l,{actions:[{label:"编辑",onClick:t.handleEdit.bind(null,o),auth:"demo:btn:show"},{label:"删除",icon:"ic:outline-delete-outline",onClick:t.handleDelete.bind(null,o),auth:"super"}],dropDownActions:[{label:"启用",popConfirm:{title:"是否启用？",confirm:t.handleOpen.bind(null,o)},ifShow:g=>o.status!=="enable"},{label:"禁用",popConfirm:{title:"是否禁用？",confirm:t.handleOpen.bind(null,o)},ifShow:()=>o.status==="enable"},{label:"同时控制",popConfirm:{title:"是否动态显示？",confirm:t.handleOpen.bind(null,o)},auth:"super",ifShow:()=>!0}]},null,8,["actions","dropDownActions"])]),_:1},8,["onRegister"])])}const Bt=C(A,[["render",I]]);export{Bt as default};
