![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
element ui
某公司前端攻城狮️
只为自己开发完记笔记用,写错勿怪
展开
-
element UI el-table全选 单选
单选 // el-table 上是 @select事件 handleSelectionChange (selecteds, row) { // 回显数据里没有本条,把这条加进去(选中) if (!this.selection.includes(row.Id)) { this.selection.push(row.Id) } else { // 回显数据中有本条,把这条删除(取消选中) this.selection.for原创 2020-12-04 10:25:05 · 334 阅读 · 0 评论 -
table展开速度优化(懒加载)
el-table用的 @row-click=“clickTable” 拿到的点击那一行得到的内容 data () { return { count: 50, } } methods: { load () { this.count += 50 }, clickTable (row, index, e) { this.count = 50 this.$refs.refTable.toggleRowEx原创 2020-11-12 09:39:43 · 361 阅读 · 0 评论 -
el-tree单选
<el-tree icon-class="el-icon-minus" :data="data" :props="defaultProps" show-checkbox node-key="Id" :check-strictly="true" default-expand-all ref="tree" @check-change="checkChangeTr.原创 2020-10-14 10:10:12 · 323 阅读 · 0 评论