mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
parent
c3949bb9b1
commit
09d00f1f30
@ -123,8 +123,12 @@ export default class Affix extends React.Component {
|
||||
'ant-affix': this.state.affixStyle,
|
||||
});
|
||||
|
||||
const props = { ...this.props };
|
||||
delete props.offsetTop;
|
||||
delete props.offsetBottom;
|
||||
|
||||
return (
|
||||
<div {...this.props}>
|
||||
<div {...props}>
|
||||
<div className={className} ref="fixedNode" style={this.state.affixStyle}>
|
||||
{this.props.children}
|
||||
</div>
|
||||
|
@ -14,6 +14,7 @@ export default function Col(props) {
|
||||
} else if (typeof props[size] === 'object') {
|
||||
sizeProps = props[size] || {};
|
||||
}
|
||||
delete others[size];
|
||||
sizeClassObj = {
|
||||
...sizeClassObj,
|
||||
[`ant-col-${size}-${sizeProps.span}`]: sizeProps.span !== undefined,
|
||||
|
Loading…
Reference in New Issue
Block a user