Skip to content

Commit

Permalink
fix: Form 与 Grid 样式冲突问题 (#44472)
Browse files Browse the repository at this point in the history
* fix: style

* fix: style

* chore: ref
  • Loading branch information
crazyair committed Aug 28, 2023
1 parent a95662d commit 345a3a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/grid/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs';

import type { FullToken, GenerateStyle } from '../../theme/internal';
import { genComponentStyleHook, mergeToken } from '../../theme/internal';

Expand Down Expand Up @@ -92,7 +93,8 @@ const genLoopGridColumnsStyle = (token: GridColToken, sizeCls: string): CSSObjec
const gridColumnsStyle: CSSObject = {};
for (let i = gridColumns; i >= 0; i--) {
if (i === 0) {
gridColumnsStyle[`${componentCls}${sizeCls}-${i}`] = {
// ref: https://github.com/ant-design/ant-design/issues/44456
gridColumnsStyle[`${componentCls}${componentCls}${componentCls}${sizeCls}-${i}`] = {
display: 'none',
};
gridColumnsStyle[`${componentCls}-push-${i}`] = {
Expand Down

0 comments on commit 345a3a0

Please sign in to comment.