抽屉不滚动bug
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view>
|
||||
<uni-drawer ref="showRight" mode="right" :width="320" @change="changeD($event,'showRight')">
|
||||
|
||||
<view class="close">
|
||||
<view class="zhan" style="width: 100%;"></view>
|
||||
<u-icon name="close" @click="closeDrawer('showRight')" color="#2979ff" size="28"></u-icon>
|
||||
@@ -8,10 +9,11 @@
|
||||
<view class="proTitle">
|
||||
<text>请选择课程分类</text>
|
||||
</view>
|
||||
<scroll-view class="warp" scroll-y="true" style="max-height: 80vh;">
|
||||
<uni-collapse accordion v-if="treeList.length > 0" @change="collapseChange">
|
||||
<uni-collapse-item v-for="(item, index) in treeList" :key="index" :title="item.title"
|
||||
:show-animation="true">
|
||||
<view class="content">
|
||||
<view class="content" >
|
||||
<!-- <text class="text">{{item.title}}</text> -->
|
||||
<view class="sub1List">
|
||||
<view class="item leve2" @click.stop="clickCourseInfo(item)" v-if="item.isLast == 1">
|
||||
@@ -30,7 +32,7 @@
|
||||
<view :class="['item', 'leve4']"
|
||||
v-for="(item3, index3) in item2.children" :key="index3"
|
||||
@click.stop="clickCourseInfo(item3)">
|
||||
<text class="textss">{{item3.title}}33</text>
|
||||
<text class="textss">{{item3.title}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -40,6 +42,7 @@
|
||||
</view>
|
||||
</uni-collapse-item>
|
||||
</uni-collapse>
|
||||
</scroll-view>
|
||||
</uni-drawer>
|
||||
</view>
|
||||
</template>
|
||||
@@ -103,12 +106,19 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
// ::v-deep uni-drawer{ height: 50vh !important;
|
||||
// .uni-drawer__content{
|
||||
// overflow-y: scroll !important;
|
||||
// }
|
||||
// }
|
||||
.sub1List {
|
||||
background-color: #f7f7f7;
|
||||
// padding-left: 20rpx;
|
||||
}
|
||||
|
||||
.content {
|
||||
|
||||
.item {
|
||||
background-color: #fff;
|
||||
line-height: 80rpx;
|
||||
|
||||
Reference in New Issue
Block a user