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

🐛[BUG] 使用 ProDescriptions.Item 报错,DescriptionsItem: `key` is not a prop.

Open leshalv opened this issue 3 years ago • 7 comments

Warning: DescriptionsItem: key is not a prop. Trying to access it will result in undefined being returned. If you need to access the same value within the child component, you should pass it as a different prop.

image

leshalv avatar Aug 02 '23 13:08 leshalv

Hello @leshalv. Please provide a online reproduction by forking this link https://codesandbox.io/ or a minimal GitHub repository.

你好 @leshalv, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。 如何写个好问题?https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

github-actions[bot] avatar Aug 04 '23 06:08 github-actions[bot]

image

leshalv avatar Aug 06 '23 15:08 leshalv

same question

WuJiY avatar Aug 09 '23 08:08 WuJiY

我也发现了同样问题,在使用columns和dataSource时会报这个警告. image

我又测试使用items就不报警告了 image

zhangheng0317 avatar Aug 10 '23 03:08 zhangheng0317

same question

662 avatar Aug 18 '23 06:08 662

我也发现了同样问题,在使用columns和dataSource时会报这个警告. image

我又测试使用items就不报警告了 image

非常感谢,请问这个items你是从哪里看到的,proComponents的官方文档可没有这个呀

imjinbo avatar Sep 05 '23 10:09 imjinbo

我也发现了同样问题,在使用columns和dataSource时会报这个警告. image 我又测试使用items就不报警告了 image

非常感谢,请问这个items你是从哪里看到的,proComponents的官方文档可没有这个呀

antd5版本Descriptions组件的参数

zhangheng0317 avatar Sep 16 '23 02:09 zhangheng0317