var z=Object.defineProperty,C=Object.defineProperties;var k=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var n=(o,t,e)=>t in o?z(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,s=(o,t)=>{for(var e in t||(t={}))y.call(t,e)&&n(o,e,t[e]);if(l)for(var e of l(t))F.call(t,e)&&n(o,e,t[e]);return o},d=(o,t)=>C(o,k(t));import{d as u,U as P,a2 as S,a3 as T,k as a,af as c,u as m}from"./vue-vendor-CxLCUzY4.js";import"./index-LwlFn7Y4.js";import{useListPage as D}from"./useListPage-BEtybUiF.js";import{h as J}from"./index-B_2CoVdl.js";import{Q as R}from"./componentMap-CzCGDP7x.js";import U from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./index-DAURrYyA.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./injectionKey-DPVn4AgL.js";const V={class:"p-4"},A=u({name:"basic-table-demo"}),Et=u(d(s({},A),{setup(o){const t=[{title:"姓名",dataIndex:"name",width:170,align:"left",resizable:!0,sorter:{multiple:1}},{title:"关键词",dataIndex:"keyWord",width:130,resizable:!0},{title:"打卡时间",dataIndex:"punchTime",width:140,resizable:!0},{title:"工资",dataIndex:"salaryMoney",width:140,resizable:!0,sorter:{multiple:2}},{title:"奖金",dataIndex:"bonusMoney",width:140,resizable:!0},{title:"性别",dataIndex:"sex",sorter:{multiple:3},filters:[{text:"男",value:"1"},{text:"女",value:"2"}],customRender:({record:i})=>i.sex?i.sex=="1"?"男":"女":"",width:120,resizable:!0},{title:"生日",dataIndex:"birthday",width:120,resizable:!0},{title:"邮箱",dataIndex:"email",width:120,resizable:!0}],e=[{label:"姓名",field:"name",component:"JInput",defaultValue:"苏榕润"},{label:"性别",field:"sex",component:"JDictSelectTag",componentProps:{dictCode:"sex",placeholder:"请选择性别"}},{label:"邮箱",field:"email",component:"JInput",slot:"email"},{label:"生日",field:"birthday",component:"DatePicker"}],b=i=>J.get({url:"/test/jeecgDemo/list",params:i}),{tableContext:f}=D({designScope:"basic-table-demo-filter",tableProps:{title:"用户列表",api:b,columns:t,formConfig:{schemas:e},useSearchForm:!0}}),[h,{getForm:x}]=f;function _(i){return[{label:"编辑",onClick:g.bind(null,i)}]}function g(i){let{getFieldsValue:I}=x()}return(i,I)=>{const w=P("a-input");return S(),T("div",V,[a(m(U),{onRegister:m(h)},{"form-email":c(({model:r,field:p})=>[a(w,{placeholder:"请输入邮箱",value:r[p],"onUpdate:value":v=>r[p]=v,"addon-before":"邮箱:","addon-after":".com"},null,8,["value","onUpdate:value"])]),action:c(({record:r})=>[a(m(R),{actions:_(r)},null,8,["actions"])]),_:1},8,["onRegister"])])}}}));export{Et as default};
