chore:现在左侧一级题的高度会根据字数自动调节,右侧二级标题的白色背景高度会随着左侧选中项的高度自动改变,保持两侧高度一致。

This commit is contained in:
2026-07-21 18:28:29 +08:00
parent e9b96df758
commit f7efbfd4b7
2 changed files with 33 additions and 13 deletions

View File

@@ -6,7 +6,7 @@
</view>
<block v-if="value.template == 99">
<view class="second-category-btns">
<view class="second-category-btns" :style="oneCategoryHeight > 0 ? { height: oneCategoryHeight + 'px' } : {}">
<view class="second-category-btn"
v-for="(one, oneIndex) in category.child_list"
:key="oneIndex"
@@ -516,6 +516,10 @@ export default {
currentOneCategory: {
type: Object,
default: null
},
oneCategoryHeight: {
type: Number,
default: 0
}
},
mixins: [DiyMinx],
@@ -2388,17 +2392,12 @@ export default {
.second-category-btns {
display: flex;
flex-wrap: wrap;
height: 96rpx;
box-sizing: border-box;
align-items: center;
// #ifdef H5
padding: 0rpx 10rpx 0rpx 24rpx;
// #endif
// #ifndef H5
padding: 0rpx 20rpx 0rpx;
// #endif
justify-content: flex-start;
padding: 20rpx 20rpx 20rpx 24rpx;
background: #fff;
border-bottom: 1rpx solid #f0f0f0;
box-sizing: border-box;
.second-category-btn {
padding: 10rpx 24rpx;