import{d as C,f as U,U as u,a2 as _,a3 as x,k as t,af as e,G as a,u as p,F as B}from"./vue-vendor-CxLCUzY4.js";import"./index-ByX9XNkE.js";import{_ as F}from"./index-Bz3DhbXN.js";import"./index-XZKTTfG1.js";import{a9 as k}from"./index-CLZzJyTP.js";import{u as w,B as J}from"./useForm-Dx3lJ3DG.js";import{U as l}from"./JUpload-DgDEmizw.js";import"./componentMap-DpsJvoqz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-DvqyyN77.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./index-Bn2zmO2L.js";const Po=C({__name:"JUploadDemo",setup(R){const n=U(""),d=[{field:"uploadFile",component:"JUpload",helpMessage:"无限制上传",label:"上传文件"},{field:"uploadFileMax",component:"JUpload",helpMessage:"最多上传3个文件",label:"上传文件（3）",componentProps:{maxCount:3}},{field:"uploadImage",component:"JUpload",label:"上传图片",helpMessage:"无限制上传",componentProps:{fileType:l.image}},{field:"uploadImageMax",component:"JUpload",label:"上传图片（1）",helpMessage:"最多上传1张图片",componentProps:{fileType:l.image,maxCount:1}}],[f,{openModal:g}]=k(),[b,{setProps:c,validate:T,setFieldsValue:P}]=w({labelWidth:120,schemas:d,actionColOptions:{span:24},compact:!0,showResetButton:!1,showSubmitButton:!1,showAdvancedButton:!1,disabled:!1});function v(r){}function s(r){c({disabled:!!r})}function M(){g(!0,{maxCount:9,fileType:l.image})}return(r,o)=>{const i=u("a-button"),y=u("a-button-group");return _(),x(B,null,[t(y,{class:"j-table-operator"},{default:e(()=>[t(i,{type:"primary",onClick:o[0]||(o[0]=m=>s(0))},{default:e(()=>o[3]||(o[3]=[a("启用")])),_:1}),t(i,{type:"primary",onClick:o[1]||(o[1]=m=>s(1))},{default:e(()=>o[4]||(o[4]=[a("禁用")])),_:1}),t(i,{type:"primary",onClick:M},{default:e(()=>o[5]||(o[5]=[a("文件弹窗")])),_:1})]),_:1}),t(p(J),{onRegister:p(b),onSubmit:v},null,8,["onRegister"]),t(p(F),{value:n.value,"onUpdate:value":o[2]||(o[2]=m=>n.value=m),onRegister:p(f)},null,8,["value","onRegister"])],64)}}});export{Po as default};
