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-DPwnCFZI.js";import{B as O}from"./index-zKZnG1QC.js";import"./index-Cy4uayzW.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./JAddInput-DP4caUmw.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./useFormItem-IOFWTdED.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-tDBMxW9-.js";import"./index-CNQBnF3P.js";import"./index-Bdn0r8CG.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-Q6J5bB_u.js";import"./depart.api-B8q8MC-j.js";import"./JDictSelectTag-CalJXNVe.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./JImageUpload-C5OCTlCG.js";import"./JPopup-CVHkQZFq.js";import"./JMarkdownEditor-TBMzcsZ_.js";import"./index-DmeKrdZg.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./JSelectDept-D-TUaHvK.js";import"./JAreaLinkage-CTMEfTuh.js";import"./JCodeEditor-U9QIstNN.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};
