jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/es/Input/props.d.ts

55 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-12-01 11:56:54 +00:00
import { IBaseProps } from '../_util/base';
export type InputType = 'text' | 'number' | 'idcard' | 'digit'
/**
*
*/
| 'numberpad' | 'digitpad' | 'idcardpad'
/**
*
*/
| 'safe-password' | 'nickname';
2024-11-10 07:01:22 +00:00
/**
* @description
*/
export interface InputProps extends IBaseProps {
2024-12-01 11:56:54 +00:00
type?: InputType;
value?: string;
defaultValue: string;
placeholder: string;
placeholderClassName: string;
placeholderStyle: string;
allowClear: boolean;
enableNative: boolean;
confirmType: string;
confirmHold: string;
controlled: boolean;
alwaysSystem: boolean;
selectionStart: number;
selectionEnd: number;
cursor: number;
maxLength?: number;
inputClassName?: string;
inputStyle: string;
password?: boolean;
prefix?: string;
disabled?: boolean;
focusClassName?: string;
suffix?: string;
focus?: boolean;
/**
* @description
*/
name?: string;
focusStyle?: string;
/**
* @description type number, digit, idcard
* @default false
*/
randomNumber?: boolean;
onChange?: (value: string, e: any) => void;
onBlur?: (value: string, e: any) => void;
onFocus?: (value: string, e: any) => void;
onConfirm?: (value: string, e: any) => void;
2024-11-10 07:01:22 +00:00
}
2024-12-01 11:56:54 +00:00
export declare const InputDefaultProps: InputProps;