mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 10:34:20 +00:00
22 lines
638 B
JavaScript
22 lines
638 B
JavaScript
import React from 'react';
|
|
import { Spin } from '@douyinfe/semi-ui';
|
|
|
|
const Loading = ({ prompt: name = '', size = 'large' }) => {
|
|
return (
|
|
<div className="fixed inset-0 w-screen h-screen flex items-center justify-center bg-white/80 z-[1000]">
|
|
<div className="flex flex-col items-center">
|
|
<Spin
|
|
size={size}
|
|
spinning={true}
|
|
tip={null}
|
|
/>
|
|
<span className="whitespace-nowrap mt-2 text-center" style={{ color: 'var(--semi-color-primary)' }}>
|
|
{name ? `加载${name}中...` : '加载中...'}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Loading;
|