File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,26 @@ class LazyLoadImage extends React.Component {
101
101
102
102
LazyLoadImage . propTypes = {
103
103
afterLoad : PropTypes . func ,
104
+ beforeLoad : PropTypes . func ,
105
+ delayMethod : PropTypes . string ,
106
+ delayTime : PropTypes . number ,
104
107
effect : PropTypes . string ,
105
108
placeholderSrc : PropTypes . string ,
109
+ threshold : PropTypes . number ,
110
+ visibleByDefault : PropTypes . bool ,
111
+ wrapperClassName : PropTypes . string ,
106
112
} ;
107
113
108
114
LazyLoadImage . defaultProps = {
109
115
afterLoad : ( ) => ( { } ) ,
116
+ beforeLoad : ( ) => ( { } ) ,
117
+ delayMethod : 'throttle' ,
118
+ delayTime : 300 ,
110
119
effect : '' ,
120
+ placeholderSrc : '' ,
121
+ threshold : 100 ,
122
+ visibleByDefault : false ,
123
+ wrapperClassName : '' ,
111
124
} ;
112
125
113
126
export default LazyLoadImage ;
You can’t perform that action at this time.
0 commit comments