mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
This commit is contained in:
parent
55348b30b6
commit
6f23947920
@ -229,7 +229,7 @@ export default defineComponent({
|
||||
{ firstFields: true },
|
||||
(errors, invalidFields) => {
|
||||
validateState.value = !errors ? 'success' : 'error'
|
||||
validateMessage.value = errors ? errors[0].message : ''
|
||||
validateMessage.value = errors ? errors[0].message || `${props.prop} is required` : ''
|
||||
callback(validateMessage.value, invalidFields)
|
||||
elForm.emit?.(
|
||||
'validate',
|
||||
|
Loading…
Reference in New Issue
Block a user