import{d as i,r as s,Z as g,c as o,a$ as u}from"./index.332c7f08.js";const c="_dialogTitle_zz3gi_1",f="_oDialog_zz3gi_18";var l={dialogTitle:c,oDialog:f},w=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"}},emits:["cancel","confirm","update:show"],setup(t,{emit:e}){const a=s({show:t.show||!1});return g(()=>t.show,()=>{a.show=t.show}),()=>o(u,{class:l.oDialog,style:{marginTop:t.dialogMarginTop},show:a.show,"onUpdate:show":n=>a.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:()=>o("div",{class:l.dialogTitle},[o("i",null,null),t.title])})}});export{w as O};