Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useModal+useForm组件的bug #250

Closed
zhoushi1 opened this issue Jul 29, 2023 · 7 comments
Closed

useModal+useForm组件的bug #250

zhoushi1 opened this issue Jul 29, 2023 · 7 comments

Comments

@zhoushi1
Copy link

zhoushi1 commented Jul 29, 2023

"naive-ui": "^2.34.2"

#157 这里有提供解决方案,但不能完全解决。

useForm组件的submit方法,返回的是undefined。
想知道这是什么bug,我有一些逻辑需要写在判断里。

image

@jekip
Copy link
Owner

jekip commented Jul 29, 2023

弹窗套 useForm 组件,要确保加载顺序,你提供的代码片段,看不出问题在哪,你可以给 form 加上 formRef 试一下,如果不能拿到实例,就说明是存在加载顺序问题的

@zhoushi1
Copy link
Author

弹窗套 useForm 组件,要确保加载顺序,你提供的代码片段,看不出问题在哪,你可以给 form 加上 formRef 试一下,如果不能拿到实例,就说明是存在加载顺序问题的

官方的给的例子就有问题,拿官方的例子一样返回的undefined

@tanwenchao
Copy link

image

@tanwenchao
Copy link

也遇到了一样的问题,姓名已经填了,表单校验不能通过,submit方法一直返回undefined

@jekip
Copy link
Owner

jekip commented Aug 10, 2023

1.9.0fix

@jekip jekip closed this as completed Aug 10, 2023
@tanwenchao
Copy link

... 1.9.0,大佬,现在不是2.34.2了吗😆

@GabbyMrH
Copy link

问题依然存在

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants