
Table 组件报错:Warning: Each child in a list should have a unique "key" prop.
解决:
如果dataSource里有key值就不会报错,没有key值的,可以设置rowKey
<Table columns={} dataSource={} rowKey="_id"/>
Table 组件报错:Warning: Each child in a list should have a unique "key" prop.
解决:
如果dataSource里有key值就不会报错,没有key值的,可以设置rowKey
<Table columns={} dataSource={} rowKey="_id"/>
本文标题:AntDesign Table 组件的数据源不用必须有"key"
本文链接:https://www.haomeiwen.com/subject/gxmvaktx.html
网友评论