chore:现在左侧一级题的高度会根据字数自动调节,右侧二级标题的白色背景高度会随着左侧选中项的高度自动改变,保持两侧高度一致。
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user