Appearance
Documentation / @geoverse/vue / UseFeatureHistory
Interface: UseFeatureHistory
Defined in: composables/history.ts:27
历史面板 headless composables(RFC-0006 V1/V2)——只读查询走 session.history / session.snapshots,回滚走 session.restoreToVersion。异步契约故暴露 loading/error/reload; featureId 变化或本地编辑(engine.on)后自动重载。
Properties
error
ts
error: ShallowRef<Error | null>;Defined in: composables/history.ts:30
loading
ts
loading: Ref<boolean>;Defined in: composables/history.ts:29
versions
ts
versions: ShallowRef<FeatureVersion[]>;Defined in: composables/history.ts:28
Methods
reload()
ts
reload(): void;Defined in: composables/history.ts:31
Returns
void
restore()
ts
restore(version): Promise<EditResult>;Defined in: composables/history.ts:32
Parameters
version
number
Returns
Promise<EditResult>
