FlowModel Flow and Configuration
FlowModel provides a "Flow"-based approach to implement component configuration logic, making component behavior and configuration more extensible and visual.
Custom Model
You can create a custom component model by extending FlowModel. The model needs to implement the render() method to define the component's rendering logic.
Registering a Flow
Each model can register one or more Flows to describe the component's configuration logic and interaction steps.
Description
key: The unique identifier for the Flow.title: The name of the Flow, used for UI display.steps: Defines the configuration steps (Step). Each step includes:title: The step title.uiSchema: The configuration form structure (compatible with Formily Schema).defaultParams: Default parameters.handler(ctx, params): Triggered on save to update the model's state.
Rendering the Model
When rendering a component model, you can use the showFlowSettings parameter to control whether to enable the configuration feature. If showFlowSettings is enabled, a configuration entry (such as a settings icon or button) will automatically appear in the upper-right corner of the component.
Manually Opening the Configuration Form with openFlowSettings
In addition to opening the configuration form through the built-in interaction entry, you can also manually call
openFlowSettings().

