-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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] Conditional Judgment Inadequate #17256
Comments
Translation of this issue: Element UI version2.12.0 OS/Browsers versionWin10 Vue version2.6.10 Reproduction LinkSteps to reproduceNull What is Expected?Null What is actually happening?Element/packages/table/src/table-layout.js Line 100 in 45cb58a When this. showHeader = false, header Wrapper = undefined, 100 lines report errors Ninety-eight 100 const headerTrElm = headerWrapper. querySelector ('.el-table__header tr'); |
Issues without a valid reproduction link will be closed directly. |
|
这个issue跟有没有样例有什么关系? |
Element UI version
2.12.0
OS/Browsers version
win10
Vue version
2.6.10
Reproduction Link
https://jsfiddle.net/null
Steps to reproduce
null
What is Expected?
null
What is actually happening?
element/packages/table/src/table-layout.js
Line 100 in 45cb58a
const headerTrElm = headerWrapper.querySelector('.el-table__header tr');
当this.showHeader = false, headerWrapper = undefined 时,100行报错
97 if (this.showHeader && !headerWrapper) return;
98
99 // fix issue (#16956)
100 const headerTrElm = headerWrapper.querySelector('.el-table__header tr');
101 const noneHeader = this.headerDisplayNone(headerTrElm);
The text was updated successfully, but these errors were encountered: