Version
2.2.2
Environment
Google Chrome , 版本 91.0.4472.124
Reproduction link
https://1x.antdv.com/components/form-cn/#components-form-demo-basic
Steps to reproduce
1.x版本:
data() {
this.form = this.$form.createForm(this)
return { }
},
已注册Form: app.config.globalProperties.$form = Form
error: TypeError: this.$form.createForm is not a function
What is expected?
兼容1.x,form的createForm 写法
What is actually happening?
发生报错,找不到原来的createForm 方法了