diff --git a/examples/routers/tag.vue b/examples/routers/tag.vue
index c847fe5..4c8e793 100644
--- a/examples/routers/tag.vue
+++ b/examples/routers/tag.vue
@@ -14,7 +14,13 @@
标签三
标签四
+ 标签一
+ 标签二
+ 标签三
+ 标签四
+
标签一
+ 标签一
标签二
标签三
标签四
diff --git a/src/components/tag/tag.vue b/src/components/tag/tag.vue
index dc01d99..8ab9bd1 100644
--- a/src/components/tag/tag.vue
+++ b/src/components/tag/tag.vue
@@ -59,13 +59,13 @@
];
},
wraperStyles () {
- return oneOf(this.color, initColorList) ? {} : {background: this.defaultTypeColor, borderColor: this.lineColor, color: this.lineColor};
+ return oneOf(this.color, initColorList) ? {} : {background: this.isChecked ? this.defaultTypeColor : 'transparent', borderWidth: '1px', borderStyle: 'solid', borderColor: this.lineColor, color: this.lineColor};
},
textClasses () {
return [
`${prefixCls}-text`,
this.type === 'border' ? (oneOf(this.color, initColorList) ? `${prefixCls}-color-${this.color}` : '') : '',
- (this.type !== 'dot' && this.type !== 'border' && this.color !== 'default') ? `${prefixCls}-color-white` : ''
+ (this.type !== 'dot' && this.type !== 'border' && this.color !== 'default') ? (this.isChecked ? `${prefixCls}-color-white` : '') : ''
];
},
dotClasses () {
@@ -96,7 +96,7 @@
return this.color !== undefined ? (oneOf(this.color, initColorList) ? '' : this.color) : '';
},
textColorStyle () {
- return oneOf(this.color, initColorList) ? {} : {color: this.lineColor};
+ return oneOf(this.color, initColorList) ? {} : ((this.type !== 'dot' && this.type !== 'border') ? (this.isChecked ? {color: this.lineColor} : {}) : {color: this.lineColor});
},
bgColorStyle () {
return oneOf(this.color, initColorList) ? {} : {background: this.dotColor};
--
libgit2 0.21.4