1 | import React from 'react';
|
2 | import throttleByAnimationFrame from '../_util/throttleByAnimationFrame';
|
3 | export interface AffixProps {
|
4 |
|
5 | offsetTop?: number;
|
6 |
|
7 | offsetBottom?: number;
|
8 | style?: React.CSSProperties;
|
9 |
|
10 | onChange?: (affixed?: boolean) => void;
|
11 |
|
12 | target?: () => Window | HTMLElement | null;
|
13 | prefixCls?: string;
|
14 | className?: string;
|
15 | rootClassName?: string;
|
16 | children: React.ReactNode;
|
17 | }
|
18 | export interface AffixRef {
|
19 | updatePosition: ReturnType<typeof throttleByAnimationFrame>;
|
20 | }
|
21 | declare const Affix: React.ForwardRefExoticComponent<AffixProps & React.RefAttributes<AffixRef>>;
|
22 | export default Affix;
|