File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -333,12 +333,13 @@ class LazyLoad extends Component {
333333 height,
334334 children,
335335 placeholder,
336+ className,
336337 classNamePrefix,
337338 style
338339 } = this . props ;
339340
340341 return (
341- < div className = { `${ classNamePrefix } -wrapper` } ref = { this . setRef } style = { style } >
342+ < div className = { `${ classNamePrefix } -wrapper ${ className } ` } ref = { this . setRef } style = { style } >
342343 { this . visible ? (
343344 children
344345 ) : placeholder ? (
@@ -355,6 +356,7 @@ class LazyLoad extends Component {
355356}
356357
357358LazyLoad . propTypes = {
359+ className : PropTypes . string ,
358360 classNamePrefix : PropTypes . string ,
359361 once : PropTypes . bool ,
360362 height : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) ,
@@ -375,6 +377,7 @@ LazyLoad.propTypes = {
375377} ;
376378
377379LazyLoad . defaultProps = {
380+ className : '' ,
378381 classNamePrefix : 'lazyload' ,
379382 once : false ,
380383 offset : 0 ,
You can’t perform that action at this time.
0 commit comments