/** * Created by hao.cheng on 2017/4/23. */ import React from 'react'; import { Row, Col, Card, Button, Radio, Menu, Dropdown } from 'antd'; import BreadcrumbCustom from '../widget/BreadcrumbCustom'; import { RadioChangeEvent } from 'antd/lib/radio'; import { ButtonSize } from 'antd/lib/button'; import { DownOutlined, LeftOutlined, RightOutlined } from '@ant-design/icons'; type ButtonsState = { size: ButtonSize; loading: boolean; iconLoading: boolean; }; class Buttons extends React.Component { constructor(props: any) { super(props); this.state = { size: 'middle', loading: false, iconLoading: false, }; } handleSizeChange = (e: RadioChangeEvent) => { this.setState({ size: e.target.value }); }; handleMenuClick = (e: any) => { console.log('click', e); }; enterLoading = () => { this.setState({ loading: true }); }; enterIconLoading = () => { this.setState({ iconLoading: true }); }; render() { const size = this.state.size; const menu = ( 1st item 2nd item 3rd item ); return (

Large Middle Small




); } } export default Buttons;