Skip to content

Commit b4757f7

Browse files
李钿李钿
authored andcommitted
修改 demo
1 parent 09ff86c commit b4757f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ class App extends Component {
4343
<div className="app">
4444
<div className="img-list">
4545
<button onClick={this.openViewer.bind(this, 0)}>点击打开图片</button>
46-
{/*{
46+
{
4747
this.state.imags.map((item, index) => {
4848
return <div className="img" key={item}>
4949
<img src={item} alt="" onClick={this.openViewer.bind(this, index)} width="100%" height="auto" className=""/>
5050
</div>
5151
})
52-
}*/}
52+
}
5353
</div>
5454
{
5555
isOpen ? <WxImageViewer onClose={this.onClose} urls={this.state.imags} index={index}/> : ""

0 commit comments

Comments
 (0)