import BaseNode from '../common/BaseNode'; import type Attribute from './Attribute__'; import type Event from './Event__'; import type Slot from './Slot__'; import type Logic from './Logic__'; import type ViewBlock from './ViewBlock__'; /** * 页面组件 */ export declare class ViewComponent extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'ViewComponent'; /** * 页面组件名称 */ name: string; /** * 页面组件标题 */ title: string; /** * 页面组件描述 */ description: string; /** * 分组 */ category: string; /** * 组件属性列表 */ attrs: Array; /** * 组件事件列表 */ events: Array; /** * 插槽列表 */ slots: Array; /** * 逻辑列表 */ methods: Array; /** * 平台类型列表 */ children: Array; /** * 页面代码块列表 */ blocks: Array; /** * 主题变量 Map */ variableMap: Record; /** * 国际化配置列表 */ i18nMap: Record>; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): ViewComponent; getAttributeExistingNames(excludedList?: Array): string[]; getAttributeUniqueName(name?: string): string; /** * 插入组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ _insertAttributeAt(name: string, index: number): Attribute; /** * 插入组件属性 * @internal * @param attributeOptions 组件属性参数 */ _insertAttributeAt(attributeOptions: Partial, index: number): Attribute; /** * 插入组件属性 * @internal * @param attribute 已有的组件属性实例 */ _insertAttributeAt(attribute: Attribute, index: number): Attribute; /** * 插入组件属性 * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ insertAttributeAt(name: string, index: number): Attribute; /** * 插入组件属性 * @param attributeOptions 组件属性参数 */ insertAttributeAt(attributeOptions: Partial, index: number): Attribute; /** * 插入组件属性 * @param attribute 已有的组件属性实例 */ insertAttributeAt(attribute: Attribute, index: number): Attribute; /** * 添加组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ _addAttribute(name?: string): Attribute; /** * 添加组件属性 * @internal * @param attributeOptions 组件属性参数 */ _addAttribute(attributeOptions: Partial): Attribute; /** * 添加组件属性 * @internal * @param attribute 已有的组件属性实例 */ _addAttribute(attribute: Attribute): Attribute; /** * 添加组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ addAttribute(name?: string): Attribute; /** * 添加组件属性 * @param attributeOptions 组件属性参数 */ addAttribute(attributeOptions: Partial): Attribute; /** * 添加组件属性 * @param attribute 已有的组件属性实例 */ addAttribute(attribute: Attribute): Attribute; getEventExistingNames(excludedList?: Array): string[]; getEventUniqueName(name?: string): string; /** * 插入组件事件 * @internal * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ _insertEventAt(name: string, index: number): Event; /** * 插入组件事件 * @internal * @param eventOptions 组件事件参数 */ _insertEventAt(eventOptions: Partial, index: number): Event; /** * 插入组件事件 * @internal * @param event 已有的组件事件实例 */ _insertEventAt(event: Event, index: number): Event; /** * 插入组件事件 * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ insertEventAt(name: string, index: number): Event; /** * 插入组件事件 * @param eventOptions 组件事件参数 */ insertEventAt(eventOptions: Partial, index: number): Event; /** * 插入组件事件 * @param event 已有的组件事件实例 */ insertEventAt(event: Event, index: number): Event; /** * 添加组件事件 * @internal * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ _addEvent(name?: string): Event; /** * 添加组件事件 * @internal * @param eventOptions 组件事件参数 */ _addEvent(eventOptions: Partial): Event; /** * 添加组件事件 * @internal * @param event 已有的组件事件实例 */ _addEvent(event: Event): Event; /** * 添加组件事件 * @internal * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ addEvent(name?: string): Event; /** * 添加组件事件 * @param eventOptions 组件事件参数 */ addEvent(eventOptions: Partial): Event; /** * 添加组件事件 * @param event 已有的组件事件实例 */ addEvent(event: Event): Event; getSlotExistingNames(excludedList?: Array): string[]; getSlotUniqueName(name?: string): string; /** * 插入插槽 * @internal * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ _insertSlotAt(name: string, index: number): Slot; /** * 插入插槽 * @internal * @param slotOptions 插槽参数 */ _insertSlotAt(slotOptions: Partial, index: number): Slot; /** * 插入插槽 * @internal * @param slot 已有的插槽实例 */ _insertSlotAt(slot: Slot, index: number): Slot; /** * 插入插槽 * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ insertSlotAt(name: string, index: number): Slot; /** * 插入插槽 * @param slotOptions 插槽参数 */ insertSlotAt(slotOptions: Partial, index: number): Slot; /** * 插入插槽 * @param slot 已有的插槽实例 */ insertSlotAt(slot: Slot, index: number): Slot; /** * 添加插槽 * @internal * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ _addSlot(name?: string): Slot; /** * 添加插槽 * @internal * @param slotOptions 插槽参数 */ _addSlot(slotOptions: Partial): Slot; /** * 添加插槽 * @internal * @param slot 已有的插槽实例 */ _addSlot(slot: Slot): Slot; /** * 添加插槽 * @internal * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ addSlot(name?: string): Slot; /** * 添加插槽 * @param slotOptions 插槽参数 */ addSlot(slotOptions: Partial): Slot; /** * 添加插槽 * @param slot 已有的插槽实例 */ addSlot(slot: Slot): Slot; getLogicExistingNames(excludedList?: Array): string[]; getLogicUniqueName(name?: string): string; /** * 插入逻辑 * @internal * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ _insertLogicAt(name: string, index: number): Logic; /** * 插入逻辑 * @internal * @param logicOptions 逻辑参数 */ _insertLogicAt(logicOptions: Partial, index: number): Logic; /** * 插入逻辑 * @internal * @param logic 已有的逻辑实例 */ _insertLogicAt(logic: Logic, index: number): Logic; /** * 插入逻辑 * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ insertLogicAt(name: string, index: number): Logic; /** * 插入逻辑 * @param logicOptions 逻辑参数 */ insertLogicAt(logicOptions: Partial, index: number): Logic; /** * 插入逻辑 * @param logic 已有的逻辑实例 */ insertLogicAt(logic: Logic, index: number): Logic; /** * 添加逻辑 * @internal * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ _addLogic(name?: string): Logic; /** * 添加逻辑 * @internal * @param logicOptions 逻辑参数 */ _addLogic(logicOptions: Partial): Logic; /** * 添加逻辑 * @internal * @param logic 已有的逻辑实例 */ _addLogic(logic: Logic): Logic; /** * 添加逻辑 * @internal * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ addLogic(name?: string): Logic; /** * 添加逻辑 * @param logicOptions 逻辑参数 */ addLogic(logicOptions: Partial): Logic; /** * 添加逻辑 * @param logic 已有的逻辑实例 */ addLogic(logic: Logic): Logic; getViewComponentExistingNames(excludedList?: Array): string[]; getViewComponentUniqueName(name?: string): string; /** * 插入页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _insertViewComponentAt(name: string, index: number): ViewComponent; /** * 插入页面组件 * @internal * @param viewComponentOptions 页面组件参数 */ _insertViewComponentAt(viewComponentOptions: Partial, index: number): ViewComponent; /** * 插入页面组件 * @internal * @param viewComponent 已有的页面组件实例 */ _insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent; /** * 插入页面组件 * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ insertViewComponentAt(name: string, index: number): ViewComponent; /** * 插入页面组件 * @param viewComponentOptions 页面组件参数 */ insertViewComponentAt(viewComponentOptions: Partial, index: number): ViewComponent; /** * 插入页面组件 * @param viewComponent 已有的页面组件实例 */ insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _addViewComponent(name?: string): ViewComponent; /** * 添加页面组件 * @internal * @param viewComponentOptions 页面组件参数 */ _addViewComponent(viewComponentOptions: Partial): ViewComponent; /** * 添加页面组件 * @internal * @param viewComponent 已有的页面组件实例 */ _addViewComponent(viewComponent: ViewComponent): ViewComponent; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ addViewComponent(name?: string): ViewComponent; /** * 添加页面组件 * @param viewComponentOptions 页面组件参数 */ addViewComponent(viewComponentOptions: Partial): ViewComponent; /** * 添加页面组件 * @param viewComponent 已有的页面组件实例 */ addViewComponent(viewComponent: ViewComponent): ViewComponent; getViewBlockExistingNames(excludedList?: Array): string[]; getViewBlockUniqueName(name?: string): string; /** * 插入页面组件的代码块 * @internal * @param name 页面组件的代码块名称,如果不填会自动生成一个唯一名称 */ _insertViewBlockAt(name: string, index: number): ViewBlock; /** * 插入页面组件的代码块 * @internal * @param viewBlockOptions 页面组件的代码块参数 */ _insertViewBlockAt(viewBlockOptions: Partial, index: number): ViewBlock; /** * 插入页面组件的代码块 * @internal * @param viewBlock 已有的页面组件的代码块实例 */ _insertViewBlockAt(viewBlock: ViewBlock, index: number): ViewBlock; /** * 插入页面组件的代码块 * @param name 页面组件的代码块名称,如果不填会自动生成一个唯一名称 */ insertViewBlockAt(name: string, index: number): ViewBlock; /** * 插入页面组件的代码块 * @param viewBlockOptions 页面组件的代码块参数 */ insertViewBlockAt(viewBlockOptions: Partial, index: number): ViewBlock; /** * 插入页面组件的代码块 * @param viewBlock 已有的页面组件的代码块实例 */ insertViewBlockAt(viewBlock: ViewBlock, index: number): ViewBlock; /** * 添加页面组件的代码块 * @internal * @param name 页面组件的代码块名称,如果不填会自动生成一个唯一名称 */ _addViewBlock(name?: string): ViewBlock; /** * 添加页面组件的代码块 * @internal * @param viewBlockOptions 页面组件的代码块参数 */ _addViewBlock(viewBlockOptions: Partial): ViewBlock; /** * 添加页面组件的代码块 * @internal * @param viewBlock 已有的页面组件的代码块实例 */ _addViewBlock(viewBlock: ViewBlock): ViewBlock; /** * 添加页面组件的代码块 * @internal * @param name 页面组件的代码块名称,如果不填会自动生成一个唯一名称 */ addViewBlock(name?: string): ViewBlock; /** * 添加页面组件的代码块 * @param viewBlockOptions 页面组件的代码块参数 */ addViewBlock(viewBlockOptions: Partial): ViewBlock; /** * 添加页面组件的代码块 * @param viewBlock 已有的页面组件的代码块实例 */ addViewBlock(viewBlock: ViewBlock): ViewBlock; /** * 删除组件属性 * @param name 组件属性名称 */ removeAttribute(name: string): void; /** * 删除组件属性 * @param attribute 已有的组件属性实例 */ removeAttribute(attribute: Attribute): void; /** * 删除组件事件 * @param name 组件事件名称 */ removeEvent(name: string): void; /** * 删除组件事件 * @param event 已有的组件事件实例 */ removeEvent(event: Event): void; /** * 删除插槽 * @param name 插槽名称 */ removeSlot(name: string): void; /** * 删除插槽 * @param slot 已有的插槽实例 */ removeSlot(slot: Slot): void; /** * 删除逻辑 * @param name 逻辑名称 */ removeLogic(name: string): void; /** * 删除逻辑 * @param logic 已有的逻辑实例 */ removeLogic(logic: Logic): void; /** * 删除页面组件 * @param name 页面组件名称 */ removeViewComponent(name: string): void; /** * 删除页面组件 * @param viewComponent 已有的页面组件实例 */ removeViewComponent(viewComponent: ViewComponent): void; /** * 删除页面组件的代码块 * @param name 页面组件的代码块名称 */ removeViewBlock(name: string): void; /** * 删除页面组件的代码块 * @param viewBlock 已有的页面组件的代码块实例 */ removeViewBlock(viewBlock: ViewBlock): void; } export default ViewComponent; //# sourceMappingURL=ViewComponent__.d.ts.map