From d2b59938b864b47c0d5748da47b404edb60a5bdb Mon Sep 17 00:00:00 2001 From: Wei Zhu Date: Wed, 22 Nov 2017 12:16:19 +0800 Subject: [PATCH] Fix code style --- components/affix/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/affix/index.tsx b/components/affix/index.tsx index f61b8ba5bb..d7eab60700 100644 --- a/components/affix/index.tsx +++ b/components/affix/index.tsx @@ -89,13 +89,13 @@ export default class Affix extends React.Component { [key: string]: any; } = {}; - private fixedNode: HTMLElement; - state: AffixState = { affixStyle: undefined, placeholderStyle: undefined, }; + private fixedNode: HTMLElement; + setAffixStyle(e: any, affixStyle: React.CSSProperties | null) { const { onChange = noop, target = getDefaultTarget } = this.props; const originalAffixStyle = this.state.affixStyle;