Commit bc91eedb authored by zhangwenshuai's avatar zhangwenshuai

update minWidth

parent 9988d5e9
......@@ -230,8 +230,8 @@ export default class AirTable extends Component<TableProps, TableState> {
onResizeWidthStart = (e) => {
const originLeft = (this.tableContainer && this.tableContainer.getBoundingClientRect().x) || 0;
if (this.widthHandleWrapper && this.widthHandle) {
this.widthHandleWrapper.style.display = 'block';
this.widthHandle.style.left = `${e.x - originLeft}px`;
this.widthHandleWrapper.style.display = 'block';
}
};
// 列伸缩结束
......@@ -291,6 +291,7 @@ export default class AirTable extends Component<TableProps, TableState> {
}}
/>
}
minConstraints={[100, 100]}
onResize={this.onResizeWidth}
onResizeStart={this.onResizeWidthStart}
onResizeStop={this.onResizeWidthStop.bind(this, columnName)}
......
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