Vuetify - Layout problem for v-data-table

微笑、不失礼 提交于 2019-12-06 16:27:59

Updated Answer:

The data table has a fixed height, and is not flexible.

To work around that issue, add some explicit flex to your code in these 2 containers:

<v-app id="inspire">
    <v-container fill-height>
      <v-layout column fill-height>
        <v-layout row style='flex: 1 1 50%; overflow: hidden'>
...
        <v-layout row style='flex: 1 1 50%; overflow: hidden'>

Then allow the data table's parent card to scroll.

<v-card height="100%" style='overflow:auto'>

Here is a codepen. https://codepen.io/Flamenco/pen/jQbgpG

Per my previous answer, you can also set the size of the the v-data-table by using style/height, style/max-height, or by setting the max displayed rows on the component.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!