问题描述: 每次编辑成功保存后table总是高亮第一行
需求 :不希望高亮行
<el-table
border
:data="list"
highlight-current-row
@current-change="handleSelectChange"
@selection-change="handleDeletList"
ref="monthlyPlanTable" //注册引用信息
>
</table>
watch: {
list: function() {
this.$nextTick(function() {
this.record = undefined
this.$refs.monthlyPlanTable.setCurrentRow(this.record) //给表格默认选中行设置undefine
})
}
},