0
0
Fork 0

fix: replace inputMin rule

This commit is contained in:
Javier Segarra 2024-05-06 08:45:29 +02:00
parent 0f5d06614d
commit 6a81076874
1 changed files with 1 additions and 2 deletions

View File

@ -55,8 +55,7 @@ defineExpose({
const inputRules = (val) => { const inputRules = (val) => {
const { min } = vnInputRef.value.$attrs; const { min } = vnInputRef.value.$attrs;
if (min >= 0) if (min >= 0) if (Math.floor(val) < min) return t('inputMin', { value: min });
if (val.toString().indexOf('.') < min) return t('inputMin', { value: min });
}; };
</script> </script>