You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

410 B

加载中

  • order: 5

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


var Button = antd.Button;

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

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