Skip to content

Commit

Permalink
feat(chazi): 添加 Enter 响应
Browse files Browse the repository at this point in the history
  • Loading branch information
FuckDoctors committed Mar 23, 2024
1 parent e4fd3b1 commit 01f6b1f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/.vuepress/theme/components/hanzi/Chazi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ function handleClick() {
<div class="container">
<label>
汉字
<input v-model="input" type="text" maxlength="1" />
<input
v-model="input"
type="text"
maxlength="1"
@keyup.enter="handleClick"
/>
</label>
<button @click="handleClick">查</button>
</div>
Expand Down

0 comments on commit 01f6b1f

Please sign in to comment.