diff --git a/components/spin/style/index.ts b/components/spin/style/index.ts index 2eccec181..31bfec2b2 100644 --- a/components/spin/style/index.ts +++ b/components/spin/style/index.ts @@ -42,6 +42,12 @@ const genSpinStyle: GenerateStyle = (token: SpinToken): CSSObject => '&-nested-loading': { position: 'relative', + [`> div:first-child`]: { + width: '100%', + height: '100%', + position: 'absolute', + }, + [`> div > ${token.componentCls}`]: { position: 'absolute', top: 0,