mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 17:30:07 +00:00
[TS] Use custom TreeNode type (#3164)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { TreeNode } from 'primevue/treenode'
|
||||
import { Ref } from 'vue'
|
||||
|
||||
import type { TreeNode } from '@/types/treeExplorerTypes'
|
||||
|
||||
export function useTreeExpansion(expandedKeys: Ref<Record<string, boolean>>) {
|
||||
const toggleNode = (node: TreeNode) => {
|
||||
if (node.key && typeof node.key === 'string') {
|
||||
|
||||
Reference in New Issue
Block a user