提交
This commit is contained in:
78
甲情_甲意/miniprogram/node_modules/antd-mini/es/Stepper/props.d.ts
generated
vendored
Normal file
78
甲情_甲意/miniprogram/node_modules/antd-mini/es/Stepper/props.d.ts
generated
vendored
Normal file
@ -0,0 +1,78 @@
|
||||
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;
|
||||
/**
|
||||
* @description onDisabledTap
|
||||
*/
|
||||
onDisabledTap?: (e: any) => void;
|
||||
}
|
||||
export declare const StepperDefaultProps: Partial<IStepperProps>;
|
Reference in New Issue
Block a user