From 8f55dcb69a921a4a23afc52e6d8f722c13fa62ba Mon Sep 17 00:00:00 2001 From: novlan1 <1576271227@qq.com> Date: Mon, 18 Aug 2025 09:23:12 +0800 Subject: [PATCH] chore: fix typo (#13592) --- packages/vant/src/password-input/demo/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vant/src/password-input/demo/index.vue b/packages/vant/src/password-input/demo/index.vue index 42cab5caa..58cf32b86 100644 --- a/packages/vant/src/password-input/demo/index.vue +++ b/packages/vant/src/password-input/demo/index.vue @@ -56,8 +56,8 @@ const onInput = (key: ValueKeys) => { return; } - const maxlegnth = current.value === 'customLength' ? 4 : 6; - const newValue = (values.value[current.value] + key).slice(0, maxlegnth); + const maxlength = current.value === 'customLength' ? 4 : 6; + const newValue = (values.value[current.value] + key).slice(0, maxlength); values.value[current.value] = newValue;