fix(Field): should not modify the value if it's within the min/max (#13282)

This commit is contained in:
dgmpk
2025-02-09 20:49:31 +08:00
committed by GitHub
parent 6f507b907c
commit b420f36563
+2
View File
@@ -346,9 +346,11 @@ export default defineComponent({
props.min ?? -Infinity, props.min ?? -Infinity,
props.max ?? Infinity, props.max ?? Infinity,
); );
if (+value !== adjustedValue) {
value = adjustedValue.toString(); value = adjustedValue.toString();
} }
} }
}
let formatterDiffLen = 0; let formatterDiffLen = 0;
if (props.formatter && trigger === props.formatTrigger) { if (props.formatter && trigger === props.formatTrigger) {