We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa33fbd commit 69ba803Copy full SHA for 69ba803
example/App.jsx
@@ -42,13 +42,14 @@ class App extends Component {
42
return (
43
<div className="app">
44
<div className="img-list">
45
- {
+ <button onClick={this.openViewer.bind(this, 0)}>点击打开图片</button>
46
+ {/*{
47
this.state.imags.map((item, index) => {
48
return <div className="img" key={item}>
49
<img src={item} alt="" onClick={this.openViewer.bind(this, index)} width="100%" height="auto" className=""/>
50
</div>
51
})
- }
52
+ }*/}
53
54
{
55
isOpen ? <WxImageViewer onClose={this.onClose} urls={this.state.imags} index={index}/> : ""
0 commit comments