ISortableTreeEntity
Defined in: rxdb-plugin-tree/src/entity/tree-entity.interface.ts:28
支持手动排序的树形实体接口。
在 ITreeEntity 基础上要求实体声明 sortOrder 字段(通常用 fractional indexing
如 generateKeyBetween 产生)。拖放、手动排序等场景的算法约束类型。
Extends
Properties
createdAt
createdAt: Date;
Defined in: rxdb/dist/entity/entity.interface.d.ts:131
创建时间
Inherited from
createdBy?
optional createdBy?: string | null;
Defined in: rxdb/dist/entity/entity.interface.d.ts:139
创建人
Inherited from
hasChildren?
optional hasChildren?: boolean | null;
Defined in: rxdb-plugin-tree/src/entity/tree-entity.interface.ts:19
是否有子节点。由 TreeAdjacencyListEntityBase 的计算属性自动填充,应用层只读。
未启用 features.tree.hasChildren 的实体此字段为 null。
Inherited from
id
id: RxDBEntityId;
Defined in: rxdb/dist/entity/entity.interface.d.ts:127
id
Inherited from
parentId?
optional parentId?: RxDBEntityId | null;
Defined in: rxdb-plugin-tree/src/entity/tree-entity.interface.ts:14
父节点主键。与 IEntity.id 同属 RxDBEntityId 域 ——
一棵树的 parentId 指向的正是另一个节点的 id,两者必须允许同样的类型
(string | number | bigint),否则数值主键的树在类型层根本无法表达。
Inherited from
sortOrder?
optional sortOrder?: string | null;
Defined in: rxdb-plugin-tree/src/entity/tree-entity.interface.ts:29
updatedAt
updatedAt: Date;
Defined in: rxdb/dist/entity/entity.interface.d.ts:135
更新时间
Inherited from
updatedBy?
optional updatedBy?: string | null;
Defined in: rxdb/dist/entity/entity.interface.d.ts:143
更新人