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;