From 0b952757fbbfcce99a5dec02116e1e6185f66566 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 15 十月 2026 14:03:28 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_海西州_北京同仁堂' into dev_海西州_北京同仁堂
---
src/packages/@core/ui-kit/shadcn-ui/src/components/input-password/input-password.vue | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/packages/@core/ui-kit/shadcn-ui/src/components/input-password/input-password.vue b/src/packages/@core/ui-kit/shadcn-ui/src/components/input-password/input-password.vue
index 80f8556..3ee6e5d 100644
--- a/src/packages/@core/ui-kit/shadcn-ui/src/components/input-password/input-password.vue
+++ b/src/packages/@core/ui-kit/shadcn-ui/src/components/input-password/input-password.vue
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { ref, useSlots } from 'vue';
-import { Eye, EyeOff } from '..\..\..\..\..\base\icons\src';
-import { cn } from '..\..\..\..\..\base\shared\src\utils';
+import { Eye, EyeOff } from '../../../../../base/icons/src';
+import { cn } from '../../../../../base/shared/src/utils';
import { Input } from '../../ui';
import PasswordStrength from './password-strength.vue';
@@ -42,16 +42,21 @@
<slot name="strengthText"> </slot>
</p>
</template>
- <div
+ <button
+ type="button"
+ :aria-label="show ? '闅愯棌瀵嗙爜' : '鏄剧ず瀵嗙爜'"
+ :aria-pressed="show"
+ :disabled="!!$attrs.disabled"
:class="{
'top-3': !!passwordStrength,
'top-1/2 -translate-y-1/2 items-center': !passwordStrength,
}"
class="text-foreground/60 hover:text-foreground absolute inset-y-0 right-0 flex cursor-pointer pr-3 text-lg leading-5"
@click="show = !show"
+ @keydown.enter.stop
>
<Eye v-if="show" class="size-4" />
<EyeOff v-else class="size-4" />
- </div>
+ </button>
</div>
</template>
--
Gitblit v1.9.3