From b36ab8f95b4362fe44d67b24f0612be0be9e04a2 Mon Sep 17 00:00:00 2001 From: tracy Date: Fri, 12 Jun 2020 17:57:48 +0800 Subject: [PATCH] input ts --- doric-js/lib/src/widget/input.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doric-js/lib/src/widget/input.d.ts b/doric-js/lib/src/widget/input.d.ts index 2a484aad..3ecbd21f 100644 --- a/doric-js/lib/src/widget/input.d.ts +++ b/doric-js/lib/src/widget/input.d.ts @@ -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; releaseFocus(context: BridgeContext): Promise; } +export declare enum InputType { + Default = 0, + Number = 1, + NumberSigned = 2, + Alphabet = 3, + Phone = 4 +} export declare function input(config: Partial): Input;