Skip to content

Commit

Permalink
chore(Table): add inline style
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Jan 8, 2020
1 parent 2471fee commit b36da3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/table/fixed/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ export default class FixedHeader extends React.Component {
this.context.getNode('header', findDOMNode(this));
}

// 这里的 style={{overflow: 'unset'}} 可以删掉,只是为了解决用户js升级但是样式没升级的情况
render() {
const { prefix, className, colGroup, ...others } = this.props;
return (
<div className={className}>
<div className={`${prefix}table-header-inner`}>
<div
className={`${prefix}table-header-inner`}
style={{ overflow: 'unset' }}
>
<table>
{colGroup}
<HeaderComponent {...others} prefix={prefix} />
Expand Down

0 comments on commit b36da3b

Please sign in to comment.