We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf52f73 commit c018b7eCopy full SHA for c018b7e
components/badge/Badge.jsx
@@ -81,8 +81,10 @@ export default {
81
},
82
getBadgeClassName(prefixCls) {
83
const children = filterEmpty(this.$slots.default);
84
+ const hasStatus = this.hasStatus();
85
return classNames(prefixCls, {
- [`${prefixCls}-status`]: this.hasStatus(),
86
+ [`${prefixCls}-status`]: hasStatus,
87
+ [`${prefixCls}-dot-status`]: hasStatus && this.dot && !this.isZero(),
88
[`${prefixCls}-not-a-wrapper`]: !children.length,
89
});
90
components/badge/style/index.less
@@ -114,6 +114,10 @@
114
}
115
116
117
+ &-dot-status {
118
+ line-height: 1;
119
+ }
120
+
121
&-zoom-appear,
122
&-zoom-enter {
123
animation: antZoomBadgeIn 0.3s @ease-out-back;
0 commit comments