Skip to content

Documentation / @geoverse/react / AttributeFormProps

Interface: AttributeFormProps ​

Defined in: react/src/components/attributes.tsx:23

无样式参考组件(功能完整、可整体替换)。零内联样式,结构语义化, 全部交互通过 hooks 驱动;需要自定义渲染时用 render-props 接管。

Properties ​

children? ​

ts
optional children?: (api) => ReactNode;

Defined in: react/src/components/attributes.tsx:30

render-prop:完全接管渲染(拿到草稿与操作)。

Parameters ​

api ​
dirty ​

boolean

reset ​

() => void

save ​

() => void

schema ​

FieldSchema

setField ​

(name, value) => void

values ​

Record<string, unknown>

Returns ​

ReactNode


declared? ​

ts
optional declared?: FieldSchema;

Defined in: react/src/components/attributes.tsx:27

显式字段表;缺省用 session 推断(声明∪推断)。


featureId ​

ts
featureId: string | null | undefined;

Defined in: react/src/components/attributes.tsx:25


onSaved? ​

ts
optional onSaved?: () => void;

Defined in: react/src/components/attributes.tsx:28

Returns ​

void


session ​

ts
session: EditSession;

Defined in: react/src/components/attributes.tsx:24