| 1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-toast/u-toast"],{1409:function(t,n,e){"use strict";e.r(n);var i=e(1410),o=e(1412);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e(1414);var u,s=e(32),c=Object(s["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"413e7fe0",null,!1,i["components"],u);c.options.__file="uview-ui/components/u-toast/u-toast.vue",n["default"]=c.exports},1410:function(t,n,e){"use strict";e.r(n);var i=e(1411);e.d(n,"render",(function(){return i["render"]})),e.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(n,"components",(function(){return i["components"]}))},1411:function(t,n,e){"use strict";var i;e.r(n),e.d(n,"render",(function(){return o})),e.d(n,"staticRenderFns",(function(){return u})),e.d(n,"recyclableRender",(function(){return r})),e.d(n,"components",(function(){return i}));try{i={uIcon:function(){return e.e("uview-ui/components/u-icon/u-icon").then(e.bind(null,1200))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var t=this,n=t.$createElement;t._self._c},r=!1,u=[];o._withStripped=!0},1412:function(t,n,e){"use strict";e.r(n);var i=e(1413),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=o.a},1413:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"u-toast",props:{zIndex:{type:[Number,String],default:""}},data:function(){return{isShow:!1,timer:null,config:{params:{},title:"",type:"",duration:2e3,isTab:!1,url:"",icon:!0,position:"center",callback:null,back:!1},tmpConfig:{}}},computed:{iconName:function(){if(["error","warning","success","info"].indexOf(this.tmpConfig.type)>=0&&this.tmpConfig.icon){var t=this.$u.type2icon(this.tmpConfig.type);return t}},uZIndex:function(){return this.isShow?this.zIndex?this.zIndex:this.$u.zIndex.toast:"999999"}},methods:{show:function(t){var n=this;this.tmpConfig=this.$u.deepMerge(this.config,t),this.timer&&(clearTimeout(this.timer),this.timer=null),this.isShow=!0,this.timer=setTimeout((function(){n.isShow=!1,clearTimeout(n.timer),n.timer=null,"function"===typeof n.tmpConfig.callback&&n.tmpConfig.callback(),n.timeEnd()}),this.tmpConfig.duration)},hide:function(){this.isShow=!1,this.timer&&(clearTimeout(this.timer),this.timer=null)},timeEnd:function(){if(this.tmpConfig.url){if("/"!=this.tmpConfig.url[0]&&(this.tmpConfig.url="/"+this.tmpConfig.url),Object.keys(this.tmpConfig.params).length){var n="";/.*\/.*\?.*=.*/.test(this.tmpConfig.url)?(n=this.$u.queryParams(this.tmpConfig.params,!1),this.tmpConfig.url=this.tmpConfig.url+"&"+n):(n=this.$u.queryParams(this.tmpConfig.params),this.tmpConfig.url+=n)}this.tmpConfig.isTab?t.switchTab({url:this.tmpConfig.url}):t.navigateTo({url:this.tmpConfig.url})}else this.tmpConfig.back&&this.$u.route({type:"back"})}}};n.default=e}).call(this,e(2)["default"])},1414:function(t,n,e){"use strict";e.r(n);var i=e(1415),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=o.a},1415:function(t,n,e){}}]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-toast/u-toast.js.map
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'uview-ui/components/u-toast/u-toast-create-component',
- {
- 'uview-ui/components/u-toast/u-toast-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('2')['createComponent'](__webpack_require__(1409))
- })
- },
- [['uview-ui/components/u-toast/u-toast-create-component']]
- ]);
|