基础优化
This commit is contained in:
1 parent
b606190e0c
commit
6394ac16a2
14 files changed
+457
-177
No files matched your search
@@ -1399,6 +1399,14 @@ function ImageWaterfall() {
|
||||
const isMultiSelection = selectedImages.length > 0;
|
||||
const menuOptions = [];
|
||||
|
||||
// 复制选项放在第一位
|
||||
menuOptions.push(
|
||||
menuItems.copy(() => {
|
||||
setContextMenu({ isOpen: false, position: null, image: null });
|
||||
handleCopy();
|
||||
})
|
||||
);
|
||||
|
||||
// 只在单选时显示重命名选项
|
||||
if (!isMultiSelection) {
|
||||
menuOptions.push(
|
||||
@@ -1410,10 +1418,6 @@ function ImageWaterfall() {
|
||||
}
|
||||
|
||||
menuOptions.push(
|
||||
menuItems.copy(() => {
|
||||
setContextMenu({ isOpen: false, position: null, image: null });
|
||||
handleCopy();
|
||||
}),
|
||||
menuItems.move(handleMoveClick),
|
||||
menuItems.delete(async () => {
|
||||
setContextMenu({ isOpen: false, position: null, image: null });
|
||||
|
||||
Reference in new issue
Block a user