el-table table setting scroll bar

el-table disposed above a certain height are two methods scroll bar, set the height and max-height can scroll bar.

1, to set the height property table 250, the table is fixed 300px so high.

<el-table
    :data="tableData"
    height="250"
    border
    style="width: 100%">

 

2, he changed to max-height setting of 300, 250 beyond the table data. If only one data table, and the height does not exceed 300. The table on the actual height values.

<el-table
    :data="tableData"
   max-height="250"
    border
    style="width: 100%">

 

Guess you like

Origin www.cnblogs.com/chip-gan/p/12462821.html