1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import { IBaseProps } from '../_util/base';
- /**
- * @description 步进器,用作增加或者减少当前数值。
- */
- export interface IStepperProps extends IBaseProps {
- /**
- * @description 输入框的值
- */
- value: number;
- /**
- * @description 最小值
- */
- min: number;
- /**
- * @description 最大值
- */
- max: number;
- /**
- * @description 每次加减的值
- * @default 1
- */
- step: number;
- /**
- * @description 输入框唤起键盘类型
- */
- type: 'number' | 'digit';
- /**
- * @description 计算精度,保留几位小数
- * https://github.com/ant-design/ant-design/issues/5998
- */
- precision: number;
- /**
- * @description 输入框类名
- */
- inputClassName: string;
- /**
- * @description 输入框样式
- */
- inputStyle: string;
- /**
- * @description 是否禁用
- * @default false
- */
- disabled?: boolean;
- /**
- * @description 输入框是否只读
- * @default false
- */
- inputReadOnly?: boolean;
- /**
- * @description 输入框初始值
- */
- defaultValue: number;
- focus?: boolean;
- /**
- *
- * @description onChange
- */
- onChange?: (value: number, e: any) => void;
- /**
- *
- * @description onConfirm
- */
- onConfirm?: (value: number, e: any) => void;
- /**
- * @description onFocus
- */
- onFocus?: (value: number, e: any) => void;
- /**
- * @description onBlur
- */
- onBlur?: (value: number, e: any) => void;
- }
- export declare const StepperDefaultProps: Partial<IStepperProps>;
|