跳到主要内容

useCountDescendants()

function useCountDescendants<T>(EntityType, options): RxDBResource<number>;

Defined in: use-tree.ts:41

统计树实体的后代数量。

Type Parameters​

Type Parameter
T extends TreeEntityType

Parameters​

ParameterTypeDescription
EntityTypeT树实体类型。
optionsUseOptions<EntityStaticType<T, "countDescendantsOptions">>树查询选项或幂等 factory。

Returns​

RxDBResource<number>

以 0 为初值的数量资源。