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

cannot set the table's max-height through the style name #5335

Closed
mcdongWang opened this issue Jun 13, 2017 · 8 comments
Closed

cannot set the table's max-height through the style name #5335

mcdongWang opened this issue Jun 13, 2017 · 8 comments

Comments

@mcdongWang
Copy link

Element UI version

1.3.6

OS/Browsers version

MacOS 10.12 / Chrome 59.0

Vue version

2.3.4

Reproduction Link

https://jsfiddle.net/pj71jkyw/306/

Steps to reproduce

https://jsfiddle.net/pj71jkyw/306/

What is Expected?

可以识别max-height 的string类型的属性 和 calc属性

What is actually happening?

没有识别max-height

@element-bot element-bot changed the title [Bug Report] 无法通过样式名去设置table的max-height [Bug Report] cannot set the table's max-height through the style name Jun 13, 2017
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

1.3.6

OS/Browsers version

MacOS 10.12 / Chrome 59

Vue version

2.3.4

Reproduction Link

https://jsfiddle.net/pj71jkyw/306/

Steps to reproduce

Https://jsfiddle.net/pj71jkyw/306/

What is Expected?

You can identify the attributes of the string type and the calc attribute of the max-height

What is actually happening?

No identification max-height

@mcdongWang
Copy link
Author

@liril-net 这就是我说的#4976问题的一部分

@mcdongWang
Copy link
Author

没人来解答一下么?

@elfman
Copy link
Contributor

elfman commented Jun 20, 2017

@mcdongWang 你要使用max-height,可以自己用CSS定义啊,为啥要写到template里?例如

  tbody > tr.el-table__row { max-height: calc(100vh - 200px); }

@mcdongWang
Copy link
Author

@elfman 文档里写了支持string啊? 难道不是指定class么

@furybean
Copy link
Contributor

furybean commented Jan 17, 2018

@mcdongWang 使用方式有问题,请参考这里:https://jsfiddle.net/pj71jkyw/759/

@furybean furybean changed the title [Bug Report] cannot set the table's max-height through the style name cannot set the table's max-height through the style name Jan 17, 2018
@mcdongWang
Copy link
Author

@furybean 连接404了

@furybean
Copy link
Contributor

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

No branches or pull requests

4 participants