Skip to content

Commit

Permalink
feat(projects): login supports accessible operation. (soybeanjs#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azir-11 authored and JOU-amjs committed Oct 10, 2024
1 parent 313efe2 commit 2e64098
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/code-login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function handleSubmit() {
</script>

<template>
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false">
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false" @keyup.enter="handleSubmit">
<NFormItem path="phone">
<NInput v-model:value="model.phone" :placeholder="$t('page.login.common.phonePlaceholder')" />
</NFormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/pwd-login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function handleAccountLogin(account: Account) {
</script>

<template>
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false">
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false" @keyup.enter="handleSubmit">
<NFormItem path="userName">
<NInput v-model:value="model.userName" :placeholder="$t('page.login.common.userNamePlaceholder')" />
</NFormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function handleSubmit() {
</script>

<template>
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false">
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false" @keyup.enter="handleSubmit">
<NFormItem path="phone">
<NInput v-model:value="model.phone" :placeholder="$t('page.login.common.phonePlaceholder')" />
</NFormItem>
Expand Down
2 changes: 1 addition & 1 deletion src/views/_builtin/login/modules/reset-pwd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function handleSubmit() {
</script>

<template>
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false">
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false" @keyup.enter="handleSubmit">
<NFormItem path="phone">
<NInput v-model:value="model.phone" :placeholder="$t('page.login.common.phonePlaceholder')" />
</NFormItem>
Expand Down

0 comments on commit 2e64098

Please sign in to comment.