@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
19 lines (18 loc) • 716 B
TypeScript
import { type Component } from "solid-js";
export declare const ControlCenter: {
store: Map<any, any>;
register<D extends string>(name: D, api: any, opts?: import("@cn-ui/reactive").BlackBoardOption): Map<any, any> | undefined;
getApp<D extends string>(name: D): any;
deleteFn: (name: string) => void;
check(name: string): boolean;
destroy(): void;
};
/**
* 注册所有的 Form 控件
* @example
* await registerAllControlComponent(true)
* preload: true 表示预加载所有组件,false 表示不预加载,[] 表示预加载指定的组件
*/
export declare const registerAllControlComponent: (preload?: boolean | string[]) => Promise<({
default: Component;
} | undefined)[]>;