feat(button): 添加 loadingColor 属性支持自定义 loading 图标颜色#6043
Open
guangzan wants to merge 1 commit intoyouzan:devfrom
Open
feat(button): 添加 loadingColor 属性支持自定义 loading 图标颜色#6043guangzan wants to merge 1 commit intoyouzan:devfrom
guangzan wants to merge 1 commit intoyouzan:devfrom
Conversation
Author
|
有大佬帮忙 review 下吗 |
支持通过 loadingColor 属性自定义按钮加载图标的颜色,当未指定时保持原有逻辑 feat(button): 添加 loadingColor 属性支持自定义加载图标颜色
ceaa0ef to
9aef216
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
当前 button 组件的 loading 图标颜色是根据
type、color、plain属性计算的,但在某些场景下(如自定义了 color 属性后),计算得到的颜色与按钮背景色对比度不足,影响视觉效果。改动
loadingColor属性,支持自定义 loading 图标颜色loadingColor属性说明备注
此改动应该完全向后兼容,不影响现有代码。