/*! For license information please see 122.f49f9309.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([["122"],{98231:function(t,e,n){"use strict";n.r(e);var l=n("94031");n("44975");let i=l.Z;e.default=i},94031:function(t,e,n){"use strict";n("40944");var l=n("80681"),i=n("11848"),o=n("99742"),s=n("45802"),r=n("64911"),u=n("54369"),a=n("24647"),c=["src"];e.Z=(0,l.aZ)({__name:"index",setup(t){var e=(0,u.q)({"zh-CN":{title:"\u6807\u9898",alert1:"\u63D0\u793A\u5F39\u7A97",alert2:"\u63D0\u793A\u5F39\u7A97\uFF08\u65E0\u6807\u9898\uFF09",confirm:"\u786E\u8BA4\u5F39\u7A97",content1:"\u4EE3\u7801\u662F\u5199\u51FA\u6765\u7ED9\u4EBA\u770B\u7684\uFF0C\u9644\u5E26\u80FD\u5728\u673A\u5668\u4E0A\u8FD0\u884C\u3002",content2:"\u751F\u547D\u8FDC\u4E0D\u6B62\u8FDE\u8F74\u8F6C\u548C\u5FD9\u5230\u6781\u9650\uFF0C\u4EBA\u7C7B\u7684\u4F53\u9A8C\u8FDC\u6BD4\u8FD9\u8FBD\u9614\u3001\u4E30\u5BCC\u5F97\u591A\u3002",content3:"\u5982\u679C\u89E3\u51B3\u65B9\u6CD5\u662F\u4E11\u964B\u7684\uFF0C\u90A3\u5C31\u80AF\u5B9A\u8FD8\u6709\u66F4\u597D\u7684\u89E3\u51B3\u65B9\u6CD5\uFF0C\u53EA\u662F\u8FD8\u6CA1\u6709\u53D1\u73B0\u800C\u5DF2\u3002",beforeClose:"\u5F02\u6B65\u5173\u95ED",roundButton:"\u5706\u89D2\u6309\u94AE\u6837\u5F0F",useComponent:"\u4F7F\u7528 Dialog \u7EC4\u4EF6"},"en-US":{title:"Title",alert1:"Alert",alert2:"Alert without title",confirm:"Confirm dialog",content1:"The frequency of people swearing during code reading is the only measure of code quality.",content2:"Life is far more than just spinning and busy to the limit, and human experiences are much broader and richer than this.",content3:"If the solution is ugly, then there must be a better solution, but it has not been discovered yet.",beforeClose:"Before Close",roundButton:"Round Button Style",useComponent:"Use Dialog Component"}}),n=(0,i.iH)(!1),m=(0,a.RQ)("apple-3.jpeg"),d=()=>{(0,s.vC)({title:e("title"),message:e("content1")})},f=()=>{(0,s.vC)({message:e("content2")})},C=()=>{(0,s.vC)({theme:"round-button",title:e("title"),message:e("content1")})},h=()=>{(0,s.vC)({theme:"round-button",message:e("content2")})},U=()=>{(0,s.WD)({title:e("title"),message:e("content3")})},S=()=>{(0,s.WD)({title:e("title"),message:e("content3"),beforeClose:t=>new Promise(e=>{setTimeout(()=>e("confirm"===t),1e3)})})};return(t,s)=>{var u=(0,l.up)("demo-block");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(u,{card:"",title:(0,i.SU)(e)("basicUsage")},{default:(0,l.w5)(()=>[(0,l.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:(0,i.SU)(e)("alert1"),onClick:d},null,8,["title"]),(0,l.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:(0,i.SU)(e)("alert2"),onClick:f},null,8,["title"]),(0,l.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:(0,i.SU)(e)("confirm"),onClick:U},null,8,["title"])]),_:1},8,["title"]),(0,l.Wm)(u,{card:"",title:(0,i.SU)(e)("roundButton")},{default:(0,l.w5)(()=>[(0,l.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:(0,i.SU)(e)("alert1"),onClick:C},null,8,["title"]),(0,l.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:(0,i.SU)(e)("alert2"),onClick:h},null,8,["title"])]),_:1},8,["title"]),(0,l.Wm)(u,{card:"",title:(0,i.SU)(e)("beforeClose")},{default:(0,l.w5)(()=>[(0,l.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:(0,i.SU)(e)("beforeClose"),onClick:S},null,8,["title"])]),_:1},8,["title"]),(0,l.Wm)(u,{card:"",title:(0,i.SU)(e)("useComponent")},{default:(0,l.w5)(()=>[(0,l.Wm)((0,i.SU)(o.ZP),{"is-link":"",title:(0,i.SU)(e)("useComponent"),onClick:s[0]||(s[0]=t=>n.value=!0)},null,8,["title"]),(0,l.Wm)((0,i.SU)(r.Vq),{show:n.value,"onUpdate:show":s[1]||(s[1]=t=>n.value=t),title:(0,i.SU)(e)("title"),"show-cancel-button":"","lazy-render":!1},{default:(0,l.w5)(()=>[(0,l._)("img",{src:(0,i.SU)(m)},null,8,c)]),_:1},8,["show","title"])]),_:1},8,["title"])],64)}}})},24647:function(t,e,n){"use strict";n.d(e,{RQ:function(){return l}});var l=t=>"https://fastly.jsdelivr.net/npm/@vant/assets/".concat(t)},64911:function(t,e,n){"use strict";n.d(e,{Vq:function(){return o}});var l=n("63112"),i=n("97463"),o=(0,l.n)(i.Z)},44975:function(t,e,n){"use strict";n.r(t.exports={})},93678:function(t,e,n){"use strict";n.r(t.exports={})}}]);