ant design antd react实现后台菜单布局效果代码

代码语言:html

所属分类:布局界面

代码描述:ant design antd react实现后台菜单布局效果代码

代码标签: ant design antd react 后台 菜单 布局

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/babel.7.18.13.js"></script>
   <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react.production.18.2.0.js"></script>
   <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/react-dom.production.18.2.0.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/dayjs@1.js"></script>

<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/antd.5.7.0.js"></script>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/antd.reset.5.7.0.css">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/ant-design-icons.umd.min.js"></script>
<body>
    <div id="app">
       
    </div>
    
    <script type="text/babel">

const  {useState }  =  window.React;
const {
  MenuFoldOutlined,
  MenuUnfoldOutlined,
  UploadOutlined,
  UserOutlined,
  VideoCameraOutlined,
} =icons;
const { Layout, Menu, Button, theme } = antd;
const { Header, Sider, Content } = Layout;
const App = () => {
  const [collapsed, setCollapsed] = useState(false);
  const {
    token: { colorBgContainer },
  } = theme.useToken();
  return (
    <Layout>
      <Sider trigger={null} collapsible collapsed={collapsed}>
        <div classNa.........完整代码请登录后点击上方下载按钮下载查看

网友评论0