fix: form not trigger validate for inputnumber, close #4831

This commit is contained in:
tangjinzhou 2021-11-02 21:33:58 +08:00
parent 42afcbbfbc
commit 3ce5046dd5

View File

@ -54,9 +54,11 @@ const InputNumber = defineComponent({
const handleChange = (val: number) => {
emit('update:value', val);
emit('change', val);
formItemContext.onFieldChange();
};
const handleBlur = () => {
emit('blur');
formItemContext.onFieldBlur();
};
onMounted(() => {
nextTick(() => {