ElementUI table组件,表格组件,单击单元格可编辑逻辑

ElementUI table组件,表格组件,单击单元格可编辑逻辑

 1、表格部分



  

2、方法部分

changeSort (row, column) {
  if (column.label === '排序') {
    row.seen = true
    this.changeSortVal = ''
    ElementMsg(this, 'info', `选中排序值:${row.sort}`)
  } else {
    ElementMsg(this, 'info', `当前位置没有人`)
  }
},
confirmSort (index, row) {
  row.seen = false
}

 

你可能感兴趣的:(vue,elementui)