-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Picker PickerView等组件能否支持一下number类型。 PickerValue string太难受了! #5688
Labels
Comments
@awmleer 你怎么不在群里了? |
这类问题我在业务开发里也遇到过,有的时候枚举值默认就是 0、1、2....,然后用起来就很不方便,同理还有 |
之前有讨论 #5199 (comment) 这个问题能改么 @MuxinFeng |
来个 PR 吧 |
我晚点看看哈 @miracles1919 |
根据历史 |
有没有合并上来呢,最新版也没有看到类型有变化。 |
没整明白,我的 pr 先关啦。等大佬们搞吧 |
#6089 已添加 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of antd-mobile
eg 5.24.0
What is this feature about?
现在picker 类型是
string | null;
但实际开发中的 value 更多的是number int类型的。数据库存的也是int类型。在ant design使用都是 {label: string, value: number} 但是到了mobile v5 就是{label: string, value: string},逼得我要么从数据库取出来转一次,要么自己在前端循环转一次。这样的工作太繁重了,希望能改掉这个类型加入支持number类型。跟ant design 同步!ant design 的
The text was updated successfully, but these errors were encountered: