From 5444098ab7e1f695b8b5181081c886db79880dbd Mon Sep 17 00:00:00 2001
From: dap <15891557205@163.com>
Date: Tue, 7 Jan 2025 15:19:25 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/tree/src/menu-select-table.vue | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/apps/web-antd/src/components/tree/src/menu-select-table.vue b/apps/web-antd/src/components/tree/src/menu-select-table.vue
index 2e5f234a..88b9a8a9 100644
--- a/apps/web-antd/src/components/tree/src/menu-select-table.vue
+++ b/apps/web-antd/src/components/tree/src/menu-select-table.vue
@@ -10,7 +10,7 @@ import { nextTick, onMounted, ref, shallowRef, watch } from 'vue';
import { cloneDeep, findGroupParentIds } from '@vben/utils';
-import { Alert, Checkbox, message, RadioGroup, Space } from 'ant-design-vue';
+import { Alert, Checkbox, RadioGroup, Space } from 'ant-design-vue';
import { uniq } from 'lodash-es';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
@@ -247,13 +247,7 @@ async function handleAssociationChange(e: RadioChangeEvent) {
// 滚动到顶部
await tableApi.grid.scrollTo(0, 0);
- // 从节点关联切换到节点独立
- // 由于节点独立兼容节点关联 设置选中
- // if (e.target.value) {
- // setTableChecked(lastCheckedKeys.value, records, tableApi, false);
- // } else {
- // setTableChecked(lastCheckedKeys.value, records, tableApi, true);
- // }
+ // 节点切换 不同的选中
setTableChecked(lastCheckedKeys.value, records, tableApi, !e.target.value);
updateCheckedNumber();
@@ -353,11 +347,6 @@ function getCheckedKeys() {
defineExpose({
getCheckedKeys,
});
-
-function test() {
- const keys = getCheckedKeys();
- message.success(`keys:${keys.length}`);
-}
@@ -385,7 +374,6 @@ function test() {
- 测试
{{ $t('pages.common.collapse') }}