当前位置:网站首页>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)
}
}
}
},
```
边栏推荐
- Scientists have observed for the first time that the "electron vortex" helps to design more efficient electronic products
- Key points of anti reptile: identifying reptiles
- How many are there (Lua)
- Responsibility chain model - unity
- Mathematical analysis_ Notes_ Chapter 11: Fourier series
- L1-025 positive integer a+b (Lua)
- 如何给“不卖笔”的晨光估值?
- 2022.07.02
- LeetCode 890(C#)
- How much does it cost to develop a small program mall?
猜你喜欢

抢占周杰伦

Chief technology officer of Pasqual: analog quantum computing takes the lead in bringing quantum advantages to industry

cmd命令进入MySQL时报服务名或者命令错误(傻瓜式教学)

SlashData开发者工具榜首等你而定!!!

Responsibility chain model - unity

Borui data was selected in the 2022 love analysis - Panoramic report of it operation and maintenance manufacturers

Kirin Xin'an won the bid for the new generation dispatching project of State Grid!

微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹

一张图深入的理解FP/FN/Precision/Recall

Experiment 1 of Compilation Principle: automatic implementation of lexical analyzer (Lex lexical analysis)
随机推荐
testing and SQA_ Dynamic white box test [easy to understand]
The research group of the Hunan Organizing Committee of the 24th China Association for science and technology visited Kirin Xin'an
2022.07.02
最长公共前缀(leetcode题14)
LeetCode 497(C#)
Classification and application of enterprise MES Manufacturing Execution System
【MIME笔记】
解决rosdep的报错问题
Realize payment function in applet
手把手教姐姐写消息队列
L1-019 who falls first (Lua)
LeetCode 535(C#)
How to open an account for stock speculation? Excuse me, is it safe to open a stock account by mobile phone?
Big Ben (Lua)
博睿数据入选《2022爱分析 · IT运维厂商全景报告》
基于图像和激光的多模态点云融合与视觉定位
L1-023 output gplt (Lua)
Kirin Xin'an cloud platform is newly upgraded!
Basic concepts and properties of binary tree
Seize Jay Chou