(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["tuniao-ui/components/tn-toast/tn-toast"],{"07a1":function(t,i,n){"use strict";n.r(i);var e=n("8768"),s=n.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(o);i["default"]=s.a},7115:function(t,i,n){"use strict";n.r(i);var e=n("ed98"),s=n("07a1");for(var o in s)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return s[t]}))}(o);n("d27e");var a=n("828b"),u=Object(a["a"])(s["default"],e["b"],e["c"],!1,null,"30c0fcc0",null,!1,e["a"],void 0);i["default"]=u.exports},8768:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={name:"tn-toast",props:{zIndex:{type:Number,default:0}},computed:{toastClass:function(){var t="";return this.visible&&(t+=" tn-toast--show"),this.content&&(t+=" tn-toast--padding"),(this.icon||this.image)&&(t+=" tn-toast--unicon"),t},toastStyle:function(){var t={width:"auto"};return this.icon||this.image,t.zIndex=this.zIndex?this.zIndex:this.$tn.zIndex.toast,t},maskStyle:function(){var t={},i=this.zIndex?this.zIndex:this.$tn.zIndex.toast;return t.zIndex=i-1,t},haveIcon:function(){return this.icon||this.image},haveContent:function(){return this.content}},data:function(){return{timer:null,visible:!1,title:"操作成功",content:"",icon:"",image:""}},methods:{show:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i.duration,e=void 0===n?2e3:n,s=i.title,o=void 0===s?"":s,a=i.content,u=void 0===a?"":a,c=i.icon,r=void 0===c?"":c,l=i.image,d=void 0===l?"":l;if(null!==this.timer&&clearTimeout(this.timer),!r&&!d&&!o&&!u)return this._clearOptions(),void this.$emit("closed");this.visible=!0,this.title=o,this.content=u,this.icon=r,r||(this.image=d),this.timer=setTimeout((function(){t.visible=!1,clearTimeout(t.timer),t.timer=null,t._clearOptions(),t.$emit("closed")}),e)},_clearOptions:function(){this.title="",this.content="",this.icon="",this.image=""}}};i.default=e},cad5:function(t,i,n){},d27e:function(t,i,n){"use strict";var e=n("cad5"),s=n.n(e);s.a},ed98:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return s})),n.d(i,"a",(function(){}));var e=function(){var t=this.$createElement,i=(this._self._c,this.visible?this.__get_style([this.toastStyle]):null),n=this.visible?this.__get_style([this.maskStyle]):null;this.$mp.data=Object.assign({},{$root:{s0:i,s1:n}})},s=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'tuniao-ui/components/tn-toast/tn-toast-create-component',
    {
        'tuniao-ui/components/tn-toast/tn-toast-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("7115"))
        })
    },
    [['tuniao-ui/components/tn-toast/tn-toast-create-component']]
]);
