@jdcfe/yep-react
Version:
一套移动端的React组件库
45 lines (44 loc) • 1.23 kB
TypeScript
import * as React from 'react';
export interface StepperProps {
buttonAdd?: React.ReactElement;
buttonReduce?: React.ReactElement;
className?: string;
max: number;
min: number;
onChange: (value: number) => void;
onLess: (value: number) => void;
onGreat: () => void;
prefixCls?: string;
readonly: boolean;
step: number;
style?: React.CSSProperties;
value: number;
}
export interface ButtonProps {
children?: any;
disabled: boolean;
onClick: () => void;
}
declare class Stepper extends React.PureComponent<StepperProps, any> {
static defaultProps: {
className: string;
max: number;
min: number;
onChange: () => void;
onLess: () => void;
onGreat: () => void;
prefixCls: string;
readonly: boolean;
step: number;
style: {};
value: number;
};
handleInput: (e: React.ChangeEvent<HTMLInputElement>) => void;
handleReduce: () => void;
handleAdd: () => void;
handleBlur: () => void;
renderButtonAdd: () => React.FunctionComponentElement<any>;
renderButtonReduce: () => React.FunctionComponentElement<any>;
render(): JSX.Element;
}
export default Stepper;