版本:"element-plus": "^1.2.0-beta.1"
这样写,就可以了
this.$nextTick(() => {
this.$refs.form.resetFields()
setTimeout(() => {
this.$refs.form.clearValidate()
}, 0)
})
另外,这个版本Form好像还有个问题,Form上的model和ref不可以同名,同名导致文本框无法输入