Skip to main content
Version: Latest(3.11)

ViewComponentDeclaration 页面组件

1. 结构声明

class ViewComponentDeclaration extends BaseNode {
name: string = '';
kebabName!: string;
title: string;
group!: string;
icon!: string;
description?: string;
tsTypeParams?: TSExpression;
props: Array<PropDeclaration>;
readableProps: Array<PropDeclaration>;
events: Array<EventDeclaration>;
slots: Array<SlotDeclaration>;
methods: Array<LogicDeclaration>;
children: Array<ViewComponentDeclaration>;
blocks: Array<ViewBlockWithImage>;
themeVariables: Array<ThemeVariable>;
i18nMap?: Map<string, Map<string, string>>;
}