mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
parent
86f1fa030a
commit
72fad02024
@ -83,11 +83,9 @@ export default class Anchor extends React.Component<AnchorProps, any> {
|
||||
}
|
||||
|
||||
clickAnchorLink = (href, component) => {
|
||||
this.refs.ink.style.transition = 'top 0.01s ease-in-out';
|
||||
this._avoidInk = true;
|
||||
this.refs.ink.style.top = `${component.offsetTop + component.clientHeight / 2 - 4.5}px`;
|
||||
this.anchorHelper.scrollTo(href, getDefaultTarget, () => {
|
||||
this.refs.ink.style.transition = 'top 0.3s ease-in-out';
|
||||
this._avoidInk = false;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user