2016-03-31 09:40:55 +08:00
|
|
|
---
|
2022-05-26 09:53:08 +08:00
|
|
|
order: 6
|
2016-07-04 10:44:55 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 普通提示
|
|
|
|
en-US: Normal prompt
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-07-11 16:40:59 +08:00
|
|
|
|
2016-07-04 10:44:55 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-09-07 12:32:31 +08:00
|
|
|
信息提醒反馈。
|
2015-07-11 16:40:59 +08:00
|
|
|
|
2016-07-04 10:44:55 +08:00
|
|
|
## en-US
|
|
|
|
|
2019-04-19 22:35:06 +08:00
|
|
|
Normal message for information.
|
2016-07-04 10:44:55 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2022-05-26 09:53:08 +08:00
|
|
|
import { Button, message } from 'antd';
|
2015-07-11 16:40:59 +08:00
|
|
|
|
2017-03-19 01:14:44 +08:00
|
|
|
const info = () => {
|
2016-07-04 10:44:55 +08:00
|
|
|
message.info('This is a normal message');
|
2015-07-11 18:00:58 +08:00
|
|
|
};
|
2015-07-11 16:40:59 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2019-05-07 14:57:32 +08:00
|
|
|
<Button type="primary" onClick={info}>
|
|
|
|
Display normal message
|
2022-04-03 23:27:45 +08:00
|
|
|
</Button>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|