-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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>
- Loading branch information
Showing
8 changed files
with
257 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<div> | ||
<p class="color-picker"> | ||
<t-space align="center"> | ||
<label>调整颜色查看效果</label> | ||
<t-color-picker :color-modes="['monochrome']" v-model="color"></t-color-picker> | ||
</t-space> | ||
</p> | ||
<t-space direction="horizontal"> | ||
<t-space> | ||
<t-tag theme="primary" :color="color">默认</t-tag> | ||
</t-space> | ||
<t-space> | ||
<t-tag :color="color" variant="light">浅色</t-tag> | ||
</t-space> | ||
<t-space> | ||
<t-tag :color="color" variant="outline">outline</t-tag> | ||
</t-space> | ||
<t-space> | ||
<t-tag :color="color" variant="light-outline">light-outline</t-tag> | ||
</t-space> | ||
</t-space> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
data() { | ||
return { | ||
color: 'rgb(0, 82, 217)', | ||
}; | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="less" scoped> | ||
.color-picker { | ||
margin-bottom: 20px; | ||
} | ||
</style> |
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
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
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
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.