1
0
mirror of synced 2025-12-09 07:08:22 +08:00
This commit is contained in:
xuliangzhan
2023-10-25 08:34:43 +08:00
parent 2847a20cd5
commit 13e4c43cb8

View File

@@ -209,7 +209,7 @@ const editHook: VxeGlobalHooksHandles.HookOptions = {
}
// 如果是插入指定行的下一行
if (isInsertNextRow) {
afIndex = Math.max(afterFullData.length, afIndex + 1)
afIndex = Math.min(afterFullData.length, afIndex + 1)
}
if (afIndex === -1) {
throw new Error(errLog('vxe.error.unableInsert'))