fix: badge dot status position not correct #2121

pull/2150/head
tanjinzhou 2020-04-23 11:45:05 +08:00
parent bf52f73c5c
commit c018b7ec06
2 changed files with 7 additions and 1 deletions

View File

@ -81,8 +81,10 @@ export default {
},
getBadgeClassName(prefixCls) {
const children = filterEmpty(this.$slots.default);
const hasStatus = this.hasStatus();
return classNames(prefixCls, {
[`${prefixCls}-status`]: this.hasStatus(),
[`${prefixCls}-status`]: hasStatus,
[`${prefixCls}-dot-status`]: hasStatus && this.dot && !this.isZero(),
[`${prefixCls}-not-a-wrapper`]: !children.length,
});
},

View File

@ -114,6 +114,10 @@
}
}
&-dot-status {
line-height: 1;
}
&-zoom-appear,
&-zoom-enter {
animation: antZoomBadgeIn 0.3s @ease-out-back;