1 |
- import{d as u,r as i,y as p,w as r,a as n,R as c,C as s,F as f}from"./index-869d77fb.js";const w="_wxPopupDialog_6ejrp_1",m="_popupContainer_6ejrp_16",d="_title1_6ejrp_24",h="_popupTips_6ejrp_31",g="_button_6ejrp_38",B="_confirmBtn_6ejrp_46",e={wxPopupDialog:w,popupContainer:m,title1:d,popupTips:h,button:g,confirmBtn:B},_=u({name:"m-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"},messageAlign:{type:String,default:"center"},showCancelButton:{type:Boolean,default:!1},showCancelButtonText:{type:String,default:"取消"},showConfirmButton:{type:Boolean,default:!0},showConfirmButtonText:{type:String,default:"确认"}},emits:["confirm","cancel"],setup(t,{emit:a}){const o=i(!1);return p(()=>{t.show&&(o.value=!0)}),r(()=>[t.show,t.message],()=>{t.show?o.value=!0:o.value=!1}),()=>n(f,null,[n(c,{show:o.value,"onUpdate:show":l=>o.value=l,round:!0,style:{width:"88%",maxWidth:"520px"},closeOnClickOverlay:!1,class:e.wxPopupDialog},{default:()=>[n("div",{class:e.popupContainer},[n("p",{class:e.title1,innerHTML:t.title},null),n("p",{class:e.popupTips,style:{"text-align":t.messageAlign},innerHTML:t.message},null),(t.showConfirmButton||t.showConfirmButton)&&n("div",{class:e.btnGroup},[t.showCancelButton&&n(s,{round:!0,class:[e.button,e.cancelBtn],onClick:()=>a("cancel")},{default:()=>[t.showCancelButtonText]}),t.showConfirmButton&&n(s,{round:!0,class:[e.button,e.confirmBtn],onClick:()=>a("confirm")},{default:()=>[t.showConfirmButtonText]})])])]})])}});export{_ as M};
|