
vue
IT_小小程序员
这个作者很懒,什么都没留下…
展开
-
el-table selection复选框只选择一个
首先在 el-table 标签上添加, ref=“tableInfo” @select=“selectRow” @select-all=“selectAll” 再在 methods 中添加以下方法 select(selection, row) { // 选择项大于1时 if (selection.length > 1) { let del_row = selection.shift(); this.$refs.tableInfo.toggleRowSelection(del_row, false);原创 2020-07-22 16:46:34 · 2104 阅读 · 1 评论 -
dialog 弹窗关闭事件
<el-dialog title=“房间” :visible.sync=“dialog” @close=‘close’> //关闭弹框的事件 close(){ console.log(‘close’) }原创 2020-07-22 16:40:54 · 2387 阅读 · 0 评论