Browse Source
fix: Responsive Col don't support 'flex' prop in ColSize (#41962)
Responsive Col don't support 'flex' prop in ColSize #28961
pull/41983/head
Alexis Sniffer
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
components/grid/col.tsx
|
|
@ -88,6 +88,7 @@ const Col = React.forwardRef<HTMLDivElement, ColProps>((props, ref) => { |
|
|
|
sizeProps.offset || sizeProps.offset === 0, |
|
|
|
[`${prefixCls}-${size}-push-${sizeProps.push}`]: sizeProps.push || sizeProps.push === 0, |
|
|
|
[`${prefixCls}-${size}-pull-${sizeProps.pull}`]: sizeProps.pull || sizeProps.pull === 0, |
|
|
|
[`${prefixCls}-${size}-flex-${sizeProps.flex}`]: sizeProps.flex || sizeProps.flex === 'auto', |
|
|
|
[`${prefixCls}-rtl`]: direction === 'rtl', |
|
|
|
}; |
|
|
|
}); |
|
|
|