Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BeMxself
Copy link
Contributor

@BeMxself BeMxself commented Feb 8, 2025

What

  • 新增 ActionIgnoreKey 和 CmptIgnoreMap 两个全局变量,用于存储动作和组件的忽略键
  • 新增 registerActionMappingIgnoreKey、registerActionMappingIgnoreMap、registerComponentActionMappingIgnoreKey 和 registerComponentActionMappingIgnoreMap 四个方法,用于注册忽略键
  • 重构 runAction 方法,使用新的忽略键逻辑
  • 注册默认的忽略键,包括 ajax 动作和一些组件的 condition 属性

Why

  • 现在动作的参数映射忽略键是硬编码的,在增加自定义组件、自定义动作时灵活性受限

How

  • 导出注册方法,各个模块可以自行注册忽略键

- 新增 ActionIgnoreKey 和 CmptIgnoreMap 两个全局变量,用于存储动作和组件的忽略键
- 新增 registerActionMappingIgnoreKey、registerActionMappingIgnoreMap、registerComponentActionMappingIgnoreKey 和 registerComponentActionMappingIgnoreMap 四个方法,用于注册忽略键
- 重构 runAction 方法,使用新的忽略键逻辑
- 注册默认的忽略键,包括 ajax 动作和一些组件的 condition 属性
@github-actions
Copy link

github-actions bot commented Feb 8, 2025

👍 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 Feb 8, 2025
@hsm-lv hsm-lv merged commit fa256f0 into baidu:master Feb 14, 2025
4 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.

3 participants