最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to create scrollable v-list in vuetify? - Stack Overflow

programmeradmin17浏览0评论

I have created v-list in flex layout and the v-list fill the remaining space in horizontally in column. But if the list contains lots of element which is total height is bigger than column height then the list sticking out. I have tried to add max-height and fix height to the v-list, but then the list items sticking out from wrapper v-list. And I have tried to add v-scroll but that haven't helped.

So how can I create v-list which will be scrollable when the list has more items than can be appear in div?

I have created v-list in flex layout and the v-list fill the remaining space in horizontally in column. But if the list contains lots of element which is total height is bigger than column height then the list sticking out. I have tried to add max-height and fix height to the v-list, but then the list items sticking out from wrapper v-list. And I have tried to add v-scroll but that haven't helped.

So how can I create v-list which will be scrollable when the list has more items than can be appear in div?

Share Improve this question edited Jun 12, 2020 at 15:19 Boussadjra Brahim 1 asked Jul 31, 2019 at 8:10 ZeroProcessZeroProcess 1,2212 gold badges12 silver badges23 bronze badges 2
  • which version of vuetify you're working with? – Boussadjra Brahim Commented Jul 31, 2019 at 8:22
  • version number is 1.5.5 – ZeroProcess Commented Jul 31, 2019 at 8:43
Add a comment  | 

1 Answer 1

Reset to default 16

Try to add the following CSS rules :

.v-list{
  height:200px;/* or any height you want */
  overflow-y:auto
}

check this pen to see the demo

发布评论

评论列表(0)

  1. 暂无评论