From 9d1c28e9a76ee63d00c4e092f3b47ed00cc2017d Mon Sep 17 00:00:00 2001 From: Frontend Developer Date: Tue, 10 Mar 2026 09:11:12 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=A9=BA=E7=8A=B6=E6=80=81=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/renderer/components/Empty.jsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 frontend/src/renderer/components/Empty.jsx diff --git a/frontend/src/renderer/components/Empty.jsx b/frontend/src/renderer/components/Empty.jsx new file mode 100644 index 0000000..3be0269 --- /dev/null +++ b/frontend/src/renderer/components/Empty.jsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Empty as AntEmpty } from 'antd'; +import { FolderOpenOutlined } from '@ant-design/icons'; + +function Empty({ type = 'file', onAction }) { + const descriptions = { + file: '暂无文件,上传一个文件开始使用', + folder: '文件夹为空', + search: '没有找到匹配的文件', + trash: '回收站是空的' + }; + + return ( + } + description={descriptions[type] || '暂无数据'} + /> + ); +} + +export default Empty;