Input
Single-line text input, with multiple field types and Bridge focus commands.
Examples
Basic
API
Props
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
type | Input type | text | number | digit | idcard | text |
value | Current value | string | - |
placeholder | Placeholder text | string | - |
maxlength | Maximum length | number | 140 |
disabled | Whether disabled | boolean | false |
password | Password input | boolean | false |
focus | Auto-focus | boolean | false |
confirm-type | Label for the keyboard return key | string | done |
Events
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
input | Fired on keyboard input | { value, cursor } | - |
focus | Fired on focus | { value } | - |
blur | Fired on blur | { value } | - |
confirm | Fired when the user confirms | { value } | - |