mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-17 23:50:52 +08:00
fix: Form 与 Grid 样式冲突问题 (#44472)
* fix: style * fix: style * chore: ref
This commit is contained in:
parent
a95662d0e1
commit
345a3a0624
@ -1,4 +1,5 @@
|
|||||||
import type { CSSObject } from '@ant-design/cssinjs';
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||||||
|
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
|
|
||||||
@ -92,7 +93,8 @@ const genLoopGridColumnsStyle = (token: GridColToken, sizeCls: string): CSSObjec
|
|||||||
const gridColumnsStyle: CSSObject = {};
|
const gridColumnsStyle: CSSObject = {};
|
||||||
for (let i = gridColumns; i >= 0; i--) {
|
for (let i = gridColumns; i >= 0; i--) {
|
||||||
if (i === 0) {
|
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',
|
display: 'none',
|
||||||
};
|
};
|
||||||
gridColumnsStyle[`${componentCls}-push-${i}`] = {
|
gridColumnsStyle[`${componentCls}-push-${i}`] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user