@@ -141,9 +141,11 @@ const TableWrapper = styled.div<{
141141} > `
142142 max-height: 100%;
143143 overflow-y: auto;
144- background: white ;
144+ background: ${ ( props ) => props . $style . background } ;
145145 border: ${ ( props ) => `${ props . $style . borderWidth } solid ${ props . $style . border } ` } ;
146146 border-radius: ${ ( props ) => props . $style . radius } ;
147+ padding: ${ ( props ) => props . $style . padding } ;
148+ margin: ${ ( props ) => props . $style . margin } ;
147149
148150 .ant-table-wrapper {
149151 border-top: ${ ( props ) => ( props . $toolbarPosition === "above" ? "1px solid" : "unset" ) } ;
@@ -194,11 +196,11 @@ const TableWrapper = styled.div<{
194196 > .ant-table-thead {
195197 > tr > th {
196198 background-color: ${ ( props ) => props . $headerStyle . headerBackground } ;
197- border-color: ${ ( props ) => props . $style . border } ;
199+ border-color: ${ ( props ) => props . $headerStyle . border } ;
198200 border-width: ${ ( props ) => props . $headerStyle . borderWidth } ;
199- color: ${ ( props ) => props . $style . headerText } ;
201+ color: ${ ( props ) => props . $headerStyle . headerText } ;
200202 font-size: ${ ( props ) => props . $headerStyle . textSize } ;
201- border-inline-end: ${ ( props ) => `${ props . $headerStyle . borderWidth } solid ${ props . $style . border } ` } !important;
203+ border-inline-end: ${ ( props ) => `${ props . $headerStyle . borderWidth } solid ${ props . $headerStyle . border } ` } !important;
202204 ${ ( props ) =>
203205 props . $fixedHeader && `
204206 position: sticky;
@@ -208,19 +210,23 @@ const TableWrapper = styled.div<{
208210 `
209211 }
210212
213+ > div {
214+ margin: ${ ( props ) => props . $headerStyle . margin } ;
215+ }
216+
211217 &:last-child {
212218 border-inline-end: none !important;
213219 }
214220 &.ant-table-column-has-sorters:hover {
215- background-color: ${ ( props ) => darkenColor ( props . $style . headerBackground , 0.05 ) } ;
221+ background-color: ${ ( props ) => darkenColor ( props . $headerStyle . headerBackground , 0.05 ) } ;
216222 }
217223
218224 > .ant-table-column-sorters > .ant-table-column-sorter {
219- color: ${ ( props ) => props . $style . headerText === defaultTheme . textDark ? "#bfbfbf" : props . $style . headerText } ;
225+ color: ${ ( props ) => props . $headerStyle . headerText === defaultTheme . textDark ? "#bfbfbf" : props . $headerStyle . headerText } ;
220226 }
221227
222228 &::before {
223- background-color: ${ ( props ) => props . $style . border } ;
229+ background-color: ${ ( props ) => props . $headerStyle . border } ;
224230 }
225231 }
226232 }
@@ -310,6 +316,8 @@ const TableTd = styled.td<{
310316 border-color: ${ ( props ) => props . $style . border } !important;
311317 border-width: ${ ( props ) => props . $style . borderWidth } !important;
312318 border-radius: ${ ( props ) => props . $style . radius } ;
319+ margin: ${ ( props ) => props . $style . margin } ;
320+
313321 padding: 0 !important;
314322
315323 > div {
@@ -488,6 +496,7 @@ function TableCellView(props: {
488496
489497 const style = {
490498 background : cellColor || rowColor || columnStyle . background || columnsStyle . background ,
499+ margin : columnStyle . margin || columnsStyle . margin ,
491500 text : columnStyle . text || columnsStyle . text ,
492501 border : columnStyle . border || columnsStyle . border ,
493502 radius : columnStyle . radius || columnsStyle . radius ,
0 commit comments