feat:android input add maxLength

This commit is contained in:
刘涛
2020-04-30 16:36:28 +08:00
committed by osborn
parent b169f581d3
commit b7da580842
11 changed files with 50 additions and 4 deletions

View File

@@ -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
}
}