Skip to content

Commit 519d172

Browse files
authored
docs: ✏️ PasswordInput 修复示例代码错误的问题 (#391)
1 parent 281e20f commit 519d172

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/component/password-input.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
```html
1212
<!-- 密码输入框 -->
13-
<wd-password-input :value="value" :focused="showKeyboard" @focus="showKeyboard = true" />
13+
<wd-password-input v-model="value" :focused="showKeyboard" @focus="showKeyboard = true" />
1414
<!-- 数字键盘 -->
1515
<wd-number-keyboard v-model="value" v-model:visible="showKeyboard" :maxlength="4" @blur="showKeyboard = false" />
1616
```
@@ -28,7 +28,7 @@ const showKeyboard = ref<boolean>(true)
2828

2929
```html
3030
<!-- 密码输入框 -->
31-
<wd-password-input :value="value" :length="4" :focused="showKeyboard" @focus="showKeyboard = true" />
31+
<wd-password-input v-model="value" :length="4" :focused="showKeyboard" @focus="showKeyboard = true" />
3232
<wd-number-keyboard v-model="value" v-model:visible="showKeyboard" :maxlength="4" @blur="showKeyboard = false"></wd-number-keyboard>
3333
```
3434

@@ -38,7 +38,7 @@ const showKeyboard = ref<boolean>(true)
3838

3939
```html
4040
<!-- 密码输入框 -->
41-
<wd-password-input :value="value" :gutter="10" :focused="showKeyboard" @focus="showKeyboard = true" />
41+
<wd-password-input v-model="value" :gutter="10" :focused="showKeyboard" @focus="showKeyboard = true" />
4242
```
4343

4444
### 明文展示
@@ -47,7 +47,7 @@ const showKeyboard = ref<boolean>(true)
4747

4848
```html
4949
<!-- 密码输入框 -->
50-
<wd-password-input :value="value" :mask="false" :focused="showKeyboard" @focus="showKeyboard = true" />
50+
<wd-password-input v-model="value" :mask="false" :focused="showKeyboard" @focus="showKeyboard = true" />
5151
```
5252

5353
### 提示信息
@@ -56,7 +56,7 @@ const showKeyboard = ref<boolean>(true)
5656

5757
```html
5858
<!-- 密码输入框 -->
59-
<wd-password-input :value="value" info="密码为 6 位数字" :error-info="errorInfo" :focused="showKeyboard" @focus="showKeyboard = true" />
59+
<wd-password-input v-model="value" info="密码为 6 位数字" :error-info="errorInfo" :focused="showKeyboard" @focus="showKeyboard = true" />
6060
<!-- 数字键盘 -->
6161
<wd-number-keyboard v-model="value" :show="showKeyboard" :maxlength="6" @blur="showKeyboard = false" />
6262
```

0 commit comments

Comments
 (0)