Skip to content

Commit 69ba803

Browse files
李钿李钿
authored andcommitted
修改查看触发
1 parent aa33fbd commit 69ba803

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

example/App.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ class App extends Component {
4242
return (
4343
<div className="app">
4444
<div className="img-list">
45-
{
45+
<button onClick={this.openViewer.bind(this, 0)}>点击打开图片</button>
46+
{/*{
4647
this.state.imags.map((item, index) => {
4748
return <div className="img" key={item}>
4849
<img src={item} alt="" onClick={this.openViewer.bind(this, index)} width="100%" height="auto" className=""/>
4950
</div>
5051
})
51-
}
52+
}*/}
5253
</div>
5354
{
5455
isOpen ? <WxImageViewer onClose={this.onClose} urls={this.state.imags} index={index}/> : ""

0 commit comments

Comments
 (0)