mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 17:59:57 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
31 lines
400 B
Markdown
31 lines
400 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';
|
|
|
|
export default () => (
|
|
<Result
|
|
status="warning"
|
|
title="There are some problems with your operation."
|
|
extra={
|
|
<Button type="primary" key="console">
|
|
Go Console
|
|
</Button>
|
|
}
|
|
/>
|
|
);
|
|
```
|