2025-03-21 16:50:18 +08:00
|
|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["tuniao-ui/components/tn-tabs/tn-tabs"],{428:function(t,e,n){"use strict";n.r(e);var r=n(429),i=n(431);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(433);var a,c=n(42),u=Object(c["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,"77999140",null,!1,r["components"],a);u.options.__file="tuniao-ui/components/tn-tabs/tn-tabs.vue",e["default"]=u.exports},429:function(t,e,n){"use strict";n.r(e);var r=n(430);n.d(e,"render",(function(){return r["render"]})),n.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(e,"components",(function(){return r["components"]}))},430:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return a})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return r}));try{r={tnBadge:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-badge/tn-badge")]).then(n.bind(null,639))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.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 t=this,e=t.$createElement,n=(t._self._c,t.$tn.string.getLengthUnitValue(t.top,"px")),r=t.__map(t.list,(function(e,n){var r=t.__get_orig(e),i=t.__get_style([t.tabItemStyle(n)]);return{$orig:r,s0:i}})),i=t.showBar?t.__get_style([t.tabBarStyle]):null,o=t.showBar?null:t.__get_style([t.tabMyBarStyle]);t.$mp.data=Object.assign({},{$root:{g0:n,l0:r,s1:i,s2:o}})},o=!1,a=[];i._withStripped=!0},431:function(t,e,n){"use strict";n.r(e);var r=n(432),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},432:function(t,e,n){"use strict";(function(t){var r=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(35)),o=r(n(37)),a=r(n(396)),c={mixins:[a.default],name:"tn-tabs",props:{list:{type:Array,default:function(){return[]}},name:{type:String,default:"name"},count:{type:String,default:"count"},current:{type:Number,default:0},isScroll:{type:Boolean,default:!0},height:{type:Number,default:80},top:{type:Number,default:0},itemWidth:{type:[String,Number],default:"auto"},duration:{type:Number,default:.3},activeColor:{type:String,default:"#01BEFF"},inactiveColor:{type:String,default:"#080808"},activeItemStyle:{type:Object,default:function(){return{}}},inactiveItemStyle:{type:Object,default:function(){return{}}},showBar:{type:Boolean,default:!0},barWidth:{type:Number,default:40},barHeight:{type:Number,default:6},barStyle:{type:Object,default:function(){return{}}},gutter:{type:Number,default:30},badgeOffset:{type:Array,default:function(){return[20,22]}},bold:{type:Boolean,default:!1}},computed:{tabBarStyle:function(){var t={width:this.$tn.string.getLengthUnitValue(this.barWidth),height:this.$tn.string.getLengthUnitValue(this.barHeight),borderRadius:"".concat(this.barHeight/2,"rpx"),backgroundColor:this.activeColor,opacity:this.barMoveFirst?0:1,transform:"translate(".concat(this.scrollBarLeft,"px, -100%)"),transitionDuration:this.barMoveFirst?"0s":"".concat(this.duration,"s")};return Object.assign(t,this.barStyle),t},tabMyBarStyle:function(){var t={width:"40rpx",height:"40rpx",color:"#3056D3",opacity:this.barMoveFirst?0:1,transform:"translate(".concat(this.scrollBarLeft,"px, 30%)"),transitionDuration:this.barMoveFirst?"0s":"".concat(this.duration,"s")};return Object.assign(t,this.barStyle),t},tabItemStyle:function(){var t=this;return function(e){var n={width:t.$tn.string.getLengthUnitValue(t.itemWidth),height:t.$tn.string.getLengthUnitValue(t.height),lineHeight:t.$tn.string.getLengthUnitValue(t.height),fontSiz
|