fix(@vben/web-antd): erp-product-category移除erp产品分类未使用的复选框处理逻辑,简化代码

pull/198/head
xuzhiqiang 2025-08-14 14:56:39 +08:00
parent 5eaeab0cff
commit 2a655a04c9
1 changed files with 0 additions and 13 deletions

View File

@ -68,15 +68,6 @@ async function handleDelete(row: ErpProductCategoryApi.ProductCategory) {
}
}
const checkedIds = ref<number[]>([]);
function handleRowCheckboxChange({
records,
}: {
records: ErpProductCategoryApi.ProductCategory[];
}) {
checkedIds.value = records.map((item) => item.id as number);
}
const [Grid, gridApi] = useVbenVxeGrid({
gridOptions: {
columns: useGridColumns(),
@ -107,10 +98,6 @@ const [Grid, gridApi] = useVbenVxeGrid({
accordion: false,
},
} as VxeTableGridOptions<ErpProductCategoryApi.ProductCategory>,
gridEvents: {
checkboxAll: handleRowCheckboxChange,
checkboxChange: handleRowCheckboxChange,
},
});
</script>