Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
78faf2e
feat(ImageViewer): 支持视口之外图片向中心缩放
tdesign-bot Mar 23, 2026
99febc2
Merge branch 'develop' into rss1102/feat/image-viewer/center-zoom
RSS1102 Mar 24, 2026
51588af
fix(image-viewer): add setPosition to useImperativeHandle dependencies
RSS1102 Mar 24, 2026
eab2410
fix(hooks): 修复移除事件监听器的参数错误
RSS1102 Mar 24, 2026
200fbe2
chore: 格式化代码
RSS1102 Mar 25, 2026
d8ea865
fix(image-viewer): 优化向中心缩放动画实现,使用 CSS 类名驱动 transition
RSS1102 Mar 25, 2026
5bef6fa
chore: update common
github-actions[bot] Mar 31, 2026
71f39c2
chore: merge develop
github-actions[bot] Mar 31, 2026
7e40155
feat(ImageViewer): refactor zoom/rotate/mirror utils to common package
RSS1102 Mar 31, 2026
a9e90a0
refactor(image-viewer): 优化 useScale 闭包与参数传递逻辑
RSS1102 Mar 31, 2026
0043f37
fix(image-viewer): 修复缩放重置与分离zoomOptions引用
RSS1102 Mar 31, 2026
3c0569b
fix(ImageViewer): adjust default step from 0.5 to 0.2 for smoother zo…
RSS1102 Apr 1, 2026
9d207b8
Merge branch 'develop' into rss1102/feat/image-viewer/center-zoom
RSS1102 Apr 1, 2026
2f7bc7e
chore: 恢复默认缩放步长并且修复测试错误
RSS1102 Apr 1, 2026
dd4f4a7
refactor(image-viewer): 重命名 onZoom 为 onZoomIn 并优化动画逻辑
RSS1102 Apr 2, 2026
621cd0b
fix(image-viewer): 修复键盘事件处理闭包陷阱
RSS1102 Apr 8, 2026
d4f7dca
fix(image-viewer): 优化拖拽状态追踪与缩放逻辑
RSS1102 Apr 13, 2026
e843a00
chore: update common
github-actions[bot] May 13, 2026
e96dfa7
chore: merge develop
github-actions[bot] May 13, 2026
26c7d48
chore: update snapshot
github-actions[bot] May 13, 2026
a7df10e
chore: stash changelog [ci skip]
tdesign-bot May 13, 2026
4f3611d
test(image-viewer): 添加测试快照
RSS1102 May 13, 2026
cbd9ff4
test(image-viewer): 更新自定义标题快照
RSS1102 May 14, 2026
73066a8
fix(image-viewer): 修复缩放动画闪烁及类名残留问题
RSS1102 May 14, 2026
0181570
refactor(image-viewer): 迁移缩放事件处理逻辑至 useScale hook
RSS1102 May 14, 2026
1297a3d
test(image-viewer): update useScale tests and remove throttle behavior
RSS1102 May 14, 2026
050e133
Merge remote-tracking branch 'origin/develop' into rss1102/feat/image…
RSS1102 May 19, 2026
eb50c25
chore(deps): 更新 common 子项目
RSS1102 May 19, 2026
b4070f4
test(image-viewer): 更新工具栏操作快照
RSS1102 May 19, 2026
28d8a8c
refactor(image-viewer): 优化hooks与图标逻辑
RSS1102 May 20, 2026
0105905
chore: 添加 viewerScale 透传待办注释
RSS1102 May 20, 2026
eb9e78c
chore(image-viewer): 还原代码
RSS1102 May 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/components/image-viewer/ImageViewerMini.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export interface ImageModalMiniProps {
prev: () => void;
next: () => void;
onMirror: () => void;
onZoom: () => void;
onZoomIn: () => void;
onZoomOut: () => void;
onReset: () => void;
onRotate: (red: number) => void;
onRotate: () => void;
onClose: (context: { trigger: 'close-btn' | 'overlay' | 'esc'; e: MouseEvent<HTMLElement> | KeyboardEvent }) => void;
innerClassName: TdImageViewerProps['innerClassName'];
}
Expand All @@ -46,6 +46,8 @@ export const ImageModalMiniContent: React.FC<ImageModalMiniProps> = (props) => {
const { classPrefix } = useConfig();

return (
// TODO: viewerScale(minWidth/minHeight)应作为 style 应用到此容器,参考 tdesign-next-vue 实现
// 需将 viewerScale 从 TdImageViewerProps → ImageViewer → ImageModal → ImageModalMini → ImageModalMiniContent 完整透传
<div className={`${classPrefix}-image-viewer-mini__content`}>
<ImageModalItem
rotateZ={props.rotateZ}
Expand Down Expand Up @@ -73,7 +75,7 @@ export const ImageModalMini: React.FC<ImageModalMiniProps> = (props) => {
className,
style,
onZoomOut,
onZoom,
onZoomIn,
onClose,
onRotate,
onMirror,
Expand All @@ -90,7 +92,7 @@ export const ImageModalMini: React.FC<ImageModalMiniProps> = (props) => {
tipText={tipText}
currentImage={currentImage}
zIndex={props.zIndex + 1}
onZoom={onZoom}
onZoomIn={onZoomIn}
onZoomOut={onZoomOut}
onRotate={onRotate}
onMirror={onMirror}
Expand Down
Loading
Loading