当前位置:网站首页>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)
}
}
}
},
```
边栏推荐
- 杰理之相同声道的耳机不允许配对【篇】
- LeetCode 497(C#)
- LeetCode 535(C#)
- 如何给“不卖笔”的晨光估值?
- 2022.07.05
- Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
- 国内首次!这家中国企业的语言AI实力被公认全球No.2!仅次于谷歌
- Jerry's headphones with the same channel are not allowed to pair [article]
- [Verilog advanced challenge of Niuke network question brushing series] ~ multi bit MUX synchronizer
- Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
猜你喜欢
Responsibility chain model - unity
2022.07.05
648. 单词替换
【牛客网刷题系列 之 Verilog进阶挑战】~ 多bit MUX同步器
Policy mode - unity
In 2021, the national average salary was released. Have you reached the standard?
5billion, another master fund was born in Fujian
Version 2.0 of tapdata, the open source live data platform, has been released
超分辨率技术在实时音视频领域的研究与实践
Kirin Xin'an with heterogeneous integration cloud financial information and innovation solutions appeared at the 15th Hunan Financial Technology Exchange Conference
随机推荐
手把手教姐姐写消息队列
First time in China! The language AI strength of this Chinese enterprise is recognized as No.2 in the world! Second only to Google
Big Ben (Lua)
A hodgepodge of ICER knowledge points (attached with a large number of topics, which are constantly being updated)
[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
How many times is PTA 1101 B than a
Tips and tricks of image segmentation summarized from 39 Kabul competitions
Download from MySQL official website: mysql8 for Linux X Version (Graphic explanation)
L1-027 rental (Lua)
Redis master-slave and sentinel master-slave switchover are built step by step
Key points of anti reptile: identifying reptiles
前首富,沉迷种田
2022-07-04 matlab reads video frames and saves them
Golang client server login
Kirin Xin'an won the bid for the new generation dispatching project of State Grid!
Install mysql8 for Linux X ultra detailed graphic tutorial
Unable to link the remote redis server (solution 100%
5billion, another master fund was born in Fujian
LeetCode 497(C#)
Numpy——axis