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-ARbUvvsq.js";import{_ as F}from"./index-h7B1dCH2.js";import"./index-D2AmS0aU.js";import{a9 as k}from"./index-B_2CoVdl.js";import{u as w,B as J}from"./useForm-CcjrODHR.js";import{U as l}from"./JUpload-DzM-D4DX.js";import"./componentMap-CzCGDP7x.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./useFormItem-CWa0w7fA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-DAURrYyA.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.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"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.js";import"./index-khU3p_On.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};
