forked from Tencent/tdesign-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Tencent#3004
- Loading branch information
Showing
5 changed files
with
70 additions
and
1 deletion.
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 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