[Bug Report] table组件如果高度设置为空字符串,会导致报错
Open
stale
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.13.2
### OS/Browsers version
win10
### Vue version
3.0.1
### Reproduction Link
https://codepen.io/2125zyrc/pen/XWKKvZQ
### Steps to reproduce
1.属性props height 不加默认值或者默认值为空字子串 会报错
2.源码 table-layout文件中 setHeight方法中第68行:
else if (typeof value === 'string') {
//如果 height设置一个空字符串 代码会执行到这里 导致报错
el.style[prop] = value;
this.updateElsHeight();
}
### What is Expected?
属性props height 不加默认值 或者为空字符串时 可以不报错 table的高度可以根据内容自动撑开
### What is actually happening?
属性props height 不加默认值 或者为空字符串时 可以不报错 table的高度可以根据内容自动撑开
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.