logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.74k stars 1.26k forks source link

validateField can't access nested properties #4773

Open LiuLiTheRiver opened 3 months ago

LiuLiTheRiver commented 3 months ago

image image image

https://github.com/logaretm/vee-validate/blob/b251ad0c48f9f7e7415a2764270a912273416fe5/packages/vee-validate/src/useForm.ts#L930

Zhuzhenghao commented 4 weeks ago

same error

image

If the path uses jobs[${props.index}].name, it can be validated correctly; however, TypeScript validation does not pass.

If the path uses jobs.${props.index}.name, it cannot be validated.