import{d as c,r as d,n as i,G as u}from"./@vue.18505fe0.js";const p=c({props:{title:{type:String,default:""},content:{type:String,default:""},confirmButtonText:{type:[String,Boolean],default:"\u786E\u5B9A"},cancelButtonText:{type:[String,Boolean],default:"\u53D6\u6D88"},width:{type:String,default:"400px"},disabled:{type:Boolean,default:!1},async:{type:Boolean,default:!1},clickModalClose:{type:Boolean,default:!1},center:{type:Boolean,default:!1},customClass:{type:String,default:""}},emits:["confirm","cancel","close","open"],setup(n,{emit:t}){const e=d(!1),o=a=>{t(a),(!n.async||a==="cancel")&&l()},l=()=>{e.value=!1,i(()=>{t("close")})},s=()=>{n.disabled||(t("open"),e.value=!0)};return u("visible",e),{visible:e,handleEvent:o,close:l,open:s}}});export{p as _};
