input
This commit is contained in:
parent
b36ab8f95b
commit
ed10472f87
@ -33,6 +33,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<Input>) {
|
||||
const ret = new Input
|
||||
ret.layoutConfig = layoutConfig().just()
|
||||
|
Reference in New Issue
Block a user