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

fix:组件特性动作中执行全局变量修改 #8650

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

hsm-lv
Copy link
Collaborator

@hsm-lv hsm-lv commented Nov 7, 2023

What

🤖 Generated by Copilot at 28b3376

This pull request enhances component actions and improves code quality. It allows using global variables in setValue actions, and adds a new hook beforeSetData in CmptAction.ts.

🤖 Generated by Copilot at 28b3376

Sing, O Muse, of the skillful coder who devised
A way to use global variables in setValue actions,
And who, with cunning, cleared away the cluttered code
That hindered the performance of the component hooks.

Why

How

🤖 Generated by Copilot at 28b3376

  • Add a hook for custom logic before setting global variables in component actions (link)
  • Remove redundant code for handling the hook in CmptAction.ts (link)

@github-actions github-actions bot added the fix label Nov 7, 2023
Copy link

github-actions bot commented Nov 7, 2023

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

Please review the labels and make any necessary changes.

@2betop 2betop merged commit f9ef049 into baidu:master Nov 7, 2023
5 checks passed
@hsm-lv hsm-lv deleted the fix-action branch November 14, 2023 02:57
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