You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose I want to do something to a form-item in a form. I know only its prop name but don't have a ref to it. If I have a ref to the form I could access its form-item like this:
this.$refs.form.fields[prop]
Than I could invoke clearValidate for instance for a single field. But this is somewhat wrong because existence of the fields property in form is not documented. Maybe add some getter for form-items to form or mention fields property in docs?
The text was updated successfully, but these errors were encountered:
Suppose I have a lot of <el-form-item>s. Then some of the fields change externally and I want to manipulate a subset of those related <el-form-item>s. I would have to write ref for every field and then I would have to come up with a way to convert a field to a ref name. In short I want to manipulate these items massively using loops and not individually, but also not all at once.
Actually I want to invoke clearValidate on certain fields. Maybe we could add a parameter to this form method like in validateField so we can do something like clearValidateField('prop')
Existing Component
Yes
Component Name
Form
Description
Suppose I want to do something to a form-item in a form. I know only its prop name but don't have a ref to it. If I have a ref to the form I could access its form-item like this:
this.$refs.form.fields[prop]
Than I could invoke
clearValidate
for instance for a single field. But this is somewhat wrong because existence of the fields property in form is not documented. Maybe add some getter for form-items to form or mention fields property in docs?The text was updated successfully, but these errors were encountered: