[feature request] how the custom component passes the elementui form verification
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Existing Component
是
### Component Name
form
### Description
碰到一个问题,如果用原生html封装组件会无法触发element ui的表单校验,需要点击提交按钮才能校验。
rules里的trigger: 'blur’ 或者 trigger: 'change’ 已经不起效了。
虽然 知道 是
从源码可以看出 `onFieldBlur` 和 `onFieldChange` 这两个回调函数里触发,而这两个函数的触发方式是通过在addValidateEvents中监听el.form.blur和el.form.change
尝试过 无效
1, this.dispatch('elFormItem', 'el.form.change', [a])
2, 百度的分章
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.