Skip to main content
Version: 2.x

API Reference > @next-core/brick-types > BaseEntityResolveConf

BaseEntityResolveConf interface

实体类的异步数据处理的基本配置信息。

Signature:

export interface BaseEntityResolveConf

Properties

PropertyTypeDescription
argsunknown[]需要传递给 method 的参数列表。
fieldstring | string[]使用返回数据的指定字段作为数据源。
ifstring | boolean根据条件决定是否执行该动作。
methodstring将要执行的构件的方法名,默认为 resolve
namestring将数据源直接赋值给指定的这个属性。
onRejectHandleReject当异步数据处理抛出错误时,使用该错误对象作为数据源进行转换来作为最终结果。
transformGeneralTransform数据转换配置。
transformFromstring | string[]使用返回数据的指定字段作为数据源。
transformMapArrayboolean | "auto"设置在数据转换中对数组的映射处理模式。