学无先后,达者为师

网站首页 编程语言 正文

antd4.*表格 Each child in a list should have a unique “key“ prop.

作者:yunchong_zhao 更新时间: 2022-04-18 编程语言

在 表格中需要添加一个key值
rowKey={record => record.id}

<Table 
	rowKey={record => record.id}  
	dataSource={users.data} 
	columns={columns} 
/>

关注我 持续更新。前端知识。

原文链接:https://yunchong.blog.csdn.net/article/details/120401207

栏目分类
最近更新