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: 开放static组件, 增加static事件配置 #8621

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

yinchunyu
Copy link
Contributor

@yinchunyu yinchunyu commented Nov 3, 2023

What

🤖 Generated by Copilot at 1c3fc33

Added a new feature of static display for form items in amis-editor. Updated the StaticControlPlugin class to handle the rendering and events of the static control. Exported the Static module from the plugin index file.

🤖 Generated by Copilot at 1c3fc33

Static module exports
Form items show as static
No warning in fall

Why

How

🤖 Generated by Copilot at 1c3fc33

  • Import RendererPluginEvent type to define static control plugin events (link)
  • Remove disabledRendererPlugin property from StaticControlPlugin class, as static control is now supported by static display feature (link)
  • Remove alert component that warned about static control deprecation from StaticControlPlugin class (link)
  • Add events property to StaticControlPlugin class, to handle click, mouseenter, and mouseleave events for static control and define data schema for each event (link)
  • Export Static module from plugin index file, to make static control plugin available for editor (link)

@github-actions github-actions bot added the feat label Nov 3, 2023
Copy link

github-actions bot commented Nov 3, 2023

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

Please review the labels and make any necessary changes.

@igrowp igrowp merged commit 7687203 into baidu:master Nov 6, 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

3 participants