import{r as e,o,f as l,w as i,G as a,g as t}from"./index-NbYmstuU.js";import{_ as s}from"./uni-app.es.B5W9hTUb.js";const d=s({name:"dialog-helper",props:{title:{type:String,default:""},appendToBody:{type:Boolean,default:!1}},data:()=>({dialogVisible:!1}),methods:{open(){this.dialogVisible=!0},close(){this.dialogVisible=!1},onClose(){this.$emit("onClose",{})}}},[["render",function(s,d,n,p,r,g){const m=e("el-dialog");return r.dialogVisible?(o(),l(m,{key:0,onClose:g.onClose,"align-center":"",modelValue:r.dialogVisible,"onUpdate:modelValue":d[0]||(d[0]=e=>r.dialogVisible=e),title:n.title,"append-to-body":n.appendToBody},{default:i((()=>[a(s.$slots,"default")])),_:3},8,["onClose","modelValue","title","append-to-body"])):t("",!0)}]]);export{d as _};
