fix: table嵌套在form以及affixHeader模式下自适应问题修复 (#8741)

Co-authored-by: wanglinfang <wanglinfang@baidu.com>
This commit is contained in:
wanglinfang2014 2023-11-15 14:19:51 +08:00 committed by GitHub
parent 515a978054
commit 124c096801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -666,6 +666,7 @@
flex: 1;
flex-wrap: wrap;
font-size: var(--fontSizeLg);
min-width: 0;
.#{$ns}ColorPicker {
> input {

View File

@ -2124,6 +2124,7 @@ export class Table extends React.PureComponent<TableProps, TableState> {
return;
}
this.syncTableWidth();
this.initTableWidth();
}

View File

@ -1302,6 +1302,7 @@ export default class Table extends React.Component<TableProps, object> {
if (this.resizeLine) {
return;
}
this.props.store.syncTableWidth();
this.props.store.initTableWidth();
this.handleOutterScroll();
callback && setTimeout(callback, 20);