diff --git a/components/tag/demo/control.vue b/components/tag/demo/control.vue
index db9be2e58..2b0c2f749 100644
--- a/components/tag/demo/control.vue
+++ b/components/tag/demo/control.vue
@@ -1,11 +1,11 @@
-
+
handleClose(tag)">
{{`${tag.slice(0, 20)}...`}}
-
+
handleClose(tag)">
{{tag}}
@@ -21,11 +21,13 @@
@blur="handleInputConfirm"
@keyup.enter="handleInputConfirm"
/>
- + New Tag
+
+ New Tag
+
diff --git a/components/tag/style/index.less b/components/tag/style/index.less
index dea1715cd..faeda062b 100644
--- a/components/tag/style/index.less
+++ b/components/tag/style/index.less
@@ -4,12 +4,13 @@
@tag-prefix-cls: ~"@{ant-prefix}-tag";
.@{tag-prefix-cls} {
+ .reset-component;
display: inline-block;
line-height: 20px;
height: 22px;
- padding: 0 8px;
+ padding: 0 7px;
border-radius: @border-radius-base;
- border: @border-width-base @border-style-base @border-color-split;
+ border: @border-width-base @border-style-base @border-color-base;
background: @tag-default-bg;
font-size: @tag-font-size;
transition: all 0.3s @ease-out;
@@ -39,13 +40,13 @@
.@{iconfont-css-prefix}-cross {
.iconfont-size-under-12px(10px);
cursor: pointer;
- font-weight: bold;
margin-left: 3px;
- transition: all 0.3s @ease-out;
- opacity: 0.66;
+ transition: all .3s;
+ color: @text-color-secondary;
+ font-weight: bold;
&:hover {
- opacity: 1;
+ color: @heading-color;
}
}
@@ -85,31 +86,29 @@
}
&-zoom-enter,
- &-zoom-enter-active {
- animation: antFadeIn 0.2s @ease-in-out-circ;
+ &-zoom-appear {
+ animation: antFadeIn .2s @ease-in-out-circ;
animation-fill-mode: both;
}
- &-zoom-leave-active {
- animation: antZoomOut 0.3s @ease-in-out-circ;
+ &-zoom-leave {
+ animation: antZoomOut .3s @ease-in-out-circ;
animation-fill-mode: both;
- width: 0 !important;
- padding: 0;
- margin: 0;
}
- @colors: pink, red, orange, yellow, cyan, green, blue, purple;
+ @colors: pink, magenta, red, volcano, orange, yellow, gold, cyan, lime, green, blue, geekblue, purple;
// mixin to iterate over colors and create CSS class for each one
.make-color-classes(@i: length(@colors)) when (@i > 0) {
.make-color-classes(@i - 1);
@color: extract(@colors, @i);
- @lightColor: "@{color}-2";
+ @lightColor: "@{color}-1";
+ @lightBorderColor: "@{color}-3";
@darkColor: "@{color}-6";
&-@{color} {
color: @@darkColor;
background: @@lightColor;
- border-color: @@lightColor;
+ border-color: @@lightBorderColor;
}
&-@{color}-inverse {
background: @@darkColor;
diff --git a/contributors.md b/contributors.md
index 9f097fc4c..bc433b6a4 100644
--- a/contributors.md
+++ b/contributors.md
@@ -8,7 +8,7 @@ Radio | done
Tabs | done
Tag | done
ToolTip | done
-Popconfirm
+Popconfirm | done
Popover | done
Menu
Carousel
diff --git a/examples/routes.js b/examples/routes.js
index 03faeafb0..6c08b5a26 100644
--- a/examples/routes.js
+++ b/examples/routes.js
@@ -3,7 +3,7 @@ const AsyncComp = () => {
const com = pathnameArr[1] || 'button'
const demo = pathnameArr[2] || 'index'
return {
- component: import(`../components/radio/demo/${demo}.vue`),
+ component: import(`../components/tag/demo/${demo}.vue`),
}
}
export default [