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-xzvVBNx4.js";import{B as O}from"./index-D2AmS0aU.js";import"./index-B_2CoVdl.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./JAddInput-YFlAniYT.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./useFormItem-CWa0w7fA.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./index-DAURrYyA.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./JPopup-BJBYqoWe.js";import"./JMarkdownEditor-CDOEN5Zg.js";import"./index-Dug0Hu36.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useWindowSizeFn-C3WExEpc.js";import"./JSelectDept-wKz_Qtmc.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.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};
