u-tabbar.js 2.8 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-tabbar/u-tabbar"],{6252:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return u}));var u={uSafeBottom:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(n.bind(null,"492f"))}},a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__get_style([e.tabbarStyle]));e.$mp.data=Object.assign({},{$root:{s0:n}})},r=[]},b709:function(e,t,n){"use strict";(function(e){var u=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=u(n("2eee")),r=u(n("c973")),i=u(n("1aef")),c={name:"u-tabbar",mixins:[e.$u.mpMixin,e.$u.mixin,i.default],data:function(){return{placeholderHeight:0}},computed:{tabbarStyle:function(){var t={zIndex:this.zIndex};return e.$u.deepMerge(t,e.$u.addStyle(this.customStyle))},updateChild:function(){return[this.value,this.activeColor,this.inactiveColor]},updatePlaceholder:function(){return[this.fixed,this.placeholder]}},watch:{updateChild:function(){this.updateChildren()},updatePlaceholder:function(){this.setPlaceholderHeight()}},created:function(){this.children=[]},mounted:function(){this.setPlaceholderHeight()},methods:{updateChildren:function(){this.children.length&&this.children.map((function(e){return e.updateFromParent()}))},setPlaceholderHeight:function(){var t=this;return(0,r.default)(a.default.mark((function n(){return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.fixed&&t.placeholder){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,e.$u.sleep(20);case 4:t.$uGetRect(".u-tabbar__content").then((function(e){var n=e.height,u=void 0===n?50:n;t.placeholderHeight=u}));case 5:case"end":return n.stop()}}),n)})))()}}};t.default=c}).call(this,n("543d")["default"])},bd94:function(e,t,n){"use strict";n.r(t);var u=n("6252"),a=n("c10e");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("cb46");var i,c=n("f0c5"),o=Object(c["a"])(a["default"],u["b"],u["c"],!1,null,"bd2fd586",null,!1,u["a"],i);t["default"]=o.exports},c10e:function(e,t,n){"use strict";n.r(t);var u=n("b709"),a=n.n(u);for(var r in u)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(r);t["default"]=a.a},cb23:function(e,t,n){},cb46:function(e,t,n){"use strict";var u=n("cb23"),a=n.n(u);a.a}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'uview-ui/components/u-tabbar/u-tabbar-create-component',
  4. {
  5. 'uview-ui/components/u-tabbar/u-tabbar-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("bd94"))
  7. })
  8. },
  9. [['uview-ui/components/u-tabbar/u-tabbar-create-component']]
  10. ]);