index-55c7b408.js 1.1 KB

1
  1. import{d as u,r as l,y as p,V as i,w as c,a as e,U as r,C as w,F as f}from"./index-5125bda4.js";const d="_wxPopupDialog_1v1wc_1",_="_popupContainer_1v1wc_17",m="_title1_1v1wc_25",h="_popupTips_1v1wc_32",v="_button_1v1wc_39",s={wxPopupDialog:d,popupContainer:_,title1:m,popupTips:h,button:v},g=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:a}){const o=l(!1);return p(()=>{if(!i().weixin&&t.show){o.value=!0;return}}),c(()=>[t.show,t.message],()=>{t.show?o.value=!0:o.value=!1}),()=>e(f,null,[e(r,{show:o.value,"onUpdate:show":n=>o.value=n,round:!0,style:{width:"70%",maxWidth:"520px"},closeOnClickOverlay:!1,class:s.wxPopupDialog},{default:()=>[e("div",{class:s.popupContainer},[e("p",{class:s.title1},[t.title]),e("p",{class:s.popupTips,innerHTML:t.message},null),t.showButton&&e(w,{round:!0,class:s.button,onClick:()=>a("confirm")},{default:()=>[t.buttonText]})])]})])}});export{g as O};