feat(v1.3.0): 图片编辑器(裁剪/旋转/图像大小/调色) + 批量水印 + AI生图 + 收藏体系 + 图片新窗口打开按钮 + 合拼拼图 + 返回顶部

This commit is contained in:
jinghui committed 2026-11-17 23:36:32 +08:00
1 parent e345456abf
commit 94ac94436c
46 files changed
+6521 -114

No files matched your search

+22 -1
View File
@@ -4,7 +4,7 @@
*/
import { useEffect, useRef } from 'react';
import { Trash2, Edit3, Move, Copy, FolderPlus } from 'lucide-react';
import { Trash2, Edit3, Move, Copy, FolderPlus, Star, Droplets, Eraser } from 'lucide-react';
function ContextMenu({ isOpen, position, onClose, options }) {
const menuRef = useRef(null);
@@ -136,6 +136,12 @@ export const menuItems = {
shortcut: 'F2',
action
}),
edit: (action) => ({
icon: <Edit3 size={16} />,
label: '编辑图片',
shortcut: 'E',
action
}),
move: (action) => ({
icon: <Move size={16} />,
label: '移动到',
@@ -147,6 +153,11 @@ export const menuItems = {
shortcut: 'Ctrl+C',
action
}),
favorite: (action, isFavorite = false) => ({
icon: <Star size={16} className={isFavorite ? 'fill-current text-amber-400' : ''} />,
label: isFavorite ? '取消收藏' : '收藏',
action
}),
newSiblingFolder: (action) => ({
icon: <FolderPlus size={16} />,
label: '新建同级文件夹',
@@ -157,6 +168,16 @@ export const menuItems = {
label: '新建子文件夹',
action
}),
batchAddWatermark: (action) => ({
icon: <Droplets size={16} />,
label: '批量加水印…',
action
}),
batchRemoveWatermark: (action) => ({
icon: <Eraser size={16} />,
label: '批量去水印…',
action
}),
divider: () => ({ divider: true })
};