Skip to main content
Version: 2.x

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

AbstractRuntime interface

系统运行时对象(抽象类型)。

Signature:

export interface AbstractRuntime

Methods

MethodDescription
applyPageTitle(pageTitle)Apply the page title in browser.
fetchMenu(menuId)Fetch menu by ID.
getBasePath()Get site's base path, generally will be /next/ or /.
getCurrentApp()获得当前所在的微应用信息。
getCurrentMode()Get Site's current mode.
getCurrentTheme()Get site's current theme.
getFeatureFlags()获取特性开关字典。
getMicroApps(options)获取微应用列表。
getMiscSettings()获取杂项配置。
hasInstalledApp(appId, matchVersion)查看是否已安装某应用。
registerCustomProcessor(processorFullName, processorFunc)注册一个自定义加工函数。
registerCustomTemplate(tplName, tplConstructor, appId)注册一个自定义模板。
registerLazyBricks(bricks, factory)注册懒加载的构件。