File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,26 @@ class LazyLoadImage extends React.Component {
101101
102102LazyLoadImage . propTypes = {
103103 afterLoad : PropTypes . func ,
104+ beforeLoad : PropTypes . func ,
105+ delayMethod : PropTypes . string ,
106+ delayTime : PropTypes . number ,
104107 effect : PropTypes . string ,
105- placeholderSrc : PropTypes . string
108+ placeholderSrc : PropTypes . string ,
109+ threshold : PropTypes . number ,
110+ visibleByDefault : PropTypes . bool ,
111+ wrapperClassName : PropTypes . string
106112} ;
107113
108114LazyLoadImage . defaultProps = {
109115 afterLoad : ( ) => ( { } ) ,
110- effect : ''
116+ beforeLoad : ( ) => ( { } ) ,
117+ delayMethod : 'throttle' ,
118+ delayTime : 300 ,
119+ effect : '' ,
120+ placeholderSrc : '' ,
121+ threshold : 100 ,
122+ visibleByDefault : false ,
123+ wrapperClassName : ''
111124} ;
112125
113126export default LazyLoadImage ;
You can’t perform that action at this time.
0 commit comments