Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't set height attribute as String in table component #3073

Closed
fliu2476 opened this issue Feb 26, 2017 · 3 comments
Closed

can't set height attribute as String in table component #3073

fliu2476 opened this issue Feb 26, 2017 · 3 comments

Comments

@fliu2476
Copy link

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);
@AnonymousArthur
Copy link

AnonymousArthur commented Mar 27, 2017

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

@fliu2476
Copy link
Author

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

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

anyway, it works for me

@mcdongWang
Copy link

mcdongWang commented Jun 13, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants