This commit is contained in:
tracy 2020-06-12 17:57:48 +08:00 committed by osborn
parent 8e8999dd7a
commit b36ab8f95b

View File

@ -7,6 +7,7 @@ export declare class Input extends View {
textColor?: Color;
textSize?: number;
hintText?: string;
inputType?: InputType;
hintTextColor?: Color;
multiline?: boolean;
textAlignment?: Gravity;
@ -18,4 +19,11 @@ export declare class Input extends View {
requestFocus(context: BridgeContext): Promise<any>;
releaseFocus(context: BridgeContext): Promise<any>;
}
export declare enum InputType {
Default = 0,
Number = 1,
NumberSigned = 2,
Alphabet = 3,
Phone = 4
}
export declare function input(config: Partial<Input>): Input;