修复类型导入缺失及Props类型断言格式

This commit is contained in:
2026-04-13 16:41:11 +08:00
parent 1270bd7d02
commit 79364b951d

View File

@@ -45,8 +45,8 @@
:platforms="platforms"
:nodeCommands="nodeCommands"
:element="selectedNodeTaskElement"
:graph="graph as any"
:node="selectedModelNode as any"
:graph="(graph as any)"
:node="(selectedModelNode as any)"
:tree="currentBehaviorTree"
:tree-editing="currentTreeEditing"
@update-element="handleUpdateElement" />
@@ -74,7 +74,7 @@ import { createGraphTaskElementFromTemplate } from './utils';
import { createGraphTaskElement, createLineOptions, type GraphContainer, type GraphTaskElement, hasElements, hasRootElementNode, resolveGraph, useGraphCanvas } from '../graph';
import { registerNodeElement } from './register';
import { findAllBasicPlatforms, findAllNodeCommands } from '../api';
import type { Platform } from '../types';
import type { NodeCommand, Platform } from '../types';
import { createTree, findOneTreeById, findOneTreeByPlatformId, updateTree } from './api';
import TressCard from './trees-card.vue';
import NodesCard from './nodes-card.vue';