You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
3.7 KiB
JavaScript
11 lines
3.7 KiB
JavaScript
4 weeks ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["node-modules/uview-ui/components/u-toast/u-toast"],{"217c":function(n,t,e){},"3feb":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return o}));var o={uOverlay:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-overlay/u-overlay")]).then(e.bind(null,"8f08"))},uLoadingIcon:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-loading-icon/u-loading-icon")]).then(e.bind(null,"846f"))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"da7f"))},uGap:function(){return Promise.all([e.e("common/vendor"),e.e("node-modules/uview-ui/components/u-gap/u-gap")]).then(e.bind(null,"1682"))}},i=function(){var n=this.$createElement,t=(this._self._c,this.__get_style([this.contentStyle]));this.$mp.data=Object.assign({},{$root:{s0:t}})},r=[]},b7df:function(n,t,e){"use strict";e.r(t);var o=e("3feb"),i=e("e085");for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);e("bf82");var u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"60b6a9e7",null,!1,o["a"],void 0);t["default"]=c.exports},bf82:function(n,t,e){"use strict";var o=e("217c"),i=e.n(o);i.a},e085:function(n,t,e){"use strict";e.r(t);var o=e("ec9d"),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},ec9d:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={name:"u-toast",mixins:[n.$u.mpMixin,n.$u.mixin],data:function(){return{isShow:!1,timer:null,config:{message:"",type:"",duration:2e3,icon:!0,position:"center",complete:null,overlay:!1,loading:!1},tmpConfig:{}}},computed:{iconName:function(){return this.tmpConfig.icon&&"none"!=this.tmpConfig.icon&&["error","warning","success","primary"].includes(this.tmpConfig.type)?n.$u.type2icon(this.tmpConfig.type):""},overlayStyle:function(){var n={justifyContent:"center",alignItems:"center",display:"flex",backgroundColor:"rgba(0, 0, 0, 0)"};return n},iconStyle:function(){var n={marginRight:"4px"};return n},loadingIconColor:function(){var t="rgb(255, 255, 255)";return["error","warning","success","primary"].includes(this.tmpConfig.type)&&(t=n.$u.hexToRgb(n.$u.color[this.tmpConfig.type])),t},contentStyle:function(){var t=n.$u.sys().windowHeight,e={},o=0;return"top"===this.tmpConfig.position?o=.25*-t:"bottom"===this.tmpConfig.position&&(o=.25*t),e.transform="translateY(".concat(o,"px)"),e}},created:function(){var n=this;["primary","success","error","warning","default","loading"].map((function(t){n[t]=function(e){return n.show({type:t,message:e})}}))},methods:{show:function(t){var e=this;this.tmpConfig=n.$u.deepMerge(this.config,t),this.clearTimer(),this.isShow=!0,this.timer=setTimeout((function(){e.clearTimer(),"function"===typeof e.tmpConfig.complete&&e.tmpConfig.complete()}),this.tmpConfig.duration)},hide:function(){this.clearTimer()},clearTimer:function(){this.isShow=!1,clearTimeout(this.timer),this.timer=null}},beforeDestroy:function(){this.clearTimer()}};t.default=e}).call(this,e("543d")["default"])}}]);
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'node-modules/uview-ui/components/u-toast/u-toast-create-component',
|
||
|
{
|
||
|
'node-modules/uview-ui/components/u-toast/u-toast-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('543d')['createComponent'](__webpack_require__("b7df"))
|
||
|
})
|
||
|
},
|
||
|
[['node-modules/uview-ui/components/u-toast/u-toast-create-component']]
|
||
|
]);
|