2019-06-30 20:15:44 +08:00
|
|
|
---
|
2019-07-04 15:14:13 +08:00
|
|
|
order: 7
|
2019-06-30 20:15:44 +08:00
|
|
|
title:
|
2019-07-04 15:14:13 +08:00
|
|
|
zh-CN: Error
|
|
|
|
en-US: Error
|
2019-06-30 20:15:44 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
## zh-CN
|
|
|
|
|
2019-07-04 15:14:13 +08:00
|
|
|
复杂的错误反馈。
|
2019-06-30 20:15:44 +08:00
|
|
|
|
|
|
|
## en-US
|
|
|
|
|
2019-07-04 15:14:13 +08:00
|
|
|
Complex error feedback.
|
2019-06-30 20:15:44 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import React from 'react';
|
2019-08-13 14:07:17 +08:00
|
|
|
import { Result, Button, Typography } from 'antd';
|
2019-11-28 12:34:33 +08:00
|
|
|
import { CloseCircleOutlined } from '@ant-design/icons';
|
2019-06-30 20:15:44 +08:00
|
|
|
|
2019-07-04 15:14:13 +08:00
|
|
|
const { Paragraph, Text } = Typography;
|
2019-06-30 20:15:44 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2019-06-30 20:15:44 +08:00
|
|
|
<Result
|
|
|
|
status="error"
|
|
|
|
title="Submission Failed"
|
|
|
|
subTitle="Please check and modify the following information before resubmitting."
|
|
|
|
extra={[
|
|
|
|
<Button type="primary" key="console">
|
|
|
|
Go Console
|
|
|
|
</Button>,
|
|
|
|
<Button key="buy">Buy Again</Button>,
|
|
|
|
]}
|
|
|
|
>
|
|
|
|
<div className="desc">
|
2019-07-04 15:14:13 +08:00
|
|
|
<Paragraph>
|
|
|
|
<Text
|
|
|
|
strong
|
|
|
|
style={{
|
|
|
|
fontSize: 16,
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
The content you submitted has the following error:
|
|
|
|
</Text>
|
|
|
|
</Paragraph>
|
2019-06-30 20:15:44 +08:00
|
|
|
<Paragraph>
|
2020-05-25 14:59:01 +08:00
|
|
|
<CloseCircleOutlined className="site-result-demo-error-icon" /> Your account has been
|
|
|
|
frozen. <a>Thaw immediately ></a>
|
2019-06-30 20:15:44 +08:00
|
|
|
</Paragraph>
|
|
|
|
<Paragraph>
|
2019-12-25 20:04:23 +08:00
|
|
|
<CloseCircleOutlined className="site-result-demo-error-icon" /> Your account is not yet
|
2020-05-25 14:59:01 +08:00
|
|
|
eligible to apply. <a>Apply Unlock ></a>
|
2019-06-30 20:15:44 +08:00
|
|
|
</Paragraph>
|
|
|
|
</div>
|
2022-04-03 23:27:45 +08:00
|
|
|
</Result>
|
2019-06-30 20:15:44 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-06-30 20:15:44 +08:00
|
|
|
```
|
2019-12-25 20:04:23 +08:00
|
|
|
|
|
|
|
```css
|
|
|
|
.site-result-demo-error-icon {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
<style>
|
|
|
|
[data-theme="dark"] .site-result-demo-error-icon {
|
|
|
|
color: #a61d24;
|
|
|
|
}
|
|
|
|
</style>
|