chore:99的微信小程序左侧一级标题的高度会根据字数自动调节,右侧二级标题的白色背景高度会随着左侧选中项的高度自动改变,保持两侧高度一致。
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</view>
|
||||
|
||||
<block v-if="value.template == 99">
|
||||
<view class="second-category-btns" :style="oneCategoryHeight > 0 ? { height: oneCategoryHeight + 'px' } : {}">
|
||||
<view class="second-category-btns" :style="oneCategoryHeightStyle">
|
||||
<view class="second-category-btn"
|
||||
v-for="(one, oneIndex) in category.child_list"
|
||||
:key="oneIndex"
|
||||
@@ -586,6 +586,12 @@ export default {
|
||||
*/
|
||||
isGroupedDisplay() {
|
||||
return this.value.template == 1 && this.value.level == 3;
|
||||
},
|
||||
oneCategoryHeightStyle() {
|
||||
if (this.oneCategoryHeight > 0) {
|
||||
return 'height:' + this.oneCategoryHeight + 'px';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user