import{u as n,Y as r,A as d,W as o,C as p}from"./index-Cl9RbTBn.js";import{d as A,i as c,w as s,P as I,o as l,h as U,p as i,k as u}from"./index-5k_MqT6o.js";import"./index-BHx7dntQ.js";import"./index-CAzgmO3A.js";const b=A({__name:"index",setup(w){const{register:m}=n({title:"测试标题",dataSource:[{UserId:1001,UserName:"张三",Activate:1,IsAdmin:0,CreateDate:"2024-01-01",week:2},{UserId:1002,UserName:"李四",Activate:0,IsAdmin:1,CreateDate:"2024-01-02",week:5},{UserId:1003,UserName:"王五",Activate:1,IsAdmin:1,CreateDate:"2024-01-03",week:7},{UserId:1004,UserName:"赵六",Activate:0,IsAdmin:0,CreateDate:"2024-01-04",week:3},{UserId:1005,UserName:"孙七",Activate:1,IsAdmin:0,CreateDate:"2024-01-05",week:1},{UserId:1006,UserName:"周八",Activate:0,IsAdmin:1,CreateDate:"2024-01-06",week:6},{UserId:1007,UserName:"吴九",Activate:1,IsAdmin:1,CreateDate:"2024-01-07",week:4},{UserId:1008,UserName:"郑十",Activate:0,IsAdmin:0,CreateDate:"2024-01-08",week:2},{UserId:1009,UserName:"钱十一",Activate:1,IsAdmin:0,CreateDate:"2024-01-09",week:7},{UserId:1010,UserName:"冯十二",Activate:0,IsAdmin:1,CreateDate:"2024-01-10",week:5},{UserId:1011,UserName:"陈十三",Activate:1,IsAdmin:1,CreateDate:"2024-01-11",week:1},{UserId:1012,UserName:"褚十四",Activate:0,IsAdmin:0,CreateDate:"2024-01-12",week:4},{UserId:1013,UserName:"卫十五",Activate:1,IsAdmin:0,CreateDate:"2024-01-13",week:6},{UserId:1014,UserName:"蒋十六",Activate:0,IsAdmin:1,CreateDate:"2024-01-14",week:3},{UserId:1015,UserName:"沈十七",Activate:1,IsAdmin:1,CreateDate:"2024-01-15",week:2},{UserId:1016,UserName:"韩十八",Activate:0,IsAdmin:0,CreateDate:"2024-01-16",week:7},{UserId:1017,UserName:"杨十九",Activate:1,IsAdmin:0,CreateDate:"2024-01-17",week:5},{UserId:1018,UserName:"朱二十",Activate:0,IsAdmin:1,CreateDate:"2024-01-18",week:1},{UserId:1019,UserName:"秦二十一",Activate:1,IsAdmin:1,CreateDate:"2024-01-19",week:4},{UserId:1020,UserName:"尤二十二",Activate:0,IsAdmin:0,CreateDate:"2024-01-20",week:6}],showSelection:!0,showIndex:!0,showAction:!0,immediate:!0,customHeader:!0,showExport:!0,columns:[{prop:"UserId",label:"用户编号",isLink:!0,width:"300px"},{prop:"UserName",label:"用户名"},{prop:"Activate",label:"激活状态",tagEnums:d},{prop:"IsAdmin",label:"是否管理员",enums:r},{prop:"week",label:"周",tagEnums:o},{prop:"CreateDate",label:"创建日期"}],schema:[{label:"关键字",prop:"Keyword",type:"input"},{label:"编号",prop:"userId",type:"input",props:{type:"number"}},{label:"用户名",prop:"userName",type:"input"},{label:"激活状态",prop:"isActive",type:"select",options:r},{label:"是否管理员",prop:"isAdmin",type:"select",options:r}],actionProps:{btnList:[{label:"编辑",disabledFn:(e,t,a)=>a%2===0,click:e=>{}},{label:"删除",disabledFn:(e,t,a)=>a%3===0,isPopConfirm:!0,popConfirmProps:{title:"你好"},popConfirmEmits:{confirm(e){return!0}}}]}});return(e,t)=>(l(),c(I,null,{default:s(()=>[U(i(p),{onRegister:i(m)},{customHeader:s(()=>[...t[0]||(t[0]=[u(" 这里是插槽头部 ",-1)])]),_:1},8,["onRegister"])]),_:1}))}});export{b as default};
