u-tabbar-item.js 3.7 KB

1234567891011
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item"],{445:function(n,e,t){"use strict";t.r(e);var r=t(446),i=t(448);for(var u in i)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(u);t(451);var a,o=t(36),c=Object(o["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,"0d9729bf",null,!1,r["components"],a);c.options.__file="uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item.vue",e["default"]=c.exports},446:function(n,e,t){"use strict";t.r(e);var r=t(447);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},447:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return i})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));try{r={uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,283))},uBadge:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-badge/u-badge")]).then(t.bind(null,505))}}}catch(o){if(-1===o.message.indexOf("Cannot find module")||-1===o.message.indexOf(".vue"))throw o;console.error(o.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var n=this,e=n.$createElement,t=(n._self._c,n.__get_style([n.$u.addStyle(n.customStyle)]));n.$mp.data=Object.assign({},{$root:{s0:t}})},u=!1,a=[];i._withStripped=!0},448:function(n,e,t){"use strict";t.r(e);var r=t(449),i=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=i.a},449:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(t(450)),u={name:"u-tabbar-item",mixins:[n.$u.mpMixin,n.$u.mixin,i.default],data:function(){return{isActive:!1,parentData:{value:null,activeColor:"",inactiveColor:""}}},created:function(){this.init()},methods:{init:function(){this.updateParentData(),this.parent||n.$u.error("u-tabbar-item必须搭配u-tabbar组件使用");var e=this.parent.children.indexOf(this);this.isActive=(this.name||e)===this.parentData.value},updateParentData:function(){this.getParentData("u-tabbar")},updateFromParent:function(){this.init()},clickHandler:function(){var n=this;this.$nextTick((function(){var e=n.parent.children.indexOf(n),t=n.name||e;t!==n.parent.value&&n.parent.$emit("change",t),n.$emit("click",t)}))}}};e.default=u}).call(this,t(2)["default"])},451:function(n,e,t){"use strict";t.r(e);var r=t(452),i=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=i.a},452:function(n,e,t){}}]);
  2. //# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item-create-component',
  5. {
  6. 'uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('2')['createComponent'](__webpack_require__(445))
  8. })
  9. },
  10. [['uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item-create-component']]
  11. ]);