(preProps: TableLayoutProps)
| 55 | } |
| 56 | |
| 57 | componentDidUpdate(preProps: TableLayoutProps) { |
| 58 | if ( |
| 59 | this.isPropChanged('columns', preProps) |
| 60 | || this.isPropChanged('style', preProps) |
| 61 | || this.isPropChanged('className', preProps) |
| 62 | ) { |
| 63 | this.scheduleLayout(); |
| 64 | return; |
| 65 | } |
| 66 | |
| 67 | const shouldUpdateHeight = [ |
| 68 | 'height', |
| 69 | 'maxHeight', |
| 70 | 'data', |
| 71 | 'store.expandingRows', |
| 72 | 'expandRowKeys', |
| 73 | 'showSummary', |
| 74 | 'summaryMethod', |
| 75 | 'sumText', |
| 76 | ].some(key => this.isPropChanged(key, preProps)); |
| 77 | if (shouldUpdateHeight) { |
| 78 | this.updateHeight(); |
| 79 | this.updateScrollY(); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | componentWillUnmount() { |
| 84 | removeResizeListener(this.el, this.resizeListener) |
nothing calls this directly
no test coverage detected