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:组件数据支持变量 #6780

Merged
merged 5 commits into from
May 5, 2023
Merged

Conversation

hsm-lv
Copy link
Collaborator

@hsm-lv hsm-lv commented May 5, 2023

What

🤖 Generated by Copilot at 2a67385

This pull request enhances the data binding capabilities of various components in the amis-editor package by adding a new 'variable' source option that allows users to bind data from context variables or expressions. It also refactors some common logic and UI elements into a new schema template named sourceBindControl and applies it to several plugins. Additionally, it removes some unnecessary description properties and adds mouse event handlers to the Tag component.

🤖 Generated by Copilot at 2a67385

We bind the data from the source of power
We use the schema templates to devour
We change the controls to unleash the fire
We are the masters of the variable empire

Why

How

🤖 Generated by Copilot at 2a67385

  • Replace the input-text and expressionFormulaControl schemas with the sourceBindControl schema template in various plugins to use a common and consistent way to bind data from the context variables or expressions (link, link, link, link, link, link, link). The files affected are Images.tsx, List.tsx, Table.tsx, Tabs.tsx, OptionControl.tsx, TransferTableControl.tsx, and TreeOptionControl.tsx.

@hsm-lv hsm-lv requested a review from 2betop May 5, 2023 06:02
@github-actions
Copy link

github-actions bot commented May 5, 2023

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

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the feat label May 5, 2023
@hsm-lv hsm-lv requested a review from igrowp May 5, 2023 08:49
@hsm-lv hsm-lv merged commit 421fe76 into baidu:master May 5, 2023
3 checks passed
@hsm-lv hsm-lv deleted the feat-comp-context branch May 9, 2023 05:08
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