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] Picker 组件 onConfirm 回调的第二个参数中 options 属性类型不正确 #38

Open
Chen0807AiLJX opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Chen0807AiLJX
Copy link

描述问题
使用 Picker 组件的 onConfirm 回调时,data.options 为二维数组,但类型定义是一维数组,导致对二维数组的操作出现TS类型报错

复现步骤
步骤:

  1. 使用 Picker 组件
  2. 对 Picker onConfirm 回调的第二个参数(data)中的 options 做二维数组的处理

期望结果
无 TS 类型错误

实际结果
出现 TS 类型错误,原因是 data.options 被声明为一维数组

环境信息

  • 操作系统: [MacOS]
  • 渠道: [H5]
  • 浏览器: [Chrome]
  • 版本: [1.2.8]

截图(可选)
image

image
@Chen0807AiLJX Chen0807AiLJX added the bug Something isn't working label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant