当前位置:网站首页>El Table Radio select and hide the select all box
El Table Radio select and hide the select all box
2022-07-04 09:40:00 【Meow sauce fell asleep】
<el-table
@selection-change="handleSelectionChange"
ref="tableRef"
:header-cell-class-name="cellClass"
>
Radio function :
handleSelectionChange(selection) {
if (selection.length > 1) {
this.$refs.tableRef.clearSelection();
this.$refs.tableRef.toggleRowSelection(selection.pop());
}
},
Hide select all box :
cellClass(row){
if (row.columnIndex === 0 && row.rowIndex === 0) {
return 'disableheadselection'
}
}
<style lang="scss" scoped>
/deep/ .disableheadselection > .cell .el-checkbox__inner {
display: none;
}
<style>
Here's the picture : Only one can be checked at a time , You can't choose all .
边栏推荐
- Matlab tips (25) competitive neural network and SOM neural network
- PHP book borrowing management system, with complete functions, supports user foreground management and background management, and supports the latest version of PHP 7 x. Database mysql
- Hands on deep learning (36) -- language model and data set
- 华为联机对战如何提升玩家匹配成功几率
- Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot
- 26. Delete duplicates in the ordered array (fast and slow pointer de duplication)
- Hands on deep learning (33) -- style transfer
- QTreeView+自定义Model实现示例
- Write a mobile date selector component by yourself
- 2022-2028 research and trend analysis report on the global edible essence industry
猜你喜欢

C # use ffmpeg for audio transcoding

Four common methods of copying object attributes (summarize the highest efficiency)

Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot

pcl::fromROSMsg报警告Failed to find match for field ‘intensity‘.

How can people not love the amazing design of XXL job

ArrayBuffer

el-table单选并隐藏全选框

C language pointer classic interview question - the first bullet

You can see the employment prospects of PMP project management

Summary of small program performance optimization practice
随机推荐
Golang Modules
How web pages interact with applets
Launpad | basic knowledge
Solution to null JSON after serialization in golang
QTreeView+自定义Model实现示例
How to write unit test cases
Hands on deep learning (32) -- fully connected convolutional neural network FCN
Sort out the power node, Mr. Wang he's SSM integration steps
Reading notes on how to connect the network - tcp/ip connection (II)
Nuxt reports an error: render function or template not defined in component: anonymous
Global and Chinese markets for laser assisted liposuction (LAL) devices 2022-2028: Research Report on technology, participants, trends, market size and share
智慧路灯杆水库区安全监测应用
How should PMP learning ideas be realized?
About the for range traversal operation in channel in golang
How can people not love the amazing design of XXL job
DR6018-CP01-wifi6-Qualcomm-IPQ6010-IPQ6018-FAMILY-2T2R-2.5G-ETH-port-CP01-802-11AX-MU-MIMO-OFDMA
2022-2028 global small batch batch batch furnace industry research and trend analysis report
"How to connect the Internet" reading notes - FTTH
Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot
Golang defer