1 |
|
2 | import React from 'react';
|
3 | import BaseComponent, { PropsType as BasePropsType, StateType as BaseStateType } from './base';
|
4 | export interface PropsType extends BasePropsType {
|
5 | className?: any;
|
6 | focusOnUpDown?: boolean;
|
7 | prefixCls?: string;
|
8 | tabIndex?: number;
|
9 | upHandler?: React.ReactNode;
|
10 | downHandler?: React.ReactNode;
|
11 | formatter?: (v: any) => void;
|
12 | }
|
13 | export interface StateType extends BaseStateType {
|
14 | }
|
15 | export default class InputNumber extends BaseComponent<PropsType, StateType> {
|
16 | static defaultProps: {
|
17 | focusOnUpDown: boolean;
|
18 | useTouch: boolean;
|
19 | prefixCls: string;
|
20 | max: number;
|
21 | min: number;
|
22 | step: number;
|
23 | style: {};
|
24 | onChange: () => void;
|
25 | onFocus: () => void;
|
26 | onBlur: () => void;
|
27 | parser: (input: string) => string;
|
28 | };
|
29 | start: any;
|
30 | end: any;
|
31 | input: any;
|
32 | componentDidMount(): void;
|
33 | componentWillUpdate(): void;
|
34 | componentDidUpdate(): void;
|
35 | setInput: (input: any) => void;
|
36 | getRatio(e: any): number;
|
37 | getValueFromEvent(e: any): any;
|
38 | focus(): void;
|
39 | formatWrapper(num: any): any;
|
40 | render(): JSX.Element;
|
41 | }
|