UNPKG

737 BTypeScriptView Raw
1import { ControllerCtor } from './base';
2/**
3 * 全局注册组件。
4 * @param name 组件名称
5 * @param plugin 注册的组件类
6 * @returns void
7 */
8export declare function registerComponentController(name: string, plugin: ControllerCtor): void;
9/**
10 * 删除全局组件。
11 * @param name 组件名
12 * @returns void
13 */
14export declare function unregisterComponentController(name: string): void;
15/**
16 * 获取以注册的组件名。
17 * @returns string[] 返回已注册的组件名称
18 */
19export declare function getComponentControllerNames(): string[];
20/**
21 * 根据组件名获取组件类。
22 * @param name 组件名
23 * @returns 返回组件类
24 */
25export declare function getComponentController(name: string): ControllerCtor;