naiveUI,table组件

您好,使用的naiveUI,table组件收集的数据,在删除某一列时,如果报损商品这一列的下一行的数据为空的话,删除这一行的信息会在数据为空的那一行显示;但是显示数据的那一行,我打印他的数据,是为空的;报损商品这个select是封装的一个组件;

//数据是tableLIst,这里也是封装的组件,这个tablist是公共的,两个组件不同情况加入了不同数据
const tableList = ref([{
  goods_model: '',
  num: null,
  shelves: null,
  layers: null,
  batch_No: '',
  goods_modelShow: false,
  numShow: false,
  shelvesShow: false,
  layersShow: false,
  shelvesArr: [],
  shelvesValue:null,
  // layersArr: [],
  maxNum: null,
}]) as any
// 删除按钮 使用的索引和splice删除的
function dataSplice(index: number) {
  if(index > 0) {
    tableList.value.splice(index, 1)
  }
}

img

img

没明白你的意思,是点完删除后,当前行的报损商品处也要清空值吗?