UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

49 lines (48 loc) 1.61 kB
import * as React from 'react'; import { Component } from 'react'; export interface ScrollNumberProps { prefixCls?: string; className?: string; count?: string | number | null; component?: string; onAnimated?: Function; style?: React.CSSProperties; title?: string | number | null; } export interface ScrollNumberState { animateStarted?: boolean; count?: string | number | null; } export default class ScrollNumber extends Component<ScrollNumberProps, ScrollNumberState> { static defaultProps: { prefixCls: string; count: null; onAnimated(): void; }; lastCount: any; constructor(props: ScrollNumberProps); getPositionByNum(num: number, i: number): number; componentWillReceiveProps(nextProps: ScrollNumberProps): void; renderNumberList(position: number): React.ReactElement<any>[]; renderCurrentNumber(num: number, i: number): React.DetailedReactHTMLElement<{ className: string; style: { transition: string | undefined; msTransform: string; WebkitTransform: string; transform: string; }; key: number; }, HTMLElement>; renderNumberElement(): string | number | React.DetailedReactHTMLElement<{ className: string; style: { transition: string | undefined; msTransform: string; WebkitTransform: string; transform: string; }; key: number; }, HTMLElement>[] | null | undefined; render(): React.ComponentElement<any, React.Component<any, any, any>>; }