[nit] Remove unused provide in TreeExplorer (#3100)

This commit is contained in:
Chenlei Hu
2025-03-17 12:26:35 -04:00
committed by GitHub
parent d57d12b426
commit b36f748a78

View File

@@ -51,9 +51,7 @@ import {
} from '@/types/treeExplorerTypes'
const expandedKeys = defineModel<Record<string, boolean>>('expandedKeys')
provide('expandedKeys', expandedKeys)
const selectionKeys = defineModel<Record<string, boolean>>('selectionKeys')
provide('selectionKeys', selectionKeys)
// Tracks whether the caller has set the selectionKeys model.
const storeSelectionKeys = selectionKeys.value !== undefined
@@ -114,7 +112,6 @@ const onNodeContentClick = async (
}
const menu = ref(null)
const menuTargetNode = ref<RenderedTreeExplorerNode | null>(null)
provide('menuTargetNode', menuTargetNode)
const extraMenuItems = computed(() => {
return menuTargetNode.value?.contextMenuItems
? typeof menuTargetNode.value.contextMenuItems === 'function'