You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
salary-management-oneself/src/layouts/HiPrintLayout/index.tsx

21 lines
583 B
TypeScript

5 months ago
import * as React from "react";
import { useEffect } from "react";
import { ConfigProvider } from "antd";
import styles from "../index.less";
// 样式
import "../../../public/js/hiprint/css/hiprint.css";
import "../../../public/js/hiprint/css/print-lock.css";
export default ({ children, style = {} }: any) => {
useEffect(() => {
ConfigProvider.config({ theme: { primaryColor: "#2DB7F5" } });
return ()=>{}
}, []);
return (
<div className={styles.root} style={{ width: "100%", height: "100%", overflow: "hidden", ...style }}>
{children}
</div>
);
};