const listTemp = [..._this.tableList]
const oldValue = listTemp.splice(oldIndex, 1)[0]
listTemp.splice(newIndex, 0, oldValue)
_this.tableList = [] //先清空表格数据
_this.$nextTick(() => {
_this.tableList = listTemp
})
el-table 拖拽移动之后 编号不变 - 解决方法
最新推荐文章于 2024-01-15 15:22:30 发布