import React, { useEffect, useState } from 'react'
import { Menu } from 'antd';
import { ReadOutlined, EditOutlined, DatabaseOutlined } from '@ant-design/icons';
export default function Aside() {
const [defaultKey, setDefaultKey] = useState('')
const handleClick = e => {
};
return (
<Menu
onClick={handleClick}
style={{ width: 180 }}
selectedKeys={[defaultKey]}
mode="inline"
className='aside'
theme="dark"
>
<Menu.Item key="listlist"><ReadOutlined /> 查看文章列表List</Menu.Item>
<Menu.Item key="listtable"><ReadOutlined /> 查看文章列表Table</Menu.Item>
<Menu.Item key="edit"><EditOutlined /> 文章编辑</Menu.Item>
<Menu.Item key="means"><DatabaseOutlined /> 修改资料</Menu.Item>
</Menu>
)
}
运行结果