feat:android input add maxLength
This commit is contained in:
@@ -48,6 +48,9 @@ export class Input extends View {
|
||||
@Property
|
||||
onFocusChange?: (focused: boolean) => void
|
||||
|
||||
@Property
|
||||
maxLength?: number
|
||||
|
||||
getText(context: BridgeContext) {
|
||||
return this.nativeChannel(context, 'getText')() as Promise<string>
|
||||
}
|
||||
@@ -75,4 +78,4 @@ export function input(config: Partial<Input>) {
|
||||
Reflect.set(ret, key, Reflect.get(config, key, config), ret)
|
||||
}
|
||||
return ret
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user