fix: 代码生成批量删除相关 setCheckedIds -> handleRowCheckboxChange、deleteIds -> checkedIds 然后注释去掉

This commit is contained in:
puhui999
2025-06-06 16:03:13 +08:00
parent 2c9032e595
commit 2abe2e21bc
12 changed files with 81 additions and 83 deletions

View File

@@ -73,10 +73,8 @@ async function handleDeleteBatch() {
}
}
// TODO @puhui999方法名改成 handleRowCheckboxChange注释处理选中表格行
// TODO @puhui999deleteIds => checkedIds然后注释去掉
const checkedIds = ref<number[]>([]); // 待删除示例联系人 ID
function setCheckedIds({
const checkedIds = ref<number[]>([]);
function handleRowCheckboxChange({
records,
}: {
records: Demo01ContactApi.Demo01Contact[];
@@ -121,8 +119,8 @@ const [Grid, gridApi] = useVbenVxeGrid({
},
} as VxeTableGridOptions<Demo01ContactApi.Demo01Contact>,
gridEvents: {
checkboxAll: setCheckedIds,
checkboxChange: setCheckedIds,
checkboxAll: handleRowCheckboxChange,
checkboxChange: handleRowCheckboxChange,
},
});
</script>