[new feature] PasswordInput: add mask prop (#2796)
This commit is contained in:
@@ -49,12 +49,23 @@ export default {
|
||||
}
|
||||
```
|
||||
|
||||
#### Without mask
|
||||
|
||||
```html
|
||||
<van-password-input
|
||||
:value="value"
|
||||
:mask="false"
|
||||
@focus="showKeyboard = true"
|
||||
/>
|
||||
```
|
||||
|
||||
### API
|
||||
|
||||
| Attribute | Description | Type | Default |
|
||||
|------|------|------|------|
|
||||
| value | Password value | `String` | `''` |
|
||||
| length | Maxlength of password | `Number` | `6` |
|
||||
| mask | Whether to mask value | `Boolean` | `true` |
|
||||
| info | Bottom info | `String` | - |
|
||||
| error-info | Bottom error info | `String` | - |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user