Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 补充form和crud的事件动作面板 #7068

Merged
merged 3 commits into from
Jun 2, 2023

Conversation

miaoxinyu01
Copy link
Contributor

@miaoxinyu01 miaoxinyu01 commented Jun 2, 2023

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

Oh we are the coders of the FormPlugin class
We add new events to make it more robust
We heave and we ho on the count of three
And we wait for the asyncApiFinished to see

Why

How

🤖 Generated by Copilot at 5f8b197

  • Import getSchemaTpl helper function from ../renderer/event-control/helper to generate schema template for event control component (link)
  • Add event definitions for CRUD events such as columnSort, columnFilter, columnToggle, rowClick, etc. to CRUDPlugin class (link)
  • Add action definition for setValue action that can update component data by assigning a value to a variable (link)
  • Add event section to CRUDPlugin class that renders event control component using getSchemaTpl and getEventControlConfig helper functions (link)
  • Add asyncApiFinished event definition for Form component (link)
    • Add event definition for asyncApiFinished event that is emitted when asyncApi remote request polling is finished to FormPlugin class (link)

@github-actions github-actions bot added the feat label Jun 2, 2023
@github-actions
Copy link

github-actions bot commented Jun 2, 2023

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

},
{
eventName: 'asyncApiFinished',
eventLabel: '远程请求轮训结束',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

轮询

@hsm-lv hsm-lv merged commit 719d733 into baidu:master Jun 2, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants