1 |
- import{d as u,r as p,y as l,S as i,w as r,a as e,R as c,C as w,F as f}from"./index-8c59248a.js";const m="_wxPopupDialog_1avbm_1",d="_popupContainer_1avbm_16",_="_title1_1avbm_24",b="_popupTips_1avbm_31",h="_button_1avbm_39",a={wxPopupDialog:m,popupContainer:d,title1:_,popupTips:b,button:h},x=u({name:"m-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"},showButton:{type:Boolean,default:!1},buttonText:{type:String,default:"确定"}},emits:["confirm"],setup(t,{emit:s}){const o=p(!1);return l(()=>{if(!i().weixin&&t.show){o.value=!0;return}}),r(()=>[t.show,t.message],()=>{t.show?o.value=!0:o.value=!1}),()=>e(f,null,[e(c,{show:o.value,"onUpdate:show":n=>o.value=n,round:!0,style:{width:"88%",maxWidth:"520px"},closeOnClickOverlay:!1,class:a.wxPopupDialog},{default:()=>[e("div",{class:a.popupContainer},[e("p",{class:a.title1},[t.title]),e("p",{class:a.popupTips},[t.message]),t.showButton&&e(w,{round:!0,class:a.button,onClick:()=>s("confirm")},{default:()=>[t.buttonText]})])]})])}});export{x as M};
|