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;