()
| 195 | |
| 196 | // judge if has scroll-Y bar |
| 197 | updateScrollY() { |
| 198 | this.setState((state) => { |
| 199 | const { bodyWrapper } = this.table; |
| 200 | const { fixedBodyHeight } = state; |
| 201 | |
| 202 | const body = bodyWrapper.querySelector('.el-table__body'); |
| 203 | const scrollY = body.offsetHeight > fixedBodyHeight; |
| 204 | |
| 205 | return { |
| 206 | scrollY |
| 207 | }; |
| 208 | }); |
| 209 | } |
| 210 | |
| 211 | render() { |
| 212 | return ( |
no outgoing calls
no test coverage detected