当前位置:网站首页>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 .
边栏推荐
- Write a jison parser from scratch (4/10): detailed explanation of the syntax format of the jison parser generator
- 2022-2028 global small batch batch batch furnace industry research and trend analysis report
- Global and Chinese markets of thrombography hemostasis analyzer (TEG) 2022-2028: Research Report on technology, participants, trends, market size and share
- lolcat
- Analysis report on the development status and investment planning of China's modular power supply industry Ⓠ 2022 ~ 2028
- Flutter tips: various fancy nesting of listview and pageview
- Research Report on the development trend and Prospect of global and Chinese zinc antimonide market Ⓚ 2022 ~ 2027
- ArrayBuffer
- Global and Chinese markets of hemoglobin analyzers in care points 2022-2028: Research Report on technology, participants, trends, market size and share
- How to ensure the uniqueness of ID in distributed environment
猜你喜欢
Sort out the power node, Mr. Wang he's SSM integration steps
QTreeView+自定义Model实现示例
C language pointer classic interview question - the first bullet
JDBC and MySQL database
法向量点云旋转
Hands on deep learning (33) -- style transfer
xxl-job惊艳的设计,怎能叫人不爱
C # use gdi+ to add text to the picture and make the text adaptive to the rectangular area
Summary of small program performance optimization practice
智慧路灯杆水库区安全监测应用
随机推荐
Some points needing attention in PMP learning
H5 audio tag custom style modification and adding playback control events
Explanation of for loop in golang
Deadlock in channel
Markdown syntax
PHP is used to add, modify and delete movie information, which is divided into foreground management and background management. Foreground users can browse information and post messages, and backgroun
C语言指针面试题——第二弹
26. Delete duplicates in the ordered array (fast and slow pointer de duplication)
Daughter love in lunch box
Investment analysis and prospect prediction report of global and Chinese high purity tin oxide Market Ⓞ 2022 ~ 2027
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
2022-2028 global industry research and trend analysis report on anterior segment and fundus OTC detectors
lolcat
查看CSDN个人资源下载明细
品牌连锁店5G/4G无线组网方案
Global and Chinese market of wheel hubs 2022-2028: Research Report on technology, participants, trends, market size and share
"How to connect the network" reading notes - Web server request and response (4)
What is permission? What is a role? What are users?
ArrayBuffer
Log cannot be recorded after log4net is deployed to the server