From 8f476756de6687e1c3b9574e197e4e5f2fceefb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B1=AA?= <1844749591@qq.com> Date: Mon, 9 Dec 2024 13:38:42 +0800 Subject: [PATCH] chore: remove conductCheck --- src/OptionList.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/OptionList.tsx b/src/OptionList.tsx index 61810ddc..a23a793e 100644 --- a/src/OptionList.tsx +++ b/src/OptionList.tsx @@ -13,7 +13,6 @@ import type { DataNode, FieldNames, Key, SafeKey } from './interface'; import { getAllKeys, isCheckDisabled } from './utils/valueUtil'; import { useEvent } from 'rc-util'; import { formatStrategyValues } from './utils/strategyUtil'; -import { conductCheck } from 'rc-tree/lib/utils/conductUtil'; const HIDDEN_STYLE = { width: 0, @@ -210,9 +209,8 @@ const OptionList: React.ForwardRefRenderFunction = (_, // calculate disabled state const selectableNodeKeys = getSelectableKeys(node, fieldNames); const simulatedCheckedKeys = [...checkedKeys, ...selectableNodeKeys]; - const { checkedKeys: conductedKeys } = conductCheck(simulatedCheckedKeys, true, keyEntities); const simulatedDisplayValues = formatStrategyValues( - conductedKeys as SafeKey[], + simulatedCheckedKeys as SafeKey[], showCheckedStrategy, keyEntities, fieldNames,