결과 (Result)
일련의 작업 결과에 대한 피드백을 제공하는 데 사용됩니다.
언제 사용하나요
- 중요한 작업이 사용자에게 결과를 처리하도록 알리고 피드백이 더 복잡할 때 사용합니다.
성공 결과
성공적인 결과를 표시합니다.
Successfully Purchased Cloud Server ECS!
Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait.
astro
---
import Result from '@/components/feedback/Result.astro';
import Button from '@/components/general/Button.astro';
---
<Result
status="success"
title="Successfully Purchased Cloud Server ECS!"
subTitle="Order number: 2017182818828182881 Cloud server configuration takes 1-5 minutes, please wait."
>
<div slot="extra">
<Button variant="outline">Back to Orders</Button>
<Button>Buy Again</Button>
</div>
</Result> 상태 변형
상황에 따른 다른 상태.
Your operation has been executed
There are some problems with your operation.
Submission Failed
Please check and modify the following information before resubmitting.
astro
---
import Result from '@/components/feedback/Result.astro';
---
<Result status="info" title="Your operation has been executed" />
<Result status="warning" title="There are some problems with your operation." />
<Result status="error" title="Submission Failed" subTitle="Please check and modify the following information before resubmitting." /> HTTP 상태 페이지
`status` 속성은 아이콘 대신 큰 타이포그래피를 렌더링하는 일반적인 HTTP 오류 코드(403, 404, 500)를 지원합니다.
404
404
Sorry, the page you visited does not exist.
astro
---
import Result from '@/components/feedback/Result.astro';
import Button from '@/components/general/Button.astro';
---
<Result status="404" title="404" subTitle="Sorry, the page you visited does not exist.">
<Button slot="extra">Back Home</Button>
</Result> API Reference
| 속성 | 설명 | 타입 | 기본값 |
|---|---|---|---|
| status | 아이콘과 색상을 결정하는 결과 상태 (success, error, info, warning, 403, 404, 500). | 'success' | 'error' | 'info' | 'warning' | '404' | '403' | '500' | 'info' |
| title | 결과의 기본 제목 텍스트. | string | - |
| subTitle | 보조 설명 텍스트. | string | - |