问题描述

无法显示滚动条

解决方案

检查父元素的高度,确保其高度小于子元素的高度

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<div
v-if="root && root.children.length > 0"
h-full
overflow-y-auto>
<ul
w-80
h-fit
mt-5
p2>
<FileItem
:file-info="root"
v-for="root in root.children"
:isRoot="true" />
</ul>
</div>