@@ -43,7 +43,7 @@ class App extends React.Component {
<ImageList>
{photoImages.map((item, index) => (
<PhotoConsumer key={index} src={item} intro={item}>
- <SmallImage />
+ {index < 2 ? <SmallImage src={item} /> : undefined}
</PhotoConsumer>
))}
</ImageList>
@@ -89,8 +89,6 @@ export default class PhotoSlider extends React.Component<
canPullClose: true,
};
this.handleResize = debounce(this.handleResize, 32);
- // 避免事件穿透
- this.handlePhotoMaskTap = debounce(this.handlePhotoMaskTap, 200);
}
componentDidMount() {