From ee09336ca5e1f4eb50146dd82fd98d20ce3a644f Mon Sep 17 00:00:00 2001 From: Frontend Developer Date: Tue, 10 Mar 2026 09:08:45 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=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/Loading.jsx | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 frontend/src/renderer/components/Loading.jsx diff --git a/frontend/src/renderer/components/Loading.jsx b/frontend/src/renderer/components/Loading.jsx new file mode 100644 index 0000000..2a5605a --- /dev/null +++ b/frontend/src/renderer/components/Loading.jsx @@ -0,0 +1,25 @@ +import React from 'react'; +import { Spin } from 'antd'; + +function Loading({ tip = '加载中...', fullscreen = false }) { + const style = fullscreen ? { + position: 'fixed', + top: 0, + left: 0, + right: 0, + bottom: 0, + display: 'flex', + alignItems: 'center', + justifyContent: 'center', + background: 'rgba(255,255,255,0.8)', + zIndex: 9999 + } : {}; + + return ( +
+ +
+ ); +} + +export default Loading;