Open Saisimon opened 4 years ago
2.13.0
macOS 10.15.2/Chrome 79.0.3945.130
2.6.11
https://codepen.io/Saisimon/pen/PoqmOwr
Translation of this issue:
Add < div V-for = "I in 1" > tag outside the < El form > tag, the validate method is invalid. Remove V-for and you can verify it successfully.
Successful verification within the cycle
Tip this. $refs [formname]. Validate is not a function
我之前把 el-form 放进 el-tab-pane 循环里面,validate 和 resetFields 也报一样的错。现在改为 el-form 和多个 el-tab-pane 是同级的,用事件来控制 form 的数据,例如增减 tab 时改变 form 的数据
el-form
el-tab-pane
validate
resetFields
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Element UI version
2.13.0
OS/Browsers version
macOS 10.15.2/Chrome 79.0.3945.130
Vue version
2.6.11
Reproduction Link
https://codepen.io/Saisimon/pen/PoqmOwr
Steps to reproduce
Translation of this issue:
Element UI version
2.13.0
OS/Browsers version
macOS 10.15.2/Chrome 79.0.3945.130
Vue version
2.6.11
Reproduction Link
https://codepen.io/Saisimon/pen/PoqmOwr
Steps to reproduce
Add < div V-for = "I in 1" > tag outside the < El form > tag, the validate method is invalid. Remove V-for and you can verify it successfully.
What is Expected?
Successful verification within the cycle
What is actually happening?
Tip this. $refs [formname]. Validate is not a function
我之前把
el-form
放进el-tab-pane
循环里面,validate
和resetFields
也报一样的错。现在改为el-form
和多个el-tab-pane
是同级的,用事件来控制 form 的数据,例如增减 tab 时改变 form 的数据This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.