Commit b59fdde2 authored by zhangwenshuai's avatar zhangwenshuai

props table width and height

parent 8518b48c
...@@ -143,8 +143,8 @@ export default class AirTable extends Component<TableProps, TableState> { ...@@ -143,8 +143,8 @@ export default class AirTable extends Component<TableProps, TableState> {
onResize = ({ width, height }: { width: number; height: number }) => { onResize = ({ width, height }: { width: number; height: number }) => {
this.setState( this.setState(
{ {
tableWidth: width, tableWidth: this.props.width || width,
tableHeight: height, tableHeight: this.props.height || height,
}, },
this.recomputeGridSize, this.recomputeGridSize,
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment