From 51acd4294aff7f37165d518727c4be56457b254b Mon Sep 17 00:00:00 2001 From: Frontend Developer Date: Tue, 10 Mar 2026 09:06:12 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../renderer/components/RightClickMenu.jsx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 frontend/src/renderer/components/RightClickMenu.jsx diff --git a/frontend/src/renderer/components/RightClickMenu.jsx b/frontend/src/renderer/components/RightClickMenu.jsx new file mode 100644 index 0000000..be3a004 --- /dev/null +++ b/frontend/src/renderer/components/RightClickMenu.jsx @@ -0,0 +1,35 @@ +import React from 'react'; +import { Menu, Modal } from 'antd'; + +function RightClickMenu({ visible, position, onClose, onAction }) { + const menuItems = [ + { key: 'open', label: '打开' }, + { key: 'download', label: '下载' }, + { key: 'share', label: '分享' }, + { key: 'rename', label: '重命名' }, + { key: 'copy', label: '复制' }, + { key: 'move', label: '移动' }, + { type: 'divider' }, + { key: 'delete', label: '删除', danger: true }, + ]; + + return ( + { + onAction?.(key); + onClose?.(); + }} + /> + ); +} + +export;