import { Outlet } from "react-router-dom";
import {
GithubFilled,
InfoCircleFilled,
PlusCircleFilled,
QuestionCircleFilled,
SearchOutlined,
} from "@ant-design/icons";
import type { ProSettings } from "@ant-design/pro-components";
import { PageContainer, ProLayout } from "@ant-design/pro-components";
import { Input } from "antd";
import { useState } from "react";
import defaultProps from "./defaultProps";
export default () => {
const settings: ProSettings | undefined = {
fixSiderbar: true,
layout: "mix",
splitMenus: true,
};
const [pathname, setPathname] = useState("/list/sub-page/sub-sub-page1");
return (
""}
breadcrumbProps={{}}
bgLayoutImgList={[
{
src: "https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png",
left: 85,
bottom: 100,
height: "303px",
},
{
src: "https://img.alicdn.com/imgextra/i2/O1CN01O4etvp1DvpFLKfuWq_!!6000000000279-2-tps-609-606.png",
bottom: -68,
right: -45,
height: "303px",
},
{
src: "https://img.alicdn.com/imgextra/i3/O1CN018NxReL1shX85Yz6Cx_!!6000000005798-2-tps-884-496.png",
bottom: 0,
left: 0,
width: "331px",
},
]}
{...defaultProps}
location={{
pathname,
}}
menu={{
type: "group",
}}
avatarProps={{
src: "https://gw.alipayobjects.com/zos/antfincdn/efFD%24IOql2/weixintupian_20170331104822.jpg",
size: "small",
title: "七妮妮",
}}
actionsRender={(props) => {
if (props.isMobile) return [];
return [
props.layout !== "side" && document.body.clientWidth > 1400 ? (
) : undefined,
,
,
,
];
}}
menuFooterRender={(props) => {
if (props?.collapsed) return undefined;
return (
© 2021 Made with love
by Ant Design
);
}}
onMenuHeaderClick={(e) => console.log(e)}
menuItemRender={(item, dom) => (
{
setPathname(item.path || "/welcome");
}}
>
{dom}
)}
{...settings}
>
);
};