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
+3 -1
View File
@@ -346,7 +346,9 @@ export default defineComponent({
props.min ?? -Infinity, props.min ?? -Infinity,
props.max ?? Infinity, props.max ?? Infinity,
); );
value = adjustedValue.toString(); if (+value !== adjustedValue) {
value = adjustedValue.toString();
}
} }
} }