Appearance
Documentation / @geoverse/react / UseFeatureAttributes
Interface: UseFeatureAttributes
Defined in: react/src/hooks/attributes.ts:50
Properties
committed
ts
committed: Record<string, unknown>;Defined in: react/src/hooks/attributes.ts:54
引擎中已提交的属性(草稿的基线)。
dirty
ts
dirty: boolean;Defined in: react/src/hooks/attributes.ts:56
草稿是否与基线不同。
values
ts
values: Record<string, unknown>;Defined in: react/src/hooks/attributes.ts:52
可编辑的草稿副本(受控输入绑定它)。
Methods
reset()
ts
reset(): void;Defined in: react/src/hooks/attributes.ts:61
丢弃草稿、回到基线。
Returns
void
save()
ts
save(): EditResult | undefined;Defined in: react/src/hooks/attributes.ts:59
把草稿与基线的差异 commit 为可撤销的 SetProperties;无变更返回 undefined。
Returns
EditResult | undefined
setField()
ts
setField(name, value): void;Defined in: react/src/hooks/attributes.ts:57
Parameters
name
string
value
unknown
Returns
void
