pro-components icon indicating copy to clipboard operation
pro-components copied to clipboard

🐛[BUG]ProFormSelect使用fieldNames配置字段后options的类型无法正确识别

Open 662 opened this issue 6 months ago • 0 comments

🐛 bug 描述

ProFormSelect使用fieldNames配置字段后options的类型无法正确识别。

5.16.1可以正确识别,升级到5.20.1就提示类型错误。

📷 复现步骤

一个简单的调用

<ProFormSelect
  fieldProps={{
    fieldNames: { label: 'a', value: 'b' },
  }}
  options={[{ a: 1, b: 1 }]}
></ProFormSelect>

🏞 期望结果

💻 复现代码

© 版本信息

  • ProComponents 版本: 5.20.1
  • umi 版本
  • 浏览器环境 chrome latest
  • 开发环境 mac OS

🚑 其他信息

image

662 avatar Aug 15 '24 10:08 662