mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-09 04:46:52 +10:00
should use assign in ts
This commit is contained in:
@@ -3,6 +3,7 @@ import * as ReactDOM from 'react-dom';
|
||||
import addEventListener from 'rc-util/lib/Dom/addEventListener';
|
||||
import classNames from 'classnames';
|
||||
import warning from 'warning';
|
||||
import assign from 'object-assign';
|
||||
|
||||
function getScroll(w, top) {
|
||||
let ret = w[`page${top ? 'Y' : 'X'}Offset`];
|
||||
@@ -133,7 +134,7 @@ export default class Affix extends React.Component<AffixProps, any> {
|
||||
'ant-affix': this.state.affixStyle,
|
||||
});
|
||||
|
||||
const props = { ...this.props };
|
||||
const props = assign({}, this.props);
|
||||
delete props.offsetTop;
|
||||
delete props.offsetBottom;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user