Commit 8adfef61c3340a36719ccdcd1f557b1586aeddc6

Authored by ly525
1 parent 40bc3c81

fix: pick image from pixabay gallery

front-end/h5/src/components/core/support/image-gallery/gallery.js
... ... @@ -55,7 +55,7 @@ export default {
55 55 this.handleSelectImage(item)
56 56 }}/>
57 57 case 'pixabay':
58   - return <PixabayTab onChange={item => {
  58 + return <PixabayTab onChangeItem={item => {
59 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 58 grid={{ gutter: 12, column: this.isVertial ? 4 : 3 }}
59 59 dataSource={this.items}
60 60 renderItem={(item, index) => (
61   - <a-list-item onClick={item => {
  61 + <a-list-item onClick={(event /** mouseEvent */) => {
62 62 this.$emit('changeItem', item)
63 63 }}>
64 64 <ImageItem item={item} height={this.isVertial ? 240 : 142 } />
... ...