当前位置:网站首页>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)
}
}
}
},
```
边栏推荐
猜你喜欢
超分辨率技术在实时音视频领域的研究与实践
Chief technology officer of Pasqual: analog quantum computing takes the lead in bringing quantum advantages to industry
The top of slashdata developer tool is up to you!!!
Kirin Xin'an with heterogeneous integration cloud financial information and innovation solutions appeared at the 15th Hunan Financial Technology Exchange Conference
50亿,福建又诞生一只母基金
Review of network attack and defense
Borui data was selected in the 2022 love analysis - Panoramic report of it operation and maintenance manufacturers
ES6 note 1
Micro service remote debug, nocalhost + rainbow micro service development second bullet
[Blue Bridge Cup training 100 questions] sort scratch from small to large. Blue Bridge Cup scratch competition special prediction programming question centralized training simulation exercise question
随机推荐
[information security laws and regulations] review
LeetCode1051(C#)
Zhong Xuegao wants to remain innocent in the world
反爬虫的重点:识别爬虫
SlashData开发者工具榜首等你而定!!!
99% of people don't know that privatized deployment is also a permanently free instant messaging software!
杰理之关于 TWS 配对方式配置【篇】
Policy mode - unity
Hutool - lightweight DB operation solution
一张图深入的理解FP/FN/Precision/Recall
2022上半年朋友圈都在传的10本书,找到了
Flipping game (enumeration)
【MIME笔记】
杰理之开机自动配对【篇】
[HDU] 5248 sequence transformation (greedy + dichotomy) [recommended collection]
How to open an account for stock speculation? Excuse me, is it safe to open a stock account by mobile phone?
编译原理 实验一:词法分析器的自动实现(Lex词法分析)
高温火烧浑不怕,钟薛高想留清白在人间
LeetCode 497(C#)
前首富,沉迷种田