From 2b7f5fed4b715cd5da4e2543ff132b3a30e2b197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Sat, 19 Oct 2019 00:59:14 +0800 Subject: [PATCH] save function use static (#379) --- src/Table.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Table.tsx b/src/Table.tsx index 2d3ebd58d..19b01ea66 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -439,6 +439,10 @@ class Table extends React.Component, TableState this[name] = node; }; + saveTableNodeRef = (node: HTMLDivElement) => { + this.tableNode = node; + }; + renderMainTable() { const { scroll, prefixCls } = this.props; const isAnyColumnsFixed = this.columnManager.isAnyColumnsFixed(); @@ -575,7 +579,7 @@ class Table extends React.Component, TableState this.expander = expander; return (