Skip to content

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

@panhezeng

Description

@panhezeng

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?

没有隐藏行。

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions