-
Notifications
You must be signed in to change notification settings - Fork 591
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
[Field]field.setValue支持传递值泛型 #4852
Labels
Comments
eternalsky
added
improvement
improve some features
Next release
issues to close in next release
labels
May 29, 2024
这个问题仔细想了一下,这里如果使用泛型并符合 TS 中关于函数泛型的推荐范式,即至少有两处使用到该类型时才使用。这里如果希望约束 value 的类型,我觉得更好的方式是 setValue 时 as Type |
as type会遇到多传的情况 |
有道理 |
你好,该 issue 已 30 天没有活动,因此被标记为 stale,如果之后的 7 天仍然没有活动,该 issue 将被自动关闭 |
eternalsky
added
improvement
improve some features
and removed
Stale
not active for a lone time
labels
Oct 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component
Field
Feature Description
希望支持
我看之前是支持的,后面又去掉了
支持这个的好处就是我可以约束和提示值,不然不好检查
The text was updated successfully, but these errors were encountered: