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.
 
 

387 B

order title
7 手动移除

手动关闭modal。

import { Modal, Button } from 'antd';

function success() {
  const modal = Modal.success({
    title: '这是一条通知信息',
    content: '一秒后自动移除',
  });
  setTimeout(() => modal.destroy(), 1000);
}


ReactDOM.render(<div>
  <Button onClick={success}>成功提示</Button>
</div>, mountNode);