1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-11 12:49:30 +08:00

fix: 修复图库添加左右手势滑动后布局显示bug

This commit is contained in:
小莫唐尼
2025-07-20 00:11:41 +08:00
parent 97e358e41f
commit 409be28deb
+10 -5
View File
@@ -21,7 +21,7 @@
</view> </view>
<!-- 内容区域 --> <!-- 内容区域 -->
<view v-else class="content"> <view v-else class="content">
<k-touch-listen @touchLeft="touchLeft" @touchRight="touchRight"> <k-touch-listen class="touch-listen-content" @touchLeft="touchLeft" @touchRight="touchRight">
<view v-if="dataList.length === 0" class="content-empty"> <view v-if="dataList.length === 0" class="content-empty">
<!-- 空布局 --> <!-- 空布局 -->
<tm-empty icon="icon-shiliangzhinengduixiang-" label="博主还没有分享图片~"></tm-empty> <tm-empty icon="icon-shiliangzhinengduixiang-" label="博主还没有分享图片~"></tm-empty>
@@ -322,13 +322,11 @@ export default {
padding-bottom: 24rpx; padding-bottom: 24rpx;
background-color: #fafafa; background-color: #fafafa;
} }
.content { .content {
width:100%;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx 24rpx 0;
gap: 12rpx 0;
.content-empty { .content-empty {
width: 100%; width: 100%;
@@ -338,7 +336,14 @@ export default {
justify-content: center; justify-content: center;
} }
} }
.touch-listen-content {
width:100%;
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
padding: 24rpx 24rpx 0;
gap: 12rpx 0;
}
.loading-wrap { .loading-wrap {
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx; padding: 24rpx;