File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
frontend/src/components/Tag Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const handleClose = () => {
2525<template >
2626 <div
2727 v-if =" show"
28- :class =" [color, size]"
28+ :class =" [' color-' + color, 'size-' + size]"
2929 class =" gui-tag px-8 mx-4 rounded-6 inline-block text-12 whitespace-nowrap inline-flex items-center"
3030 >
3131 <slot ></slot >
@@ -40,33 +40,33 @@ const handleClose = () => {
4040</template >
4141
4242<style lang="less" scoped>
43- .cyan {
43+ .color- cyan {
4444 color : #22a3a7 ;
4545 background-color : #e6fffb ;
4646 border : 1px solid #22a3a7 ;
4747}
48- .green {
48+ .color- green {
4949 color : #389e0d ;
5050 background-color : #f6ffed ;
5151 border : 1px solid #389e0d ;
5252}
53- .red {
53+ .color- red {
5454 color : #d52e3b ;
5555 background-color : #fff1f0 ;
5656 border : 1px solid #d52e3b ;
5757}
58- .default {
58+ .color- default {
5959 color : #3d3d3d ;
6060 background-color : #ffffff ;
6161 border : 1px solid #898989 ;
6262}
63- .primary {
63+ .color- primary {
6464 color : var (--btn-primary-color );
6565 background-color : var (--primary-color );
6666 border : 1px solid var (--secondary-color );
6767}
6868
69- .small {
69+ .size- small {
7070 padding : 0 4px ;
7171 margin : 0 2px ;
7272 font-size : 10px ;
You can’t perform that action at this time.
0 commit comments