当前位置:网站首页>antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key
antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key
2022-07-27 20:25:00 【qwe122343】
It was used Ant Design Vue after , Met some iView Problems not encountered in , It can only be solved one by one . In the use of Table When the component rendering background returns data , Tips antdv: Each record in table should have a unique key prop,or set rowKey to an unique primary key
It roughly means that each data in the table needs one key, Can only meet its requirements =_=
The original a-table
<a-table :dataSource="data1.data" :columns="columns" bordered :pagination="false">
</a-table>
current a-table, In fact, it is to add rowKey="id"
<a-table :dataSource="data1.data" :columns="columns" bordered :pagination="false" rowKey="id">
</a-table>
This id It needs to be the one returned by the background data id
:rowKey=‘record=>record.id’ This way of writing is no problem 
边栏推荐
- Redis basic understanding, five basic data types
- My approval of OA project (Query & meeting signature)
- You can understand it at a glance, eslint
- slf4j简介说明
- 十年测试老鸟聊聊移动端兼容性测试
- Assignment 1 - Hello World ! - Simple thread Creation
- Kubectl's access to pod logs -- the way to build a dream
- [redis] several deployment methods of redis
- uva1377
- ES6 deleting attributes of objects_ ES6 delete an element "suggested collection" in the object
猜你喜欢

Datepicker date selector in viewui compatible solution in ie11 browser

长安链数据存储源码分析

Compiling ncnn with vs

Check the internship salary of Internet companies: with it, you can also enter the factory

多点双向重发布及路由策略的简单应用

技术分享 | 接口自动化测试中,如何做断言验证?

PyQt5快速开发与实战 4.7 QSpinBox(计数器) and 4.8 QSlider(滑动条)

Solve the problem of displaying the scroll bar when there is no data in the viewui table

Redis-基本了解,五大基本数据类型

GLTF模型添加关节控制
随机推荐
Datepicker date selector in viewui compatible solution in ie11 browser
Codeworks round 810 (Div. 2) B.Party super detailed problem solution
Redis-基本了解,五大基本数据类型
Clickhouse 实现 MaterializedPostgreSQL
uva1377
Assignment 1 - Hello World ! - Simple thread Creation
es6删除对象的属性_ES6删除对象中的某个元素「建议收藏」
[C #] positive sequence, reverse sequence, maximum value, minimum value and average value
ES6 -- Application of expansion operator
PyQt5快速开发与实战 4.3 QLabel and 4.4 文本框类控件
[pytorch series] detailed explanation of the torchvision image processing library of pytorch
联发科发布中端游戏手机芯片Helio G80
set--数据解构
LeetCode练习2——两数之和
[rctf2015]easysql-1 | SQL injection
Redis queue, RDB learning
LG集团宣布将向湖北捐赠300万元现金、120万个口罩、1万套防护服
I'm also drunk. Eureka delayed registration and this pit
How to quickly improve the three minute response rate of Tiktok store? What will affect the reply rate of Tiktok store?
If you want to switch to software testing, you should pass these three tests first, including a 3000 word super full test learning guide