Skip to main content
Version: 2.x

API Reference > @next-core/brick-kit > AbstractRuntime > registerLazyBricks

AbstractRuntime.registerLazyBricks() method

注册懒加载的构件。

Signature:

registerLazyBricks(bricks: string | string[], factory: LazyBrickImportFunction): void;

Parameters

ParameterTypeDescription
bricksstring | string[]一个或多个构件。
factoryLazyBrickImportFunction动态加载函数(import() 调用)。

Returns:

void