[new feature] PasswordInput: add mask prop (#2796)

This commit is contained in:
neverland
2019-02-19 16:52:01 +08:00
committed by GitHub
parent 519b5bf80a
commit f705c9be4c
6 changed files with 92 additions and 14 deletions
+11
View File
@@ -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` | - |