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

[Bug Report] row-style property is invalid at initialization time. #14993

Closed
panhezeng opened this issue Apr 5, 2019 · 1 comment
Closed
Assignees

Comments

@panhezeng
Copy link
Contributor

Element UI version

2.7.2

OS/Browsers version

MAC OS 10.14 / Google Chrome 73

Vue version

2.6.10

Reproduction Link

https://codepen.io/panhezeng/pen/eoZVwW

Steps to reproduce

用官方最基本的示例就能重现。
设置:row-style="getRowStyle"
methods: {
// 每行的样式
getRowStyle({ row }) {
return { display: "none" };
}
}
没有隐藏行。看生成代码, tr上面出现了style,但是值为空。
2.7.0之前的版本是好的。

What is Expected?

设置:row-style="getRowStyle"
methods: {
// 每行的样式
getRowStyle({ row }) {
return { display: "none" };
}
}
隐藏行

What is actually happening?

没有隐藏行。

@element-bot element-bot changed the title [Bug Report] row-style属性失效了,在初始化的时候。 [Bug Report] row-style property is invalid at initialization time. Apr 5, 2019
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.7.2

OS/Browsers version

MAC OS 10.14 / Google Chrome 73

Vue version

2.6.10

Reproduction Link

https://codepen.io/panhezeng/pen/eoZVwW

Steps to reproduce

The most basic official examples can be reproduced.

Settings: row-style= "getRowStyle"
Methods: {

// Style of each line
GetRowStyle ({row}){

Return {display: `none'};
}

}
There are no hidden rows. Look at the generated code, <tr class="el-table__row" style="> tr has style above it, but the value is empty.

The version before 2.7.0 is good.

What is Expected?

Settings: row-style= "getRowStyle"
Methods: {

// Style of each line
GetRowStyle ({row}){

Return {display: `none'};
}

}
Hidden rows

What is actually happening?

There are no hidden rows.

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

4 participants