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;