mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{174:function(t,s,e){"use strict";var o=e(87);e.n(o).a},175:function(t,s,e){(t.exports=e(12)(!1)).push([t.i,".demo-toast .van-button {\n margin-left: 15px;\n}\n",""])},354:function(t,s,e){"use strict";e.r(s);var o={i18n:{"zh-CN":{title1:"文字提示",title2:"加载提示",title3:"成功/失败提示",success:"成功提示",fail:"失败提示",text:"提示内容",longText:"这是一条长文字提示,超过一定字数就会换行",text2:"成功文案",text3:"失败文案",text4:function(t){return"倒计时 "+t+" 秒"},longTextButton:"长文字提示"},"en-US":{title1:"Text",title2:"Loading",title3:"Success/Fail",success:"Success",fail:"Fail",text:"Some messages",longText:"This is a long message, text will wrap when over a certain length",text2:"Success",text3:"Fail",text4:function(t){return t+" seconds"},longTextButton:"Long Text"}},methods:{showLoadingToast:function(){this.$toast.loading({mask:!0,message:this.$t("loading")})},showSuccessToast:function(){this.$toast.success(this.$t("text2"))},showFailToast:function(){this.$toast.fail(this.$t("text3"))},showCustomizedToast:function(){var t=this,s=this.$toast.loading({duration:0,forbidClick:!0,loadingType:"spinner",message:this.$t("text4",3)}),e=3,o=setInterval(function(){--e?s.message=t.$t("text4",e):(clearInterval(o),t.$toast.clear())},1e3)}}},n=(e(174),e(7)),i=Object(n.a)(o,function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("demo-section",[e("demo-block",{attrs:{title:t.$t("title1")}},[e("van-button",{on:{click:function(s){t.$toast(t.$t("text"))}}},[t._v(t._s(t.$t("title1")))]),e("van-button",{on:{click:function(s){t.$toast(t.$t("longText"))}}},[t._v(t._s(t.$t("longTextButton")))])],1),e("demo-block",{attrs:{title:t.$t("title2")}},[e("van-button",{on:{click:t.showLoadingToast}},[t._v(t._s(t.$t("title2")))])],1),e("demo-block",{attrs:{title:t.$t("title3")}},[e("van-button",{on:{click:t.showSuccessToast}},[t._v(t._s(t.$t("success")))]),e("van-button",{on:{click:t.showFailToast}},[t._v(t._s(t.$t("fail")))])],1),e("demo-block",{attrs:{title:t.$t("advancedUsage")}},[e("van-button",{on:{click:t.showCustomizedToast}},[t._v(t._s(t.$t("advancedUsage")))])],1)],1)},[],!1,null,null,null);s.default=i.exports},87:function(t,s,e){var o=e(175);"string"==typeof o&&(o=[[t.i,o,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e(13)(o,n);o.locals&&(t.exports=o.locals)}}]); |