html
<template #operation="scope">
<div>
<!-- 上移图片 -->
<i class="el-icon-caret-top"
@click="tableUp(scope.$index )"></i>
<!-- 下移图片 -->
<i class="el-icon-caret-bottom"
@click="tableDow(scope.$index )"></i>
</div>
</template>```
## js
```typescript
tableImageDelete (index) {
this.tableConfigView.tableData.splice(index, 1)
},
tableUp (index) {
if (index <= 0) return
const len = this.tableConfigView.tableData[index - 1]
this.$set(this.tableConfigView.tableData, index - 1,
this.tableConfigView.tableData[index])
this.$set(this.tableConfigView.tableData, index, len)
},
tableDow (index) {
if (index >= this.tableConfigView.tableData.length - 1) return
const len = this.tableConfigView.tableData[index + 1]
this.$set(this.tableConfigView.tableData, index + 1,
this.tableConfigView.tableData[index])
this.$set(this.tableConfigView.tableData, index, len)
},```