Skip to content

Commit

Permalink
fix: 修复容器宽度超过table时样式异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaMaid committed Dec 21, 2018
1 parent a575b95 commit f8b5ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class Table extends Component<ITableProps, ITableState> {
const scrollX = scroll!.x;
const width = typeof scrollX === 'boolean' && scrollX ? undefined : scrollX ? scrollX : undefined;
const style = fixedTitle ? {
width,
minWidth: width,
} : {};
return (
<table style={style}>
Expand All @@ -392,7 +392,7 @@ export class Table extends Component<ITableProps, ITableState> {
const scrollX = scroll!.x;
const width = typeof scrollX === 'boolean' && scrollX ? undefined : scrollX ? scrollX : undefined;
const style = fixedTitle ? {
width,
minWidth: width,
} : {};
return (
<table style={style}>
Expand Down

0 comments on commit f8b5ebb

Please sign in to comment.