import{d as k,f as t,n as p,a2 as b,ad as h,af as _,k as x,u as B}from"./vue-vendor-CxLCUzY4.js";import C from"./OneNativeForm-D72Y8wkj.js";import{B as O}from"./index-CF_FJn6P.js";import"./index-CYriLmQo.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./JAddInput-CXT54-j9.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./useFormItem-CWa0w7fA.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-BTSd5ebC.js";import"./index-BTAl55Kt.js";import"./index-CxQILSKV.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-DYyhcDf7.js";import"./depart.api-C9T5xfw6.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./JPopup-KP1kIsae.js";import"./JMarkdownEditor-Dzotg6ut.js";import"./index-CEZCyHDA.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./JSelectDept-DorRVguN.js";import"./JAreaLinkage-DFTeDmm8.js";import"./JCodeEditor-_KZ8XnNK.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */const ct=k({__name:"OneNativeModal",emits:["register","ok"],setup(w,{expose:l,emit:n}){const r=t(""),s=t(800),o=t(!1),i=t(!1),e=t(),u=n;function c(){r.value="新增",o.value=!0,p(()=>{e.value.add()})}function d(m){r.value=i.value?"详情":"编辑",o.value=!0,p(()=>{e.value.edit(m)})}function f(){e.value.submitForm()}function v(){a(),u("ok")}function a(){o.value=!1}return l({add:c,edit:d,disableSubmit:i}),(m,F)=>(b(),h(B(O),{title:r.value,width:s.value,visible:o.value,height:600,onOk:f,okButtonProps:{class:{"jee-hidden":i.value}},onCancel:a,cancelText:"关闭"},{default:_(()=>[x(C,{ref_key:"realForm",ref:e,onOk:v,disabled:i.value},null,8,["disabled"])]),_:1},8,["title","width","visible","okButtonProps"]))}});export{ct as default};
