From ed10472f8738baedaa6df8c053e1141b48c26bcd Mon Sep 17 00:00:00 2001 From: tracy Date: Fri, 12 Jun 2020 18:02:44 +0800 Subject: [PATCH] input --- doric-js/src/widget/input.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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()