Skip to content

Commit cdfbf8a

Browse files
authored
Merge pull request ascoders#305 from Ovi/patch-2
renderFooter must return index
2 parents e82578a + 7a14eea commit cdfbf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/image-viewer.type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class Props {
134134
/**
135135
* 自定义尾部
136136
*/
137-
public renderFooter?: (currentIndex?: number) => React.ReactElement<any> = () => {
137+
public renderFooter?: (currentIndex: number) => React.ReactElement<any> = () => {
138138
return null as any;
139139
};
140140

0 commit comments

Comments
 (0)