import React from 'react' import { Menu } from 'antd' import './index.less' type LeftMenuProps = { title?: string options: { label: string; value: string }[] onChange: (key: string) => void value: string } const LeftMenu: React.FC = ({ title = '栏目/功能', options, onChange, value }) => { return (
{title}
onChange(key)} mode="inline" items={options.map(item => ({ label: item.label, key: item.value }))} />
) } export default LeftMenu