Update field for react-image-gallery's gallery item (#36783)

This commit is contained in:
Hilu luke 2019-07-16 07:23:34 +08:00 committed by Andrew Branch
parent 08331a0e65
commit 686d04e2c3
2 changed files with 12 additions and 1 deletions

View File

@ -21,6 +21,16 @@ export interface ReactImageGalleryItem {
description?: string;
srcSet?: string;
sizes?: string;
bulletClass?: string;
bulletOnClick?({
item,
itemIndex,
currentIndex,
}: {
item: ReactImageGalleryItem;
itemIndex: number;
currentIndex: number;
}): void;
}
export interface ReactImageGalleryProps {

View File

@ -13,7 +13,8 @@ class ImageGallery extends React.Component {
render() {
const galleryItem: ReactImageGalleryItem = {
original: 'http://localhost/logo.jpg',
originalTitle: 'My Logo'
originalTitle: 'My Logo',
bulletClass: 'my-bullet-class-name',
};
const props: ReactImageGalleryProps = {