当前位置:网站首页>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 .
边栏推荐
- Explanation of closures in golang
- Hands on deep learning (33) -- style transfer
- Les différents modèles imbriqués de listview et Pageview avec les conseils de flutter
- Write a mobile date selector component by yourself
- Write a jison parser from scratch (1/10):jison, not JSON
- 查看CSDN个人资源下载明细
- Solution to null JSON after serialization in golang
- Hands on deep learning (35) -- text preprocessing (NLP)
- Kotlin:集合使用
- Some points needing attention in PMP learning
猜你喜欢
How can people not love the amazing design of XXL job
Hands on deep learning (33) -- style transfer
Daughter love in lunch box
Leetcode (Sword finger offer) - 35 Replication of complex linked list
165 webmaster online toolbox website source code / hare online tool system v2.2.7 Chinese version
How should PMP learning ideas be realized?
Hands on deep learning (36) -- language model and data set
Web端自动化测试失败原因汇总
C language pointer classic interview question - the first bullet
2022-2028 global small batch batch batch furnace industry research and trend analysis report
随机推荐
How can people not love the amazing design of XXL job
Global and Chinese market of sampler 2022-2028: Research Report on technology, participants, trends, market size and share
Launpad | basic knowledge
Golang Modules
DR6018-CP01-wifi6-Qualcomm-IPQ6010-IPQ6018-FAMILY-2T2R-2.5G-ETH-port-CP01-802-11AX-MU-MIMO-OFDMA
Flutter tips: various fancy nesting of listview and pageview
Tkinter Huarong Road 4x4 tutorial II
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
Kotlin 集合操作汇总
libmysqlclient.so.20: cannot open shared object file: No such file or directory
How do microservices aggregate API documents? This wave of show~
2022-2028 research and trend analysis report on the global edible essence industry
2022-2028 global optical transparency industry research and trend analysis report
Analysis report on the production and marketing demand and investment forecast of tellurium dioxide in the world and China Ⓣ 2022 ~ 2027
Opencv environment construction (I)
Write a jison parser from scratch (4/10): detailed explanation of the syntax format of the jison parser generator
After unplugging the network cable, does the original TCP connection still exist?
PHP personal album management system source code, realizes album classification and album grouping, as well as album image management. The database adopts Mysql to realize the login and registration f
技术管理进阶——如何设计并跟进不同层级同学的绩效