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-CCkuiNX6.js";import{B as O}from"./index-XZKTTfG1.js";import"./index-CLZzJyTP.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./JAddInput-B36c3B5x.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./useFormItem-IOFWTdED.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./index-DvqyyN77.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JDictSelectTag-CfF54ALX.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./JImageUpload-BFwNYdm5.js";import"./JPopup-BvqhHpPl.js";import"./JMarkdownEditor-D3SUo9tp.js";import"./index-BZa-EKMZ.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useWindowSizeFn-D9PllI8g.js";import"./JSelectDept-CaEHrQp6.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */const dt=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{dt as default};
