Merge pull request #9 from parz1/master

fix(vue3-generator): change instance.ctx to proxy
This commit is contained in:
vform666 2022-07-29 14:40:19 +08:00 committed by GitHub
commit 39a2dd7454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ export const genVue3JS = function (formConfig, widgetList) {
const instance = getCurrentInstance()
const submitForm = () => {
instance.ctx.$refs['vForm'].validate(valid => {
instance.proxy.$refs['vForm'].validate(valid => {
if (!valid) return
//TODO: 提交表单
@ -54,7 +54,7 @@ export const genVue3JS = function (formConfig, widgetList) {
}
const resetForm = () => {
instance.ctx.$refs['vForm'].resetFields()
instance.proxy.$refs['vForm'].resetFields()
}
return {