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

basicForm的 autoFocusFirstItem transformDateFunc fieldMapToTime 提前解构 #527

Closed
3 tasks done
shlroland opened this issue Apr 23, 2021 · 2 comments
Closed
3 tasks done

Comments

@shlroland
Copy link

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • Read the docs.
  • Make sure the code is up to date. (Some bugs have been fixed in the latest code)
  • This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Describe the bug

如果使用register方法注册form的话,提前解构以后,无法正常拿到修改后的值,建议直接传getProps,在调用的方法内解构

Reproduction

Please describe the steps of the problem in detail to ensure that we can restore the correct problem

System Info

  • Operating System:
  • Node version:
  • Package manager (npm/yarn/pnpm) and version:
@anncwb
Copy link
Collaborator

anncwb commented Apr 24, 2021

能简单贴下代码吗,不是很懂你的意思

@shlroland
Copy link
Author

能简单贴下代码吗,不是很懂你的意思

const { transformDateFunc, fieldMapToTime, autoFocusFirstItem } = toRefs(props);
这里直接拿的props 在后面如果是register或者setprops 不会出现响应情况

@anncwb anncwb closed this as completed in b7ea68e Apr 24, 2021
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

2 participants