Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
🤖 Generated by Copilot at 5f8b197
This pull request enhances the CRUD and Form plugins of the amis-editor package by allowing users to configure event handlers for various scenarios. It adds a new
asyncApiFinished
event to the Form plugin, and a new event control component to the CRUD plugin. It also updates the schema templates and definitions for the plugins.🤖 Generated by Copilot at 5f8b197
Why
How
🤖 Generated by Copilot at 5f8b197
getSchemaTpl
helper function from../renderer/event-control/helper
to generate schema template for event control component (link)columnSort
,columnFilter
,columnToggle
,rowClick
, etc. toCRUDPlugin
class (link)setValue
action that can update component data by assigning a value to a variable (link)CRUDPlugin
class that renders event control component usinggetSchemaTpl
andgetEventControlConfig
helper functions (link)asyncApiFinished
event definition for Form component (link)asyncApiFinished
event that is emitted when asyncApi remote request polling is finished toFormPlugin
class (link)