@@ -226,13 +226,14 @@ class BootstrapTable extends Component {
226
226
let sortIndicator = this . props . options . sortIndicator ;
227
227
if ( typeof this . props . options . sortIndicator === 'undefined' ) sortIndicator = true ;
228
228
return (
229
- < div className = 'react-bs-table-container' >
229
+ < div className = 'react-bs-table-container' style = { this . props . containerStyle } >
230
230
{ toolBar }
231
- < div className = 'react-bs-table' ref = 'table' style = { style }
231
+ < div className = 'react-bs-table' ref = 'table' style = { { ... style , ... this . props . tableStyle } }
232
232
onMouseEnter = { this . handleMouseEnter }
233
233
onMouseLeave = { this . handleMouseLeave } >
234
234
< TableHeader
235
235
ref = 'header'
236
+ style = { this . props . headerStyle }
236
237
rowSelectType = { this . props . selectRow . mode }
237
238
hideSelectColumn = { this . props . selectRow . hideSelectColumn }
238
239
sortName = { sortInfo ? sortInfo . sortField : undefined }
@@ -247,7 +248,7 @@ class BootstrapTable extends Component {
247
248
{ this . props . children }
248
249
</ TableHeader >
249
250
< TableBody ref = 'body'
250
- style = { style }
251
+ style = { { ... style , ... this . props . bodyStyle } }
251
252
data = { this . state . data }
252
253
columns = { columns }
253
254
trClassName = { this . props . trClassName }
@@ -793,6 +794,10 @@ BootstrapTable.propTypes = {
793
794
search : PropTypes . bool ,
794
795
columnFilter : PropTypes . bool ,
795
796
trClassName : PropTypes . any ,
797
+ tableStyle : PropTypes . object ,
798
+ containerStyle : PropTypes . object ,
799
+ headerStyle : PropTypes . object ,
800
+ bodyStyle : PropTypes . object ,
796
801
options : PropTypes . shape ( {
797
802
clearSearch : PropTypes . bool ,
798
803
sortName : PropTypes . string ,
@@ -862,6 +867,10 @@ BootstrapTable.defaultProps = {
862
867
multiColumnSearch : false ,
863
868
columnFilter : false ,
864
869
trClassName : '' ,
870
+ tableStyle : undefined ,
871
+ containerStyle : undefined ,
872
+ headerStyle : undefined ,
873
+ bodyStyle : undefined ,
865
874
options : {
866
875
clearSearch : false ,
867
876
sortName : undefined ,
0 commit comments