2015-09-07 12:32:31 +08:00
|
|
|
# 成功
|
2015-07-11 16:40:59 +08:00
|
|
|
|
|
|
|
- order: 0
|
|
|
|
|
2015-09-07 12:32:31 +08:00
|
|
|
操作成功反馈。
|
2015-07-11 16:40:59 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { message, Button } from 'antd';
|
2015-07-30 11:47:46 +08:00
|
|
|
|
2015-10-28 20:55:49 +08:00
|
|
|
const success = function() {
|
2015-07-11 16:40:59 +08:00
|
|
|
message.success('这是一条成功的提示');
|
2015-07-11 18:00:58 +08:00
|
|
|
};
|
2015-07-11 16:40:59 +08:00
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(<Button type="primary" onClick={success}>显示成功提示</Button>
|
2015-07-11 18:00:58 +08:00
|
|
|
, document.getElementById('components-message-demo-success'));
|
2015-07-11 16:40:59 +08:00
|
|
|
````
|
|
|
|
|