ant-design/components/message/demo/loading.md
afc163 753c01ae18 ES6 syntax for demo code
fix antd.notification
2015-10-28 20:55:49 +08:00

401 B
Raw Blame History

加载中

  • order: 5

进行全局 loading异步自行移除。


import { message, Button } from 'antd';

const success = function() {
  let hide = message.loading('正在执行中...', 0);
  // 异步手动移除
  setTimeout(hide, 2500);
};

ReactDOM.render(<Button onClick={success}>显示加载中...</Button>
, document.getElementById('components-message-demo-loading'));