This commit is contained in:
tracy 2020-06-12 18:02:44 +08:00 committed by osborn
parent b36ab8f95b
commit ed10472f87

View File

@ -33,6 +33,9 @@ export class Input extends View {
@Property @Property
hintText?: string hintText?: string
@Property
inputType?: InputType
@Property @Property
hintTextColor?: Color 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<Input>) { export function input(config: Partial<Input>) {
const ret = new Input const ret = new Input
ret.layoutConfig = layoutConfig().just() ret.layoutConfig = layoutConfig().just()