1***@qq.com
1***@qq.com
  • 发布:2025-08-06 16:04
  • 更新:2025-08-06 16:04
  • 阅读:16

uni-collapse 折叠面板,多级嵌套时第三级高度异常,使用resize()方法也不行

分类:uni-app
<uni-collapse ref="year" v-model="activeYearNames" @change="lookYear">  
                        <uni-collapse-item :title="yearItem.year" v-for="(yearItem,yearIndex) in feeList"  
                            :key="yearItem.year" :name="yearItem.year">  
                            <uni-collapse ref="month" v-model="activeMonthNames" @change="lookMonth">  
                                <uni-collapse-item v-for="(monthItem,monthIndex) in yearItem.months" :key="monthItem.key"  
                                    :name="monthItem.key">  
                                    <template v-slot:title>  
                                        <view class="search_box2">  
                                            <view class="search_item">  
                                                <checkbox :value="monthItem.month" :checked="monthItem.checked"  
                                                    style="transform:scale(0.8)" :disabled="monthItem.disabled" />  
                                                <span>{{monthItem.month}}账单</span>  
                                            </view>  
                                            <span class="money">{{monthItem.monthSum}}</span>  
                                        </view>  
                                    </template>  
                                    <view class="content">  
                                        <view class="fee_list" v-for="(item,index ) in monthItem.data " :key="item.id">  
                                            <view class="fee_box">  
                                                <view class="fee_top">  
                                                    <span class="pub_spe">{{item.feeItem}}</span> <span  
                                                        class="money">¥{{handleScopeFormat(item.uncollected)}}</span>  
                                                </view>  
                                                <view class="period">  
                                                    缴费周期:{{item.startDate && item.endDate? item.startDate+'~'+item.endDate:'暂无' }}  
                                                </view>  
                                            </view>  
                                        </view>  
                                    </view>  
                                </uni-collapse-item>  
                            </uni-collapse>  
                        </uni-collapse-item>  
                    </uni-collapse>
2025-08-06 16:04 负责人:无 分享
已邀请:

要回复问题请先登录注册