feat: 灯箱底部缩略图条 + 幻灯片播放(可选间隔) (v1.4.13)
This commit is contained in:
1 parent
ecb28c3aa5
commit
d9c61306fe
7 files changed
+175
-4
No files matched your search
@@ -5,6 +5,7 @@
|
||||
|
||||
import { useState, useMemo, useCallback, useRef } from 'react';
|
||||
import { PhotoProvider } from 'react-photo-view';
|
||||
import PhotoStrip from './PhotoStrip';
|
||||
import 'react-photo-view/dist/react-photo-view.css';
|
||||
import { VariableSizeList as List } from 'react-window';
|
||||
|
||||
@@ -660,6 +661,14 @@ onToggleFavorite={handleToggleFavorite}
|
||||
)}
|
||||
</PhotoProvider>
|
||||
|
||||
{/* 灯箱底部缩略图条:列出当前文件夹全部图片,点击跳转查看(index 与 providerImages 同源对齐) */}
|
||||
<PhotoStrip
|
||||
images={filteredImages}
|
||||
index={photoIndex}
|
||||
onIndexChange={setPhotoIndex}
|
||||
getThumbnailUrl={getThumbnailUrl}
|
||||
/>
|
||||
|
||||
{/* 文件查看器 */}
|
||||
{viewerFile && (
|
||||
<FileViewer
|
||||
|
||||
Reference in new issue
Block a user