20 lines
445 B
TypeScript
20 lines
445 B
TypeScript
|
|
import { ConfigProvider } from 'antd';
|
||
|
|
import { ReactNode } from 'react';
|
||
|
|
import { MyLoading } from './MyLoading';
|
||
|
|
export function MyRootContainer({ children }: { children: ReactNode }) {
|
||
|
|
return (
|
||
|
|
<ConfigProvider
|
||
|
|
// 输入框圆角
|
||
|
|
theme={{
|
||
|
|
token: {
|
||
|
|
borderRadius: 3,
|
||
|
|
},
|
||
|
|
}}
|
||
|
|
>
|
||
|
|
<MyLoading />
|
||
|
|
{/* <AliveScope>{children}</AliveScope> */}
|
||
|
|
{children}
|
||
|
|
</ConfigProvider>
|
||
|
|
);
|
||
|
|
}
|