ant-design/components/message/demo/error.md

19 lines
390 B
Markdown
Raw Normal View History

2015-09-07 12:32:31 +08:00
# 错误或失败
- order: 1
2015-09-07 12:32:31 +08:00
操作失败反馈。
---
````jsx
import { message, Button } from 'antd';
const error = function() {
message.error('这是一条失败的提示这是一条失败的提示这是一条失败的提示');
2015-07-11 18:00:58 +08:00
};
2015-10-20 16:47:55 +08:00
ReactDOM.render(<Button type="primary" onClick={error}>显示失败提示</Button>
2015-07-11 18:00:58 +08:00
, document.getElementById('components-message-demo-error'));
````