refactor: 更新u-tabs组件使用方式及样式调整

This commit is contained in:
pikachu1995@126.com
2026-07-01 10:07:55 +08:00
parent dc2bef455a
commit 6654c1de51
16 changed files with 246 additions and 153 deletions

View File

@@ -2,10 +2,10 @@
<view class="wrapper">
<u-tabs
:list="list"
:is-scroll="false"
:current="current"
@change="change"
:active-color="$lightColor"
:scrollable="false"
v-model:current="current"
:lineColor="lightColor"
:activeStyle="{ color: lightColor }"
></u-tabs>
@@ -53,6 +53,7 @@ export default {
data() {
return {
current:0,
lightColor: this.$lightColor,
list: [
{
name: "推广人资料",

View File

@@ -10,12 +10,12 @@
<template #center>
<view class="slot-wrap">
<u-tabs
:active-color="lightColor"
:lineColor="lightColor"
:activeStyle="{ color: lightColor }"
class="collect-tabs"
:list="navList"
:is-scroll="true"
:current="tabCurrentIndex"
@change="tabClick"
:scrollable="true"
v-model:current="tabCurrentIndex"
></u-tabs>
</view>
</template>
@@ -206,13 +206,6 @@
});
},
/**
* 顶部tab点击
*/
tabClick(index) {
this.tabCurrentIndex = index;
},
/**
* 查看商品详情
*/