--- order: 4 title: 主题 --- 内建了两套主题 `light|dark`,默认 `light`。 ````jsx import { Menu, Icon, Switch } from 'antd'; const SubMenu = Menu.SubMenu; const Sider = React.createClass({ getInitialState() { return { theme: 'light', }; }, changeTheme(value) { this.setState({ theme: value ? 'dark' : 'light', }); }, handleClick(e) { console.log('click ', e); this.setState({ current: e.key, }); }, render() { return (