uni-Identify-quality/unpackage/dist/build/mp-weixin/uview-ui/components/u-tabbar-item/u-tabbar-item.js

11 lines
2.5 KiB
JavaScript
Raw Permalink Normal View History

2025-09-01 05:51:21 +00:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-tabbar-item/u-tabbar-item"],{"4e67":function(t,n,e){"use strict";e.r(n);var a=e("a7f0"),i=e.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);n["default"]=i.a},"6d99":function(t,n,e){},a402:function(t,n,e){"use strict";e.r(n);var a=e("c9ca"),i=e("4e67");for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e("ca3e");var r=e("828b"),c=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"9ce268ec",null,!1,a["a"],void 0);n["default"]=c.exports},a7f0:function(t,n,e){"use strict";(function(t){var a=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("c007")),u={name:"u-tabbar-item",mixins:[t.$u.mpMixin,t.$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||t.$u.error("u-tabbar-item必须搭配u-tabbar组件使用");var n=this.parent.children.indexOf(this);this.isActive=(this.name||n)===this.parentData.value},updateParentData:function(){this.getParentData("u-tabbar")},updateFromParent:function(){this.init()},clickHandler:function(){var t=this;this.$nextTick((function(){var n=t.parent.children.indexOf(t),e=t.name||n;e!==t.parent.value&&t.parent.$emit("change",e),t.$emit("click",e)}))}}};n.default=u}).call(this,e("df3c")["default"])},c9ca:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return a}));var a={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"cfbb"))},uBadge:function(){return Promise.all([e.e("common/vendor"),e.e("uview-ui/components/u-badge/u-badge")]).then(e.bind(null,"d6f9"))}},i=function(){var t=this.$createElement,n=(this._self._c,this.__get_style([this.$u.addStyle(this.customStyle)]));this.$mp.data=Object.assign({},{$root:{s0:n}})},u=[]},ca3e:function(t,n,e){"use strict";var a=e("6d99"),i=e.n(a);i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uview-ui/components/u-tabbar-item/u-tabbar-item-create-component',
{
'uview-ui/components/u-tabbar-item/u-tabbar-item-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("a402"))
})
},
[['uview-ui/components/u-tabbar-item/u-tabbar-item-create-component']]
]);