From 500126e7b459a2d6bf024eb6a69c80960a20a2d0 Mon Sep 17 00:00:00 2001 From: RaoHai Date: Fri, 25 Nov 2016 14:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=20Anchor=20=E5=8A=A8=E7=94=BB=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - close #3832 - 点击后给样式就行了, 不要把动画删掉 --- components/anchor/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/anchor/index.tsx b/components/anchor/index.tsx index fa1bcc2349fb..a0b07954e6b6 100644 --- a/components/anchor/index.tsx +++ b/components/anchor/index.tsx @@ -83,11 +83,9 @@ export default class Anchor extends React.Component { } 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; }); }