fix(历史记录): 修复空列表状态下的显示问题

This commit is contained in:
yangzhe 2025-12-17 10:57:04 +08:00
parent ef41da80ff
commit a9edb58d6f
1 changed files with 5 additions and 2 deletions

View File

@ -43,7 +43,7 @@
<!-- 内容区域包装器 --> <!-- 内容区域包装器 -->
<view class="content-wrapper"> <view class="content-wrapper">
<!-- 历史记录列表按日期分组日期固定在上方 --> <!-- 历史记录列表按日期分组日期固定在上方 -->
<view class="history-list"> <view class="history-list" v-if="currentHistoryItems.length">
<view <view
class="date-group" class="date-group"
v-for="(group, groupIndex) in currentHistoryList" v-for="(group, groupIndex) in currentHistoryList"
@ -117,10 +117,13 @@
</view> </view>
</view> </view>
</view> </view>
<view v-else style="margin-top: 200rpx">
<u-empty text="暂无数据" mode="list"></u-empty>
</view>
</view> </view>
<!-- 批量删除操作栏 --> <!-- 批量删除操作栏 -->
<view class="batch-actions" v-if="isBatchDeleteMode"> <view class="batch-actions" v-if="isBatchDeleteMode && currentHistoryItems.length">
<view class="select-all-container" @click="toggleSelectAll"> <view class="select-all-container" @click="toggleSelectAll">
<view class="checkbox" :class="{ checked: selectAll }"> <view class="checkbox" :class="{ checked: selectAll }">
<text class="checkmark" v-if="selectAll"></text> <text class="checkmark" v-if="selectAll"></text>