行编辑自定义添加,一次添加多条会卡顿

Blade 未结 1 59
丹丘生
丹丘生 2025-12-11 16:57

一、该问题的重现步骤是什么?

1. 

<avue-crud

          ref="crud"

          :option="templateOption"

          :data="form.settlementTemplate"

          v-model="formData"

          @row-update="addUpdate"

          @row-save="rowSave"

          @row-del="rowDel"

          ><template #menu-right>

            <el-button type="primary" text @click="copyTemplate">复制模板el-button>

          template>

          <template #menu="{ row, index }">

            <el-button

              v-if="row.$cellEdit && form.settlementTemplate.length > 1"

              type="primary"

              text

              @click="crud.rowCancel(row, index)"

              >取消el-button

            >

            <el-button

              type="primary"

              v-if="form.settlementTemplate.length > 1"

              text

              @click="crud.rowDel(row, index)"

              >删除el-button

            >

            <el-button type="primary" text @click="AddTemplate(row, index)">新增一行el-button>

          template>

2. 

const AddTemplate = (row, index) => {

  form.value.settlementTemplate.splice(index + 1, 0, { $cellEdit: true, isLadder: 0 });

};

3.自定义新增一行,一次添加10-20条就会卡顿


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

1条回答
  •  admin
    admin (楼主)
    2025-12-11 18:08

    bug类问题都需要在这里发工单解决哦:https://gitee.com/smallweigit/avue/issues


    我们这边主要负责前端业务方面的功能和后端底层的问题

    0 讨论(0)
提交回复