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-BkgeZpOO.js";import{_ as F}from"./index-C143YDY6.js";import"./index-CF_FJn6P.js";import{a9 as k}from"./index-CYriLmQo.js";import{u as w,B as J}from"./useForm-8o5KRzWo.js";import{U as l}from"./JUpload-pyrTRFCz.js";import"./componentMap-7D1QIeNI.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useFormItem-CWa0w7fA.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-CxQILSKV.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JAddInput-CXT54-j9.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JSelectDept-DorRVguN.js";import"./JPopup-KP1kIsae.js";import"./JEllipsis-287cEHxd.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-XK54XB3r.js";import"./index-Bx9Mnn3N.js";const To=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{To as default};
