index.95a99ca5.js 1.2 KB

1
  1. import{d as i,r as s,Z as g,c as a,b3 as c}from"./index.5f7ffb46.js";const u="_dialogTitle_zz3gi_1",f="_oDialog_zz3gi_18";var n={dialogTitle:u,oDialog:f},r=i({name:"o-dialog",props:{show:{type:Boolean,default:!1},message:{type:String,default:""},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 o=s({show:t.show||!1});return g(()=>t.show,()=>{o.show=t.show}),()=>a(c,{class:n.oDialog,style:{marginTop:t.dialogMarginTop},show:o.show,"onUpdate:show":l=>o.show=l,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:n.dialogTitle},[a("i",null,null),t.title])})}});export{r as O};