Skip to content

Documentation / @geoverse/react / HistoryPanelProps

Interface: HistoryPanelProps

Defined in: react/src/components/history.tsx:26

Properties

children?

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

Defined in: react/src/components/history.tsx:32

render-prop:完全接管渲染。

Parameters

api
error

Error | null

loading

boolean

reload

() => void

restore

(version) => void

versions

FeatureVersion[]

Returns

ReactNode


featureId

ts
featureId: string | null | undefined;

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


onRestored?

ts
optional onRestored?: (version) => void;

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

回滚成功后回调(如触发提交)。

Parameters

version

number

Returns

void


session

ts
session: EditSession;

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