antd
Version:
An enterprise-class UI design language and React-based implementation
37 lines (36 loc) • 1.17 kB
TypeScript
/// <reference types="react" />
import React from 'react';
import { Component } from 'react';
export interface ScrollNumberProps {
prefixCls?: string;
className?: string;
count?: string | number;
component?: string;
onAnimated?: Function;
style?: React.CSSProperties;
title?: string | number;
}
export default class ScrollNumber extends Component<ScrollNumberProps, any> {
static defaultProps: {
prefixCls: string;
count: null;
onAnimated(): void;
};
lastCount: any;
constructor(props: any);
getPositionByNum(num: any, i: any): any;
componentWillReceiveProps(nextProps: any): void;
renderNumberList(position: any): React.ReactElement<any>[];
renderCurrentNumber(num: any, i: any): React.DetailedReactHTMLElement<{
className: string;
style: {
transition: string;
msTransform: string;
WebkitTransform: string;
transform: string;
};
key: any;
}, HTMLElement>;
renderNumberElement(): any;
render(): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
}