2019-07-04 15:14:13 +08:00
|
|
|
---
|
|
|
|
order: 2
|
|
|
|
title:
|
|
|
|
zh-CN: Warning
|
|
|
|
en-US: Warning
|
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
|
|
|
警告类型的结果。
|
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
|
|
|
The result of the warning.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
2022-05-21 22:14:15 +08:00
|
|
|
import { Button, Result } from 'antd';
|
2022-05-19 09:46:26 +08:00
|
|
|
import React from 'react';
|
2019-07-04 15:14:13 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2019-07-04 15:14:13 +08:00
|
|
|
<Result
|
|
|
|
status="warning"
|
|
|
|
title="There are some problems with your operation."
|
|
|
|
extra={
|
|
|
|
<Button type="primary" key="console">
|
|
|
|
Go Console
|
|
|
|
</Button>
|
|
|
|
}
|
2022-04-03 23:27:45 +08:00
|
|
|
/>
|
2019-07-04 15:14:13 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-07-04 15:14:13 +08:00
|
|
|
```
|