Skip to content

Commit

Permalink
docs: Add document about <API> component
Browse files Browse the repository at this point in the history
  • Loading branch information
linhe0x0 committed Apr 23, 2021
1 parent fd5e333 commit bc634fd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/zh/1-configurations/1-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,30 @@ Contents...

<Block>

## API 组件

`API` 组件是 `<Block>` 组件的一个别名,效果跟 `<Block>` 组件是一样的,只是在特殊场景下语义化更好。

<Example>

使用方式:

```vue
<API>
## Endpoint
GET https://api.github.com/users/:username
</API>
```

</Example>

</Block>

<Block>

## Example 组件

`Example` 组件用于在 `<Block>` 组件中指定右侧深色区域的内容。可以清晰地标识当前部分内容为使用案例。
Expand Down

0 comments on commit bc634fd

Please sign in to comment.