naive-ui/demo/documentation/components/input/zhCN/password.demo.md

19 lines
212 B
Markdown
Raw Normal View History

2020-02-04 20:45:34 +08:00
# 密码
```html
<n-input
2020-09-28 12:36:42 +08:00
v-model:value="value"
2020-02-04 20:45:34 +08:00
type="password"
icon="md-key"
placeholder="密码"
:maxlength="8"
/>
```
```js
export default {
2020-10-22 12:12:11 +08:00
data () {
2020-02-04 20:45:34 +08:00
return {
value: null
}
}
}
```