feat: 一些调整
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.0 KiB |
@@ -13,7 +13,7 @@
|
||||
<view class="tab-content">
|
||||
<view class="tab-label">
|
||||
<text class="tab-text">{{ tab.label }}</text>
|
||||
<image v-if="modelValue === idx && indicatorSrc" :src="indicatorSrc" class="tab-indicator" mode="widthFix" />
|
||||
<image v-if="modelValue === idx && (isZhiNian ? indicatorSrcB : indicatorSrc)" :src="isZhiNian ? indicatorSrcB : indicatorSrc" class="tab-indicator" mode="widthFix" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -23,7 +23,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { isZhiNian } from "@/constant/base";
|
||||
import indicatorSrc from "./images/selected_tabs_icon.png";
|
||||
import indicatorSrcB from "./images/selected_tabs_icon_b.png";
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: { type: Number, default: 0 },
|
||||
|
||||
Reference in New Issue
Block a user