1 |
- import{d as u,S as p,U as l,a2 as i,j as e,aR as r,B as d,F as c}from"./index.394decd7.js";const f="_wxPopupDialog_dgnao_1",g="_popupContainer_dgnao_16",w="_title1_dgnao_24",_="_popupTips_dgnao_31",m="_button_dgnao_39";var a={wxPopupDialog:f,popupContainer:g,title1:w,popupTips:_,button:m},y=u({name:"m-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"\u6E29\u99A8\u63D0\u793A"},message:{type:String,default:"\u8BF7\u4F7F\u7528\u5FAE\u4FE1\u6253\u5F00"},showButton:{type:Boolean,default:!1},buttonText:{type:String,default:"\u786E\u5B9A"}},emits:["confirm"],setup(t,{emit:n}){const o=p(!1);return l(()=>{if(t.show){o.value=!0;return}}),i(()=>[t.show,t.message],()=>{t.show?o.value=!0:o.value=!1}),()=>e(c,null,[e(r,{show:o.value,"onUpdate:show":s=>o.value=s,round:!0,style:{width:"88%"},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(d,{round:!0,type:"primary",class:a.button,onClick:()=>n("confirm")},{default:()=>[t.buttonText]})])]})])}});export{y as O};
|