import{d as k,f as e,n,a2 as b,ad as _,af as g,k as h}from"./vue-vendor-CxLCUzY4.js";import{A as x}from"./AgvLanguageForm-DSYMDgsq.js";import{J as B}from"./JModal-BD1ynP7w.js";import"./index-B_2CoVdl.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./JFormContainer-BDQ_oAYy.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./index-DAURrYyA.js";const y=k({__name:"AgvLanguageModal",emits:["register","success"],setup(C,{expose:r,emit:u}){const s=e(""),c=e(800),t=e(!1),a=e(!1),o=e(),m=u;function d(){s.value="新增",t.value=!0,n(()=>{o.value.add()})}function f(l){s.value=a.value?"详情":"编辑",t.value=!0,n(()=>{o.value.edit(l)})}function p(){o.value.submitForm()}function v(){i(),m("success")}function i(){t.value=!1}return r({add:d,edit:f,disableSubmit:a}),(l,w)=>(b(),_(B,{title:s.value,width:c.value,visible:t.value,onOk:p,okButtonProps:{class:{"jee-hidden":a.value}},onCancel:i,cancelText:"关闭"},{default:g(()=>[h(x,{ref_key:"registerForm",ref:o,onOk:v,formDisabled:a.value,formBpm:!1},null,8,["formDisabled"])]),_:1},8,["title","width","visible","okButtonProps"]))}});export{y as default};
