import{d as i,r as s,Z as g,c as a,a$ as u}from"./index.8f93de0e.js";const c="_dialogTitle_zz3gi_1",f="_oDialog_zz3gi_18";var l={dialogTitle:c,oDialog:f},r=i({name:"o-dialog",props:{show:{type:Boolean,default:!1},message:{type:String,default:""},allowHtml:{type:Boolean,default:!1},title:{type:String,default:"\u63D0\u793A"},confirmButtonText:{type:String,default:"\u786E\u8BA4"},cancelButtonText:{type:String,default:"\u53D6\u6D88"},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},messageAlign:{type:String,default:"center"},dialogMarginTop:{type:String,default:"0px"},teleport:{type:String,default:""}},emits:["cancel","confirm","update:show"],setup(t,{emit:e}){const o=s({show:t.show||!1});return g(()=>t.show,()=>{o.show=t.show}),()=>a(u,{class:l.oDialog,style:{marginTop:t.dialogMarginTop},teleport:t.teleport||null,show:o.show,"onUpdate:show":n=>o.show=n,allowHtml:t.allowHtml,message:t.message,messageAlign:t.messageAlign,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,showConfirmButton:t.showConfirmButton,showCancelButton:t.showCancelButton,onConfirm:()=>{e("update:show",!1),e("confirm")},onCancel:()=>{e("update:show",!1),e("cancel")}},{title:()=>a("div",{class:l.dialogTitle},[a("i",null,null),t.title])})}});export{r as O};
