This commit is contained in:
2025-06-13 20:48:15 +08:00
parent 52e34ffd7c
commit 1e0b2b125b
403 changed files with 16069 additions and 0 deletions
@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item"],{"012d":function(t,n,e){"use strict";e.r(n);var i=e("2c1a"),a=e("2953");for(var u in a)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(u);e("c295");var r=e("828b"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"0087ad7e",null,!1,i["a"],void 0);n["default"]=c.exports},2953:function(t,n,e){"use strict";e.r(n);var i=e("40a9"),a=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=a.a},"2c1a":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"3094"))},uBadge:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-badge/u-badge")]).then(e.bind(null,"1204"))}},a=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=[]},"40a9":function(t,n,e){"use strict";(function(t){var i=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(e("00b3")),u={name:"u-tabbar-item",mixins:[t.$u.mpMixin,t.$u.mixin,a.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"])},c295:function(t,n,e){"use strict";var i=e("f78b"),a=e.n(i);a.a},f78b:function(t,n,e){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item-create-component',
{
'uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("012d"))
})
},
[['uni_modules/uview-ui/components/u-tabbar-item/u-tabbar-item-create-component']]
]);
@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "/uni_modules/uview-ui/components/u-icon/u-icon",
"u-badge": "/uni_modules/uview-ui/components/u-badge/u-badge"
}
}
@@ -0,0 +1 @@
<view data-event-opts="{{[['tap',[['clickHandler',['$event']]]]]}}" class="u-tabbar-item data-v-0087ad7e" style="{{$root.s0}}" bindtap="__e"><view class="u-tabbar-item__icon data-v-0087ad7e"><block wx:if="{{icon}}"><u-icon vue-id="b562e1b2-1" name="{{icon}}" color="{{isActive?parentData.activeColor:parentData.inactiveColor}}" size="{{20}}" class="data-v-0087ad7e" bind:__l="__l"></u-icon></block><block wx:else><block wx:if="{{isActive}}"><slot name="active-icon"></slot></block><block wx:else><slot name="inactive-icon"></slot></block></block><u-badge vue-id="b562e1b2-2" absolute="{{true}}" offset="{{[0,dot?'34rpx':badge>9?'14rpx':'20rpx']}}" customStyle="{{badgeStyle}}" isDot="{{dot}}" value="{{badge||(dot?1:null)}}" show="{{dot||badge>0}}" class="data-v-0087ad7e" bind:__l="__l"></u-badge></view><block wx:if="{{$slots.text}}"><slot name="text"></slot></block><block wx:else><text class="u-tabbar-item__text data-v-0087ad7e" style="{{'color:'+(isActive?parentData.activeColor:parentData.inactiveColor)+';'}}">{{text}}</text></block></view>
File diff suppressed because one or more lines are too long