We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb4bfd commit c8e7640Copy full SHA for c8e7640
src/components/TreeSearch.vue
@@ -224,11 +224,11 @@ function search(keyword1?: string): Promise<void> {
224
//#region Event handlers
225
/** 处理全选点击 */
226
function handleCheckAll(): void {
227
- const keyField = treeRef.value?.keyField
+ const keyField = props.keyField
228
if (props.searchDisabled || checkAllStatus.disabled || !treeRef.value || !keyField) return
229
230
const currentVisibleKeys = treeRef.value.getCurrentVisibleNodes().map((node: TreeNode) => node[keyField])
231
- if (checkAllStatus.checked || checkAllStatus.indeterminate) {
+ if (checkAllStatus.checked) {
232
// 反选
233
treeRef.value.setCheckedKeys(currentVisibleKeys, false)
234
} else {
0 commit comments