MadCcc
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
components/badge/style/index.ts
|
|
@ -1,8 +1,8 @@ |
|
|
|
import type { CSSObject } from '@ant-design/cssinjs'; |
|
|
|
import { Keyframes } from '@ant-design/cssinjs'; |
|
|
|
import type { FullToken, GenerateStyle } from '../../theme/internal'; |
|
|
|
import { genComponentStyleHook, mergeToken, genPresetColor } from '../../theme/internal'; |
|
|
|
import { resetComponent } from '../../style'; |
|
|
|
import type { FullToken, GenerateStyle } from '../../theme/internal'; |
|
|
|
import { genComponentStyleHook, genPresetColor, mergeToken } from '../../theme/internal'; |
|
|
|
|
|
|
|
interface BadgeToken extends FullToken<'Badge'> { |
|
|
|
badgeFontHeight: number; |
|
|
@ -150,9 +150,9 @@ const genSharedBadgeStyle: GenerateStyle<BadgeToken> = (token: BadgeToken): CSSO |
|
|
|
insetInlineEnd: 0, |
|
|
|
transform: 'translate(50%, -50%)', |
|
|
|
transformOrigin: '100% 0%', |
|
|
|
[`${iconCls}-spin`]: { |
|
|
|
[`&${iconCls}-spin`]: { |
|
|
|
animationName: antBadgeLoadingCircle, |
|
|
|
animationDuration: token.motionDurationMid, |
|
|
|
animationDuration: '1s', |
|
|
|
animationIterationCount: 'infinite', |
|
|
|
animationTimingFunction: 'linear', |
|
|
|
}, |
|
|
|