mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
32 lines
408 B
Markdown
32 lines
408 B
Markdown
|
---
|
||
|
order: 2
|
||
|
title:
|
||
|
zh-CN: Warning
|
||
|
en-US: Warning
|
||
|
---
|
||
|
|
||
|
## zh-CN
|
||
|
|
||
|
警告类型的结果。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
The result of the warning.
|
||
|
|
||
|
```jsx
|
||
|
import { Result, Button } from 'antd';
|
||
|
|
||
|
ReactDOM.render(
|
||
|
<Result
|
||
|
status="warning"
|
||
|
title="There are some problems with your operation."
|
||
|
extra={
|
||
|
<Button type="primary" key="console">
|
||
|
Go Console
|
||
|
</Button>
|
||
|
}
|
||
|
/>,
|
||
|
mountNode,
|
||
|
);
|
||
|
```
|