AntDesign Table 组件的数据源不用必须有"key"属性(Warning: Each child in a list should have a unique "key" prop.)

Table 组件报错:Warning: Each child in a list should have a unique "key" prop.

解决:
如果dataSource里有key值就不会报错,没有key值的,可以设置rowKey

你可能感兴趣的:(AntDesign Table 组件的数据源不用必须有"key"属性(Warning: Each child in a list should have a unique "key" prop.))