Skip to content

关于defaultValue及其他defaultXXX的问题 #275

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

Closed
tangjinzhou opened this issue Nov 26, 2018 · 1 comment
Closed

关于defaultValue及其他defaultXXX的问题 #275

tangjinzhou opened this issue Nov 26, 2018 · 1 comment
Labels

Comments

@tangjinzhou
Copy link
Member

defaultValue仅仅在组件初始化时生效,并且当和value同时存在时,以value为准。
如果你的组件值是异步设置的或者是想更改defaultValue的值,均不会生效,你可以使用value来替代defaultValue。
关于更多defaultValue和value的区别,建议搜索受控组件、非受控组件学习相关理念。

@github-actions
Copy link

github-actions bot commented Apr 2, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant