diff --git a/examples/routers/tag.vue b/examples/routers/tag.vue index f29306f..185b351 100644 --- a/examples/routers/tag.vue +++ b/examples/routers/tag.vue @@ -14,6 +14,11 @@ 标签三 标签四

+ 标签一 + 标签二 + 标签三 + 标签四 +

标签一 标签二 标签三 diff --git a/src/components/tag/tag.vue b/src/components/tag/tag.vue index 1acc31f..b0e6f64 100644 --- a/src/components/tag/tag.vue +++ b/src/components/tag/tag.vue @@ -1,16 +1,17 @@ + \ No newline at end of file diff --git a/src/styles/components/tag.less b/src/styles/components/tag.less index 5f91969..c5c4b45 100644 --- a/src/styles/components/tag.less +++ b/src/styles/components/tag.less @@ -27,6 +27,24 @@ } } + &-color{ + &-red{ + color: @error-color !important; + } + &-green{ + color: @success-color !important; + } + &-blue{ + color: @link-color !important; + } + &-yellow{ + color: @warning-color !important; + } + &-white{ + color: rgb(255, 255, 255) !important; + } + } + &-dot{ height: 32px; line-height: 32px; @@ -54,13 +72,13 @@ &-border{ height: 24px; line-height: 24px; - border: 1px solid @border-color-split !important; - color: @text-color !important; + border: 1px solid @border-color-split; + color: @border-color-split; background: #fff !important; position: relative; .@{tag-close-prefix-cls} { - color: #666 !important; + color: #666; margin-left: 12px !important; } @@ -68,7 +86,7 @@ content: ""; display: none; width: 1px; - background: @border-color-split; + background: currentColor; position: absolute; top: 0; bottom: 0; @@ -137,7 +155,7 @@ &, a, a:hover { - color: @text-color; + // color: @text-color; } &-text { @@ -146,6 +164,7 @@ margin: 0 -8px; padding: 0 8px; } + color: @text-color; } .@{tag-close-prefix-cls} { -- libgit2 0.21.4