Element UI version
2.13.1
OS/Browsers version
macOS / 81.0.4044.138
Vue version
2.6.11
Reproduction Link
https://codepen.io/shujiawu/pen/ExVeEMJ
Steps to reproduce
动态表单中表格如果存在fixed属性的列,调用表单的validate方法,validate事件会被触发多次。具体表现为多一个fixed属性的列则多一次触发。
具体可以查看 https://codepen.io/shujiawu/pen/ExVeEMJ ,正常点击【提交】按钮,应该只有一个message,但是实际上却出现多个。
What is Expected?
一个需要校验的字段,当校验不通过时,validate事件只触发一次。
What is actually happening?
validate事件只触发多次。
2条答案
按热度按时间lyr7nygr1#
Translation of this issue:
Element UI version
2.13.1
OS/Browsers version
macOS / 81.0.4044.138
Vue version
2.6.11
Reproduction Link
https://codepen.io/shujiawu/pen/ExVeEMJ
Steps to reproduce
If there is a fixed column in the dynamic form, call the validate method of the form, and the validate event will be triggered multiple times. The columns with one more fixed attribute will trigger one more time.
For details, you can view https://codepen.io/shujiawu/pen/exveemj . Normally, click the [submit] button, there should be only one message, but in fact, there are many.
What is Expected?
A field to be verified. When the verification fails, the validate event is triggered only once.
What is actually happening?
The validate event is only triggered multiple times.
smdncfj32#
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.