@@ -354,13 +354,14 @@ var LazyLoad = function (_Component) {
354
354
height = _props2 . height ,
355
355
children = _props2 . children ,
356
356
placeholder = _props2 . placeholder ,
357
+ className = _props2 . className ,
357
358
classNamePrefix = _props2 . classNamePrefix ,
358
359
style = _props2 . style ;
359
360
360
361
361
362
return _react2 . default . createElement (
362
363
'div' ,
363
- { className : classNamePrefix + '-wrapper' , ref : this . setRef , style : style } ,
364
+ { className : classNamePrefix + '-wrapper ' + className , ref : this . setRef , style : style } ,
364
365
this . visible ? children : placeholder ? placeholder : _react2 . default . createElement ( 'div' , {
365
366
style : { height : height } ,
366
367
className : classNamePrefix + '-placeholder'
@@ -373,6 +374,7 @@ var LazyLoad = function (_Component) {
373
374
} ( _react . Component ) ;
374
375
375
376
LazyLoad . propTypes = {
377
+ className : _propTypes2 . default . string ,
376
378
classNamePrefix : _propTypes2 . default . string ,
377
379
once : _propTypes2 . default . bool ,
378
380
height : _propTypes2 . default . oneOfType ( [ _propTypes2 . default . number , _propTypes2 . default . string ] ) ,
@@ -390,6 +392,7 @@ LazyLoad.propTypes = {
390
392
} ;
391
393
392
394
LazyLoad . defaultProps = {
395
+ className : '' ,
393
396
classNamePrefix : 'lazyload' ,
394
397
once : false ,
395
398
offset : 0 ,
0 commit comments