2019-06-30 20:15:44 +08:00
|
|
|
|
---
|
2022-11-09 12:28:04 +08:00
|
|
|
|
group: Feedback
|
2019-06-30 20:15:44 +08:00
|
|
|
|
category: Components
|
|
|
|
|
title: Result
|
2022-11-30 20:14:41 +08:00
|
|
|
|
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-e2IRroDJyEAAAAAAAAAAAAADrJ8AQ/original
|
2023-02-09 22:17:31 +08:00
|
|
|
|
coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*-0kxQrbHx2kAAAAAAAAAAAAADrJ8AQ/original
|
2019-06-30 20:15:44 +08:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
Used to feed back the results of a series of operational tasks.
|
|
|
|
|
|
|
|
|
|
## When To Use
|
|
|
|
|
|
|
|
|
|
Use when important operations need to inform the user to process the results and the feedback is more complicated.
|
|
|
|
|
|
2022-11-09 12:28:04 +08:00
|
|
|
|
## Examples
|
|
|
|
|
|
2022-11-17 17:31:26 +08:00
|
|
|
|
<!-- prettier-ignore -->
|
2022-11-09 12:28:04 +08:00
|
|
|
|
<code src="./demo/success.tsx">Success</code>
|
|
|
|
|
<code src="./demo/info.tsx">Info</code>
|
|
|
|
|
<code src="./demo/warning.tsx">Warning</code>
|
|
|
|
|
<code src="./demo/403.tsx">403</code>
|
|
|
|
|
<code src="./demo/404.tsx">404</code>
|
|
|
|
|
<code src="./demo/500.tsx">500</code>
|
|
|
|
|
<code src="./demo/error.tsx">Error</code>
|
|
|
|
|
<code src="./demo/customIcon.tsx">Custom icon</code>
|
2023-05-09 19:24:50 +08:00
|
|
|
|
<code src="./demo/component-token.tsx" debug>Component Token</code>
|
2022-11-09 12:28:04 +08:00
|
|
|
|
|
2019-06-30 20:15:44 +08:00
|
|
|
|
## API
|
|
|
|
|
|
2023-08-08 18:27:48 +08:00
|
|
|
|
Common props ref:[Common props](/docs/react/common-props)
|
|
|
|
|
|
2019-11-20 17:46:50 +08:00
|
|
|
|
| Property | Description | Type | Default |
|
|
|
|
|
| --- | --- | --- | --- |
|
2020-07-02 16:13:17 +08:00
|
|
|
|
| extra | Operating area | ReactNode | - |
|
2020-10-21 10:33:43 +08:00
|
|
|
|
| icon | Custom back icon | ReactNode | - |
|
|
|
|
|
| status | Result status, decide icons and colors | `success` \| `error` \| `info` \| `warning` \| `404` \| `403` \| `500` | `info` |
|
|
|
|
|
| subTitle | The subTitle | ReactNode | - |
|
|
|
|
|
| title | The title | ReactNode | - |
|
2023-04-11 10:25:24 +08:00
|
|
|
|
|
|
|
|
|
## Design Token
|
|
|
|
|
|
|
|
|
|
<ComponentTokenTable component="Result"></ComponentTokenTable>
|