@vtj/coder
Version:
VVTJ.PRO 是一个开源的、AI 驱动的 Vue3 企业级应用开发平台,通过 AI 智能体与可视化编排实现高效开发,并支持导出标准 Vue 代码以避免平台锁定。
18 lines (17 loc) • 832 B
TypeScript
import { NodeSchema, MaterialDescription, JSFunction } from '@vtj/core';
import { GlobalApiConfig } from './globalApi';
/**
* Composition 模式模板解析:
* - 预处理 nodes:替换全局 API、ref/computed 的 .value 解包
* - 委托给原 parseTemplate(this. 前缀剥离已能正确处理)
*/
export declare function parseTemplateComposition(children: NodeSchema[], componentMap: Map<string, MaterialDescription>, computedKeys?: string[], context?: Record<string, Set<string>>, parent?: NodeSchema, effectiveMap?: Record<string, GlobalApiConfig>, refs?: Set<string>, computed?: Set<string>, easycomPackages?: Set<string>): {
nodes: string[];
methods: Record<string, JSFunction>;
directives: string[];
components: string[];
importBlocks: {
id: string;
name: string;
}[];
};