Skip to content

Commit

Permalink
修改 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
李钿 authored and 李钿 committed Jul 7, 2017
1 parent 09ff86c commit b4757f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ class App extends Component {
<div className="app">
<div className="img-list">
<button onClick={this.openViewer.bind(this, 0)}>点击打开图片</button>
{/*{
{
this.state.imags.map((item, index) => {
return <div className="img" key={item}>
<img src={item} alt="" onClick={this.openViewer.bind(this, index)} width="100%" height="auto" className=""/>
</div>
})
}*/}
}
</div>
{
isOpen ? <WxImageViewer onClose={this.onClose} urls={this.state.imags} index={index}/> : ""
Expand Down

0 comments on commit b4757f7

Please sign in to comment.