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,12 +2,12 @@
<view class="content">
<view class="u-tabs-box">
<u-tabs
bg-color="#fff"
:list="list"
:is-scroll="false"
:current="current"
:scrollable="false"
v-model:current="current"
@change="change"
:active-color="$lightColor"
:lineColor="$lightColor"
:activeStyle="{ color: $lightColor }"
></u-tabs>
</view>
<div class="u-tabs-search">
@@ -272,7 +272,8 @@ export default {
/**
* 切换tab页时初始化数据
*/
change(index) {
change(e) {
const index = typeof e === 'object' && e != null ? e.index : e;
this.current = index;
this.params = {
pageNumber: 1,