/**
* Created by hao.cheng on 2017/4/23.
*/
import React from 'react';
import { Row, Col, Card, Spin, Alert, Switch, Button } from 'antd';
import BreadcrumbCustom from '../widget/BreadcrumbCustom';
import NProgress from 'nprogress';
import 'nprogress/nprogress.css';
class Spins extends React.Component {
state = { loading: false };
toggle = (value: boolean) => {
this.setState({ loading: value });
};
nprogressStart = () => {
NProgress.start();
};
nprogressDone = () => {
NProgress.done();
};
render() {
const container = (
NProgress.start() — 显示进度条
NProgress.done() — 进度条完成