File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,24 @@ const Space = {
49
49
50
50
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align ;
51
51
52
- const someSpaceClass = {
53
- [ prefixCls ] : true ,
54
- [ `${ prefixCls } -${ direction } ` ] : true ,
55
- // [`${prefixCls}-rtl`]: directionConfig === 'rtl',
56
- [ `${ prefixCls } -align-${ mergedAlign } ` ] : mergedAlign ,
57
- } ;
52
+ const someSpaceClass = [
53
+ {
54
+ [ prefixCls ] : true ,
55
+ [ `${ prefixCls } -${ direction } ` ] : true ,
56
+ // [`${prefixCls}-rtl`]: directionConfig === 'rtl',
57
+ [ `${ prefixCls } -align-${ mergedAlign } ` ] : mergedAlign ,
58
+ } ,
59
+ ] ;
60
+
61
+ if ( content . data . class ) {
62
+ someSpaceClass . push ( content . data . class ) ;
63
+ }
58
64
59
65
const itemClassName = `${ prefixCls } -item` ;
60
66
const marginDirection = 'marginRight' ; // directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
61
67
62
68
return (
63
- < div class = { someSpaceClass } >
69
+ < div { ... content . data } class = { someSpaceClass } >
64
70
{ items . map ( ( child , i ) => (
65
71
< div
66
72
class = { itemClassName }
You can’t perform that action at this time.
0 commit comments