2022-11-18 08:38:28 +08:00
|
|
|
import * as React from "react";
|
|
|
|
|
import { useEffect } from "react";
|
|
|
|
|
import { ConfigProvider } from "antd";
|
|
|
|
|
import styles from "./index.less";
|
2022-08-04 15:20:59 +08:00
|
|
|
|
2022-11-18 08:38:28 +08:00
|
|
|
export default ({ children, style = {} }: any) => {
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
ConfigProvider.config({
|
|
|
|
|
theme: {
|
|
|
|
|
primaryColor: "#2DB7F5"
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
className={styles.root}
|
|
|
|
|
style={{
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "100%",
|
|
|
|
|
overflow: "hidden",
|
|
|
|
|
...style
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
2022-11-18 08:39:36 +08:00
|
|
|
|