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

🐛[BUG] ProFormSelect 使用 fieldNames 时 options 类型问题 #8901

Closed
dongfg opened this issue Dec 3, 2024 · 0 comments · Fixed by #8905
Closed

🐛[BUG] ProFormSelect 使用 fieldNames 时 options 类型问题 #8901

dongfg opened this issue Dec 3, 2024 · 0 comments · Fixed by #8905

Comments

@dongfg
Copy link

dongfg commented Dec 3, 2024

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

pro-components >= 2.7.15 的版本,ProFormSelect 使用 fieldNames 指定 option 字段时,options 字段类型会提示
xxx has no properties in common with type 'BaseOptionType'

📷 复现步骤

🏞 期望结果

💻 复现代码

"@ant-design/pro-components": "2.7.14", "@ant-design/pro-form": "2.28.4" options 类型正常
https://codesandbox.io/p/sandbox/pro-components-2-7-14-ws8tnq

image

"@ant-design/pro-components": "2.7.15", "@ant-design/pro-form": "2.29.0" options 类型错误
https://codesandbox.io/p/sandbox/gallant-aryabhata-xz98q3

image

© 版本信息

  • ProComponents 版本: 2.7.15+
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

猜测是 #8568 导致的

Wxh16144 added a commit to Wxh16144-forks/pro-components that referenced this issue Dec 4, 2024
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

Successfully merging a pull request may close this issue.

1 participant