diff --git a/doric-js/src/widget/input.ts b/doric-js/src/widget/input.ts index 57a0bbae..09c8e133 100644 --- a/doric-js/src/widget/input.ts +++ b/doric-js/src/widget/input.ts @@ -32,6 +32,9 @@ export class Input extends View { @Property hintText?: string + + @Property + inputType?: InputType @Property hintTextColor?: Color @@ -71,6 +74,18 @@ export class Input extends View { } } +export enum InputType{ + Default = 0, + + Number = 1, + + NumberSigned = 2, + + Alphabet = 3, + + Phone = 4, +} + export function input(config: Partial) { const ret = new Input ret.layoutConfig = layoutConfig().just()