<el-table-column label="地址" prop="mac" align="center"></el-table-column> <el-table-column label="类型" prop="type" align="center"></el-table-column> <el-table-column label="组" prop="group" align="center"></el-table-column> <el-table-column label="域" prop="zoom" align=...
2、cell-mouse-enter:当单元格 hover 进入时会触发该事件 3、row-click:当某一行被点击时会触发该事件 图例 image.png <template><divstyle="padding:20px"><el-table:data="tableData"style="width: 100%"height="400"borderref="refTable":header-cell-style="{ background: '#F2F2F2', color: '#...
有了isSelected属性后我们可以控制每一项名称的<el-input>和<p>标签的显示隐藏,从而来实现点击单元格即自动聚焦修改名称 <templateslot-scope="scope"><el-inputv-if="scope.row.isSelected"v-model="scope.row.name"@focus="focusEvent(scope.row)"@blur="blurEvent(scope.row)"v-focus></el-input><p@c...