Skip to main content
Version: 2.x

API Reference > @next-core/brick-kit

brick-kit package

The core kit of Brick Next.

Classes

ClassDescription
ModalElement模态框类构件的抽象基类。
UpdatingElement普通构件的抽象基类。

Functions

FunctionDescription
batchSetAppsLocalTheme
BrickAsComponent可以渲染 useBrick 的 React 组件。
BrickWrapper构件的 React 组件包装器,包含 ErrorBoundary, ConfigProvider, FeatureFlagsProvider。
DisplayByFeatureFlags特性开关 React 组件
EasyopsEmpty用于展示空数据的 React 组件。
event_2构件事件装饰器。
getAuth获取当前登录认证信息。
getCssPropertyValue
getCurrentTheme
getHistory获取系统会话历史管理器。
getRuntime获取系统运行时对象。
handleHttpError处理 http 请求错误(使用 AntDesign 模态框弹出错误信息)。
httpErrorToString将 http 请求错误转换为可读的字符串。
i18nText
isLoggedIn查看当前是否已登录。
looseCheckIfByTransform给定一个数据源,根据表达式计算条件判断的结果。
method构件方法装饰器。
property构件属性装饰器。
renderEasyopsEmpty调用后获得一个默认的展示空数据的 React 组件。
useApplyPageTitle设置页面标题,将更新浏览器标签页显示的标题。
useCurrentApp获取当前所在微应用信息的 React hooks。
useCurrentMode
useCurrentTheme
useFeatureFlags显示特性开关
useProvider

Interfaces

InterfaceDescription
AbstractRuntime系统运行时对象(抽象类型)。
DoTransformOptions
EasyopsEmptyProps
EventDeclaration构件事件的选项。
EventEmitter事件发送器
GetMicroAppsOptions查询微应用列表时的选项。
IfContainer包含 if 条件判断的对象。
PropertyDeclarationDefines options for a property accessor.
ThemeSetting

Variables

VariableDescription
FeatureFlagsProvider
ForwardRefSingleBrickAsComponent
getMockInfo
SingleBrickAsComponent可以渲染单个 useBrick 的 React 组件。