Element: can't set height attribute as String in table component

Created on 26 Feb 2017  ·  3Comments  ·  Source: ElemeFE/element

table component

version: 1.2.1

  • Table Attributes: Height can't set as String ( table's height will decrease from height(calc(100% - 60px)) to 0px )
<el-table
      :data="newUserData"
      height="tableHeight"
      border
.table-wrapper .el-table{
    height: calc(100% - 60px);

Most helpful comment

Have you solved it? I'm suffering this problem as well. I want to make the page responsive rather than fixed 'px'.

All 3 comments

Have you solved it? I'm suffering this problem as well. I want to make the page responsive rather than fixed 'px'.

@ultraN it seems that there aren't officials solution, but...

.el-table {
        height: calc(100% - 136px)!important;
}

anyway, it works for me

@fliu2476 why close the issue
when use max-height by string

is also can't seeting the set

and in the source code, i do not find some code to handle the height param by string

Was this page helpful?
0 / 5 - 0 ratings