From b59fdde2e37d8d8c3daab429e0e642e5329a87a0 Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Tue, 1 Sep 2020 14:18:13 +0800 Subject: [PATCH] props table width and height --- components/apolloTable/component/Table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index 9ff9e1c..c4fc55b 100644 --- a/components/apolloTable/component/Table.tsx +++ b/components/apolloTable/component/Table.tsx @@ -143,8 +143,8 @@ export default class AirTable extends Component { onResize = ({ width, height }: { width: number; height: number }) => { this.setState( { - tableWidth: width, - tableHeight: height, + tableWidth: this.props.width || width, + tableHeight: this.props.height || height, }, this.recomputeGridSize, ); -- 2.21.0