mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
test: remove unused var
This commit is contained in:
parent
83022a4cff
commit
ce5375f95c
@ -3,7 +3,6 @@ import * as ReactDOM from 'react-dom';
|
|||||||
import * as PropTypes from 'prop-types';
|
import * as PropTypes from 'prop-types';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import addEventListener from 'rc-util/lib/Dom/addEventListener';
|
import addEventListener from 'rc-util/lib/Dom/addEventListener';
|
||||||
import raf from 'raf';
|
|
||||||
import Affix from '../affix';
|
import Affix from '../affix';
|
||||||
import AnchorLink from './AnchorLink';
|
import AnchorLink from './AnchorLink';
|
||||||
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
|
||||||
@ -162,7 +161,7 @@ export default class Anchor extends React.Component<AnchorProps, AnchorState> {
|
|||||||
if (this.scrollEvent) {
|
if (this.scrollEvent) {
|
||||||
this.scrollEvent.remove();
|
this.scrollEvent.remove();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
handleScrollTo = (link: string) => {
|
handleScrollTo = (link: string) => {
|
||||||
const { offsetTop, getContainer, targetOffset } = this.props as AnchorDefaultProps;
|
const { offsetTop, getContainer, targetOffset } = this.props as AnchorDefaultProps;
|
||||||
|
Loading…
Reference in New Issue
Block a user