当前位置:网站首页>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 
边栏推荐
- 华为手机出货超苹果成全球第二,但面临大量库存需要清理
- 分享Redshift渲染器的去噪方法技巧,一定要看看
- Kubectl's access to pod logs -- the way to build a dream
- js跳转页面并刷新(本页面跳转)
- 22 year PMP test [Quanzhen agile test]
- Leetcode exercise 2 - sum of two numbers
- 调整数组使奇数全部都位于偶数前
- Clickhouse 实现 MaterializedPostgreSQL
- ES6--拓展运算符运用
- Data warehouse construction - DWD floor
猜你喜欢

Standing on the shoulders of giants to learn, jd.com's popular architect growth manual was launched

'vite' is not an internal or external command, nor is it a runnable program or batch file

一看就懂的ESLint

OA项目之我的审批(查询&会议签字)

PyQt5快速开发与实战 4.5 按钮类控件 and 4.6 QComboBox(下拉列表框)

Compiling ncnn with vs

C语言--数组

使用cpolar建立一个商业网站(5)

Pyqt5 rapid development and practice 4.7 qspinbox (counter) and 4.8 QSlider (slider)

Redis-基本了解,五大基本数据类型
随机推荐
ES6 deleting attributes of objects_ ES6 delete an element "suggested collection" in the object
十年测试老鸟聊聊移动端兼容性测试
Product Manager: check where there is an error prompt of "system exception" on the offline
传英特尔将停掉台积电16nm代工的Nervana芯片
图解LeetCode——剑指 Offer II 115. 重建序列(难度:中等)
Built in functions other functions
想转行软件测试,先过这三关,包含一份3000字超全测试学习指南
Huawei's mobile phone shipments exceed Apple's, ranking second in the world, but it faces a large amount of inventory that needs to be cleaned up
How to configure log4j in slf4j?
[C # network application programming] Experiment 3: process management exercise
Can software testing be learned in 2022? Don't learn, software testing positions are saturated
[RCTF2015]EasySQL-1|SQL注入
Redis 事物学习
Codeworks 5 questions per day (average 1500) - day 24
站在巨人肩膀上学习,京东爆款架构师成长手册首发
使用cpolar建立一个商业网站(5)
set--数据解构
JS实现视频录制-以Cesium为例
Two years after its release, the price increased by $100, and the reverse growth of meta Quest 2
[rctf2015]easysql-1 | SQL injection