Commit 8adfef61c3340a36719ccdcd1f557b1586aeddc6
1 parent
40bc3c81
fix: pick image from pixabay gallery
Showing
2 changed files
with
2 additions
and
2 deletions
front-end/h5/src/components/core/support/image-gallery/gallery.js
| @@ -55,7 +55,7 @@ export default { | @@ -55,7 +55,7 @@ export default { | ||
| 55 | this.handleSelectImage(item) | 55 | this.handleSelectImage(item) |
| 56 | }}/> | 56 | }}/> |
| 57 | case 'pixabay': | 57 | case 'pixabay': |
| 58 | - return <PixabayTab onChange={item => { | 58 | + return <PixabayTab onChangeItem={item => { |
| 59 | this.handleSelectImage(item) | 59 | this.handleSelectImage(item) |
| 60 | }}/> | 60 | }}/> |
| 61 | } | 61 | } |
front-end/h5/src/components/core/support/image-gallery/tabs/pixabay.js
| @@ -58,7 +58,7 @@ export default { | @@ -58,7 +58,7 @@ export default { | ||
| 58 | grid={{ gutter: 12, column: this.isVertial ? 4 : 3 }} | 58 | grid={{ gutter: 12, column: this.isVertial ? 4 : 3 }} |
| 59 | dataSource={this.items} | 59 | dataSource={this.items} |
| 60 | renderItem={(item, index) => ( | 60 | renderItem={(item, index) => ( |
| 61 | - <a-list-item onClick={item => { | 61 | + <a-list-item onClick={(event /** mouseEvent */) => { |
| 62 | this.$emit('changeItem', item) | 62 | this.$emit('changeItem', item) |
| 63 | }}> | 63 | }}> |
| 64 | <ImageItem item={item} height={this.isVertial ? 240 : 142 } /> | 64 | <ImageItem item={item} height={this.isVertial ? 240 : 142 } /> |