-
Notifications
You must be signed in to change notification settings - Fork 363
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(Tag): 增加自定义颜色参数 #3101
Merged
Merged
feat(Tag): 增加自定义颜色参数 #3101
Conversation
This file contains 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
chaishi
reviewed
Mar 6, 2024
uyarn
reviewed
Mar 14, 2024
uyarn
reviewed
Mar 14, 2024
uyarn
reviewed
Mar 14, 2024
uyarn
reviewed
Mar 14, 2024
uyarn
reviewed
Mar 14, 2024
16 tasks
uyarn
approved these changes
Mar 14, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
16 tasks
Merged
16 tasks
uyarn
added a commit
that referenced
this pull request
Apr 11, 2024
* feat(tag): add color attribute to t-tag in order to customize tag color feat #3004 * feat: tag自定义颜色下light和light-outline的背景色使用计算的色阶展示 feat #3004 * feat: 补充缺失的类型 * refactor(tag): 将获取颜色样式的代码抽取成方法 * feat(tag): 改用chorma计算色阶 * chore: update snapshot * chore: update demo display * feat(tag): use transparent color for the light mode t-tag when using with color props * chore: update snapshot * feat: 补充类型声明 & 清理多余依赖 --------- Co-authored-by: Uyarn <uyarnchen@gmail.com>
uyarn
added a commit
that referenced
this pull request
Apr 11, 2024
* chore: update group code (#3111) * feat(Tag): 增加自定义颜色参数 (#3101) * feat(tag): add color attribute to t-tag in order to customize tag color feat #3004 * feat: tag自定义颜色下light和light-outline的背景色使用计算的色阶展示 feat #3004 * feat: 补充缺失的类型 * refactor(tag): 将获取颜色样式的代码抽取成方法 * feat(tag): 改用chorma计算色阶 * chore: update snapshot * chore: update demo display * feat(tag): use transparent color for the light mode t-tag when using with color props * chore: update snapshot * feat: 补充类型声明 & 清理多余依赖 --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> * fix(transfer): trigger exception for the search event (#3118) * chore: fix image locale and update snapshot (#3119) * fix(loading): export directive alias (#3120) Co-authored-by: yojim <chenyujian@oigcn.cn> * feat(TagInput): expand the deletion function of collapsedItems(#2941) (#2942) * feat(TagInput): expand the deletion function of collapsedItems(#2941) * fix(TagInput): onClose parameter(#2941) * chore: update api * chore: update api * chore: update api * chore: update api --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> * fix(checkbox): checkboxGroup max effects disable status * docs(dialog): add comment for usage precautions (#3126) * fix(date-picker): over parse when valueType is Date (#3127) * fix(date-picker): over parse when valueType is Date * chore: fix lint * docs(dialog): mention destroy DOM elements in dialog.md (#3125) * docs(dialog): mention destroy DOM elements in dialog.md * docs(dialog): add more specific description in dialog.md * docs(dialog): update translations in dialog.en-US.md * docs(dialog): update colons in dialog.en-US.md * fix(menu): remove usage of `height` in menu demos (#3135) * fix(menu): remove usage of `height` in menu demos * fix(menu): update snapshots * fix(table): use the `fixedRows` property console to report errors (#3134) * fix(Transfer): fix tree data filter error (#3137) * fix(Transfer): fix tree data filter error * fix(Transfer): fix tree data filter error * fix(datepicker): fix datepicker week parse error (#3138) * chore: rename loading directive export (#3140) * chore: release 1.9.2 (#3139) * chore: release 1.9.2 * chore: update snapshot --------- Co-authored-by: maoyiluo <43943796+maoyiluo@users.noreply.github.com> Co-authored-by: betavs <34408516+betavs@users.noreply.github.com> Co-authored-by: Yoki <yujian0108@gmail.com> Co-authored-by: yojim <chenyujian@oigcn.cn> Co-authored-by: odinlin <topazur@163.com> Co-authored-by: LoopZhou <13745660+LoopZhou@users.noreply.github.com> Co-authored-by: Lyan-u <46185702+Lyan-u@users.noreply.github.com> Co-authored-by: Yunfei Shen <shenyf0608@163.com>
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.
🤔 这个 PR 的性质是?
🔗 相关 Issue
#3004
💡 需求背景和解决方案
增加
color
参数。当color
参数被传入时,根据不同的variant
进行标签颜色的修改dark:
this.color
this.color
的亮度进行计算,如果亮度 > 0.5使用黑色,反之使用白light
this.color
light-outline
this.color
this.color
outline
this.color
this.color
效果:

📝 更新日志
feat(tag):
Tag
组件新增color
API,支持自定义颜色本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单