mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
chore: fix typo (#13592)
This commit is contained in:
@@ -56,8 +56,8 @@ const onInput = (key: ValueKeys) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const maxlegnth = current.value === 'customLength' ? 4 : 6;
|
const maxlength = current.value === 'customLength' ? 4 : 6;
|
||||||
const newValue = (values.value[current.value] + key).slice(0, maxlegnth);
|
const newValue = (values.value[current.value] + key).slice(0, maxlength);
|
||||||
|
|
||||||
values.value[current.value] = newValue;
|
values.value[current.value] = newValue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user