Skip to content

问题描述

无法显示滚动条

解决方案

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

html
<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>

Last updated: