amis-theme-editor
Version:
amis主题编辑器
19 lines (18 loc) • 528 B
TypeScript
export interface componentProps {
type: string;
label: string;
key: string;
component: any;
}
export declare function getComponent(key: string): any;
export declare function getAllComponent(): {
label: string;
key: string;
children: componentProps[];
}[];
export declare function hasComponent(name: string): boolean;
export declare function registerComponent(key: string, component: componentProps): void;
export declare function registerGroup(option: {
key: string;
label: string;
}): void;