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-BN26Feep.js";import{_ as F}from"./index-CsJ9aAmV.js";import"./index-zKZnG1QC.js";import{a9 as k}from"./index-Cy4uayzW.js";import{u as w,B as J}from"./useForm-DfoT2G6J.js";import{U as l}from"./JUpload-DSWoDwh2.js";import"./componentMap-0iK4HQBq.js";import"./antd-vue-vendor-CahNzUUa.js";import"./useFormItem-IOFWTdED.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-Bdn0r8CG.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.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"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JAddInput-DP4caUmw.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JImageUpload-C5OCTlCG.js";import"./JDictSelectTag-CalJXNVe.js";import"./JSelectDept-D-TUaHvK.js";import"./JPopup-CVHkQZFq.js";import"./JEllipsis-TuDc52fh.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CZdChTcP.js";import"./index-B4vNk56t.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};
