2.12.0
win10
2.6.10
https://jsfiddle.net/w54nto1y/
在el-table标签中同时设置
:show-header="false"
和
max-header="120px"
,在console中会有报错
[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'querySelector' of undefined"
不报错,隐藏表头时,设置高度不会再减去表头的高度
似乎是因为找不到表头所以报错
Translation of this issue:
2.12.0
Win10
2.6.10
Https://jsfiddle.net/w54nto1y/
Simultaneously set in the `el-table'tag
show-header= "false"
and
max-header= "120 px"
There will be an error in console
[Vue warn]: Error in nextTick: "TypeError: Cannot read property'query Selector'of undefined"
No error reporting. When hiding the header, the height of the header will not be subtracted from the height of the header.
It seems that the error was caused by the missing header.
Reproduced. Any maintainer?
Hi, I am also facing this issue.
the bug is due to this line https://github.com/ElemeFE/element/blob/90c5d74fd3c18f75628fc20cae4cdbad7e1591b8/packages/table/src/table-layout.js#L100
the same issue faced
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Hi, I am also facing this issue.
the bug is due to this line https://github.com/ElemeFE/element/blob/90c5d74fd3c18f75628fc20cae4cdbad7e1591b8/packages/table/src/table-layout.js#L100