From da789d0a5c69e80afe37776a5f6a7d80867f78e6 Mon Sep 17 00:00:00 2001 From: zombiej Date: Sat, 19 Oct 2019 00:52:18 +0800 Subject: [PATCH] save function use static --- src/Table.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Table.tsx b/src/Table.tsx index 77bebe044..1fb000685 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -435,6 +435,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(); @@ -571,7 +575,7 @@ class Table extends React.Component, TableState this.expander = expander; return (