当前位置:网站首页>ant desgin 多选
ant desgin 多选
2022-07-07 17:22:00 【tonysh_zds】
clickThenSelect(record) {
return {
on: {
click: () => {
let rowKeys=this.selectedRowKeys
let rows = this.selectionRows
if(rowKeys.length>0 && rowKeys.includes(record.id)){
rowKeys.splice(rowKeys.indexOf(record.id),1)
rows.splice((record),1)
}else{
rowKeys.push(record.id)
rows.push(record)
}
this.onSelectChange(rowKeys,rows);
},
dblclick: () => {
this.handleDetail(record)
}
}
}
},
```
单选
```
clickThenSelect(record) {
return {
on: {
click: () => {
this.onSelectChange(record.id.split(","), [record]);
},
dblclick: () => {
this.handleDetail(record)
}
}
}
},
```
边栏推荐
- SlashData开发者工具榜首等你而定!!!
- 99% of people don't know that privatized deployment is also a permanently free instant messaging software!
- 脑洞从何而来?加州大学最新研究:有创造力的人神经连接会「抄近道」
- 爬虫实战(七):爬王者英雄图片
- Teach your sister to write the message queue hand in hand
- how to prove compiler‘s correctness
- Numpy——2. Shape of array
- LeetCode 515(C#)
- [information security laws and regulations] review
- Do you know all four common cache modes?
猜你喜欢
一张图深入的理解FP/FN/Precision/Recall
前首富,沉迷种田
Responsibility chain model - unity
Business experience in virtual digital human
How to choose the appropriate automated testing tools?
博睿数据入选《2022爱分析 · IT运维厂商全景报告》
杰理之发起对耳配对、回连、开启可发现、可连接的轮循函数【篇】
50亿,福建又诞生一只母基金
虚拟数字人里的生意经
[tpm2.0 principle and Application guide] Chapter 16, 17 and 18
随机推荐
高温火烧浑不怕,钟薛高想留清白在人间
杰理之关于 TWS 配对方式配置【篇】
最长公共前缀(leetcode题14)
Kirin Xin'an with heterogeneous integration cloud financial information and innovation solutions appeared at the 15th Hunan Financial Technology Exchange Conference
歌单11111
Wechat web debugging 8.0.19 replace the X5 kernel with xweb, so the X5 debugging method can no longer be used. Now there is a solution
Research and practice of super-resolution technology in the field of real-time audio and video
指定opencv非标准安装的版本
博睿数据入选《2022爱分析 · IT运维厂商全景报告》
虚拟数字人里的生意经
Mathematical analysis_ Notes_ Chapter 11: Fourier series
what‘s the meaning of inference
Draw squares with Obama (Lua)
初识缓存以及ehcache初体验「建议收藏」
10 schemes to ensure interface data security
50亿,福建又诞生一只母基金
2022上半年朋友圈都在传的10本书,找到了
POJ 2392 Space Elevator
"Decryption" Huawei machine vision Corps: Huawei is moving up and the industry is moving forward
The moveposition function of rigidbody2d of unity2d solves the problem of people or screen jitter when moving